GlistEngine
Loading...
Searching...
No Matches
gGUITable.h
Go to the documentation of this file.
1/*
2 * gGUITable.h
3 *
4 * Created on: 28 Tem 2023
5 * Author: Nazim Gultekin
6 */
7
8#ifndef UI_GGUITABLE_H_
9#define UI_GGUITABLE_H_
10
11#include "gImage.h"
12#include "gGUIControl.h"
13#include "gFont.h"
14#include "gBaseGUIObject.h"
15#include "gColor.h"
16#include "gGUIScrollable.h"
17
19public:
21 virtual ~gGUITable();
22 void setup();
23 void update();
24 void draw();
25 void mouseMoved(int x, int y );
26 void mousePressed(int x, int y, int button);
27 void set(gBaseApp* root, gBaseGUIObject* topParentGUIObject, gBaseGUIObject* parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h);
28 void addItem(gImage* image, std::string title = "New File");
29 void setFontColor(gColor color);
30 void setTableColor(gColor color);
32
36 int setSelectedFileNo(int selectedFileNo);
38
39private:
40 void generateFile();
41 bool isfilepressed;
42 static const int FILE_X = 0, FILE_Y = 1, FILE_W = 2, FILE_H = 3;
43 std::deque<gImage*> imagelist;
44 std::deque<std::string> imagetextlist;
45 std::deque<int> imageparameterlist;
46 int x, y, filew, fileh;
47 int screenwidth, screenheight;
48 int maxcolumncount;
49 std::vector<int> imagew;
50 std::vector<int> imageh;
51 std::vector<int> filex;
52 std::vector<int> filey;
53 int cornerspace;
54 int sonucw, sonuch;
55 gColor fcolor, backgroundcolor;
56 int minh, minw;
57 bool isselected, ismoved;
58 int movedfileno, selectedfileno;
59 bool mousepressedonlist;
60};
61
62#endif /* UI_GGUITABLE_H_ */
Definition gBaseApp.h:16
Definition gBaseGUIObject.h:18
gBaseApp * root
Definition gBaseGUIObject.h:147
std::string title
Definition gBaseGUIObject.h:145
Definition gColor.h:17
Definition gGUIScrollable.h:68
Definition gGUITable.h:18
void mouseMoved(int x, int y)
void mousePressed(int x, int y, int button)
void draw()
void setFontColor(gColor color)
void setup()
int setSelectedFileNo(int selectedFileNo)
virtual ~gGUITable()
void set(gBaseApp *root, gBaseGUIObject *topParentGUIObject, gBaseGUIObject *parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h)
void getSelectedTable()
void setTableColor(gColor color)
void addItem(gImage *image, std::string title="New File")
gColor * getFontColor()
void update()
void setSelectedTable()
gColor * getTableColor()
int getSelectedFileNo()
Definition gImage.h:34