GlistEngine
Loading...
Searching...
No Matches
gGUINavigation.h
Go to the documentation of this file.
1/*
2 * gGUINavigation.h
3 *
4 * Created on: Apr 3, 2022
5 * Author: noyan
6 */
7
8#ifndef UI_GGUINAVIGATION_H_
9#define UI_GGUINAVIGATION_H_
10
11#include "gGUIScrollable.h"
12#include "gGUIPane.h"
13#include "gGUIToolbar.h"
14#include <deque>
15
16
18public:
20 virtual ~gGUINavigation() override;
21
22 void set(gBaseApp* root, gBaseGUIObject* topParentGUIObject, gBaseGUIObject* parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h) override;
23
24 void update() override;
25 void draw() override;
26
27 void addPane(gGUIPane* newPane, bool isEnabled = true);
28 void setPane(int paneNo, gGUIPane* newPane, bool isEnabled = true);
29 void removePane(int paneNo);
30 gGUIPane* getPane(int paneNo);
32 void setPaneEnabled(int paneNo, bool isEnabled);
33 bool isPaneEnabled(int paneNo);
34 void clear();
35
36 void setSelectedPaneNo(int paneNo);
39
40 void showPane(gGUIPane* paneToShow);
41
42 void mousePressed(int x, int y, int button) override;
43 void mouseReleased(int x, int y, int button) override;
44 void mouseMoved(int x, int y) override;
45 void mouseDragged(int x, int y, int button) override;
46 void mouseEntered() override;
47 void mouseExited() override;
48
52 void setBottomBarLayout(int horizontalPadding, int maximumContentWidth);
54
55private:
56 std::deque<gGUIPane*> panes;
57 std::deque<bool> paneenabled;
58 int panetoph;
59 int panelineh;
60 int panelinepad;
61 int selectedpane;
62
63 gGUISizer maintoolbarsizer;
64 gGUIToolbar toolbar;
65 gGUISizer toolbarsizer;
66 bool toolbarenabled;
67 bool bottombarenabled;
68 bool bottombarpressactive;
69 int bottombarhorizontalpadding;
70 int bottombarmaximumcontentwidth;
71 bool modernbottombarenabled;
72 int bottombarsurfaceleft;
73 int bottombarsurfacetop;
74 int bottombarsurfacewidth;
75 int bottombarsurfaceheight;
76 gColor bottombarsurfacecolor;
77 gColor bottombarshadowcolor;
78
79 void layoutBottomBar();
80};
81
82#endif /* UI_GGUINAVIGATION_H_ */
Definition gBaseApp.h:16
gBaseApp * root
Definition gBaseGUIObject.h:151
Definition gColor.h:17
int getSelectedPaneNo()
gGUIPane * getSelectedPane()
void draw() override
void setBottomBarLayout(int horizontalPadding, int maximumContentWidth)
void update() override
void mouseMoved(int x, int y) override
gGUISizer * getToolbarSizer()
void enableModernBottomBar()
void set(gBaseApp *root, gBaseGUIObject *topParentGUIObject, gBaseGUIObject *parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h) override
bool isPaneEnabled(int paneNo)
void showPane(gGUIPane *paneToShow)
void mouseEntered() override
void setSelectedPaneNo(int paneNo)
void removePane(int paneNo)
void mousePressed(int x, int y, int button) override
void setPane(int paneNo, gGUIPane *newPane, bool isEnabled=true)
void setPaneEnabled(int paneNo, bool isEnabled)
void mouseDragged(int x, int y, int button) override
void mouseExited() override
void addPane(gGUIPane *newPane, bool isEnabled=true)
void enableBottomBar()
virtual ~gGUINavigation() override
void mouseReleased(int x, int y, int button) override
gGUIPane * getPane(int paneNo)
void enableToolbar()
Definition gGUIPane.h:20
Definition gGUISizer.h:15
Definition gGUIToolbar.h:27