GlistEngine
Loading...
Searching...
No Matches
gGUIPane.h
Go to the documentation of this file.
1/*
2 * gGUIPane.h
3 *
4 * Created on: Apr 3, 2022
5 * Author: noyan
6 */
7
8#ifndef UI_GGUIPANE_H_
9#define UI_GGUIPANE_H_
10
11#include "gGUIContainer.h"
12#include "gFont.h"
13#include "gColor.h"
14#include "gGUIButton.h"
15#include "gGUISizerSpace.h"
16
17class gGUINavigation;
18
19
20class gGUIPane: public gGUIContainer {
21public:
23 virtual ~gGUIPane() override;
24
25 void set(gBaseApp* root, gBaseGUIObject* topParentGUIObject, gBaseGUIObject* parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h) override;
26
28 void setNavigationOrder(int orderNo);
30
31 void setSubTitle(std::string subTitle);
32 void show();
33
34 void draw() override;
35
36 void mouseMoved(int x, int y) override;
37 void mousePressed(int x, int y, int button) override;
38 void mouseReleased(int x, int y, int button) override;
39 void onGUIEvent(int guiObjectId, int eventType, int sourceEventType, std::string value1 = "", std::string value2 = "") override;
40
41 void setPreviousPane(gGUIPane* previousPane);
42 void setNextPane(gGUIPane* nextPane);
45
47 void setNextButtonName(std::string name);
48 void setPreviousButtonName(std::string name);
50
51private:
52 gGUINavigation* navigation;
53 int navorder;
54 gGUISizer panesizer;
55 gFont titlefont;
56 gColor titlecolor;
57 int titlefontsize;
58 std::string subtitle;
59 bool issubtitleset;
60 bool navbuttonsenabled;
61 gGUISizer buttonsizer;
62 gGUIPane *previouspane, *nextpane;
63 gGUISizerSpace buttonsizerspace1, buttonsizerspace2;
64 gGUIButton previousbutton, nextbutton;
65 bool previousbuttonenabled, nextbuttonenabled;
66 int titlex, titley;
67 int subtitlex, subtitley;
68};
69
70#endif /* UI_GGUIPANE_H_ */
Definition gBaseApp.h:16
Definition gBaseGUIObject.h:18
gBaseApp * root
Definition gBaseGUIObject.h:151
Definition gColor.h:17
Definition gFont.h:47
Definition gGUIButton.h:14
Definition gGUINavigation.h:17
void setSubTitle(std::string subTitle)
void show()
void setNavigationOrder(int orderNo)
int getNavigationOrder()
void setPreviousButtonName(std::string name)
void draw() override
void mouseReleased(int x, int y, int button) override
void setNextButtonName(std::string name)
void setPreviousPane(gGUIPane *previousPane)
void setNextPane(gGUIPane *nextPane)
void onGUIEvent(int guiObjectId, int eventType, int sourceEventType, std::string value1="", std::string value2="") override
void enablePreviousButton(bool isEnabled)
virtual ~gGUIPane() override
void mouseMoved(int x, int y) override
void mousePressed(int x, int y, int button) override
void setNavigation(gGUINavigation *nav)
void set(gBaseApp *root, gBaseGUIObject *topParentGUIObject, gBaseGUIObject *parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h) override
void enableNextButton(bool isEnabled)
void removePrevNextButtons()
gGUIButton getNextButton()
Definition gGUISizerSpace.h:14
Definition gGUISizer.h:15