blob: f4e1ffedd080633d2103aa160677b5e837852bce (
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
32
33
34
35
|
#pragma once
#include "Shader.hpp"
class EditorInspector;
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;
EditorInspector* mInspector;
Pane mPane = P_Settings;
float splitterLeft = kLeftPaneMinWidth;
float splitterRight = 0.0f;
bool docked = true;
bool visible = false;
public:
EditorContentBrowser(EditorInspector* inspector);
~EditorContentBrowser();
bool IsVisible() const;
void SetVisible(bool visible);
void Show();
};
|