GlistEngine
Loading...
Searching...
No Matches
gGUITimebox.h
Go to the documentation of this file.
1/*
2 * gGUITimebox.h
3 *
4 * Created on: 4 Aug 2022
5 * Author: Baris Karakaya
6 */
7
8#ifndef UI_GGUITIMEBOX_H_
9#define UI_GGUITIMEBOX_H_
10
11#include "gGUIContainer.h"
12#include "gGUITextbox.h"
13#include "gGUIText.h"
14
16public:
18 virtual ~gGUITimebox();
19
20 void set(gBaseApp* root, gBaseGUIObject* topParentGUIObject, gBaseGUIObject* parentGUIObject, int parentSlotLineNo,int parentSlotColumnNo, int x, int y, int w, int h);
21 void set(int x, int y, int w, int h);
22
23 void draw();
24 void update();
25
26 void keyPressed(int key);
27 void keyReleased(int key);
28 void charPressed(unsigned int codepoint);
29 void mousePressed(int x, int y, int button);
30 void mouseReleased(int x, int y, int button);
31 void mouseDragged(int x, int y, int button);
32
33private:
34 int buttoncoverw, buttoncoverh, buttoncoverx, buttoncovery;
35 int timeboxw, timeboxh;
36 //These are x axis for triangle button what use gDrawTriangle() function...
37 int triangleax, trianglebx, trianglecx;
38 //These are y axis for triangle button what use gDrawTriangle() function...
39 int triangleay1, triangleby1, trianglecy1;
40 int triangleay2, triangleby2, trianglecy2;
41 int buttontype;
42 int hour, minute, second;
43
44 int lineno,columno;
45 //Buttons control...
46 bool isdisabled;
47 bool ispressedb1, ispressedb2;
48 bool ispressednow;
49 bool istoggle;
50
51 bool ishour, isminute, issecond;
52 /*
53 * All private functions are increasing an decreasing numbers...
54 * */
55 void setHour();
56 void setMinute();
57 void setSecond();
58
59 gGUISizer timeboxsizer;
60 gGUITextbox hourbox, minutebox, secondbox;
61 gColor bluecolor;
62 gColor whitecolor;
63
64};
65
66#endif /* UI_GGUITIMEBOX_H_ */
Definition gBaseApp.h:16
Definition gBaseGUIObject.h:18
gBaseApp * root
Definition gBaseGUIObject.h:147
Definition gColor.h:17
Definition gGUIContainer.h:15
Definition gGUISizer.h:14
Definition gGUITextbox.h:46
Definition gGUITimebox.h:15
void mouseDragged(int x, int y, int button)
void mouseReleased(int x, int y, int button)
void set(int x, int y, int w, int h)
void charPressed(unsigned int codepoint)
void set(gBaseApp *root, gBaseGUIObject *topParentGUIObject, gBaseGUIObject *parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h)
void mousePressed(int x, int y, int button)
void update()
void keyReleased(int key)
virtual ~gGUITimebox()
void keyPressed(int key)