blob: db6a277ab3e79639de9c5009463a84a484e84311 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#pragma once
#include "Shader.hpp"
class EditorInstance;
class EditorContentBrowser {
private:
enum Pane {
P_Settings,
P_Shader,
};
static constexpr float kSplitterThickness = 3.0f;
static constexpr float kPadding = 4.0f;
// <root>
static constexpr float kLeftPaneMinWidth = 200.0f;
static constexpr float kRightPaneMinWidth = 200.0f;
EditorInstance* mEditor;
Pane mPane = P_Settings;
float splitterLeft = kLeftPaneMinWidth;
float splitterRight = 0.0f;
bool docked = true;
public:
EditorContentBrowser(EditorInstance* editor);
~EditorContentBrowser();
void Show(bool* open = nullptr);
};
|