8#ifndef UI_GGUISURFACE_H_
9#define UI_GGUISURFACE_H_
29 void setBorder(
float thickness,
float borderposition);
34 int addCircle(
float xCenter,
float yCenter,
float radius,
bool isFilled,
float numberOfSides = 64.0f,
gColor color =
gColor(0.0f, 0.0f, 0.0f));
35 int addArrow(
float x1,
float y1,
float length,
float angle,
float tipLength,
float tipAngle,
gColor color =
gColor(0.0f, 0.0f, 0.0f));
36 int addTriangle(
float px,
float py,
float qx,
float qy,
float rx,
float ry,
bool isFilled,
gColor color =
gColor(0.0f, 0.0f, 0.0f));
38 int addText(std::string text,
float x,
float y,
int fontFace,
int fontType,
gColor color =
gColor(0.0f, 0.0f, 0.0f));
42 void setText(
int shapeNo, std::string text,
float x,
float y,
int fontFace,
int fontType,
gColor color =
gColor(0.0f, 0.0f, 0.0f));
43 void setImage(
int shapeNo,
float x,
float y,
float w,
float h,
gImage* image);
53 void drawBackground();
54 void resetColorAndBorder();
57 void mousePressed(
int x,
int y,
int button);
58 void mouseReleased(
int x,
int y,
int button);
60 std::vector<std::vector<float>> shapes;
61 std::deque<gImage*> images;
62 std::deque<std::string> texts;
63 std::deque<gGUISizer*> sizers;
65 int imageNum, textnum, sizernum;
70 float thickness, borderposition;
72 bool isFilled, mousepressedonlist;
Definition gBaseGUIObject.h:18
gBaseApp * root
Definition gBaseGUIObject.h:147
Definition gGUISizer.h:14
Definition gGUISurface.h:18
int addImage(float x, float y, float w, float h, gImage *image)
int addSizer(float x, float y, float w, float h, gGUISizer *newSizer)
void setText(int shapeNo, std::string text, float x, float y, int fontFace, int fontType, gColor color=gColor(0.0f, 0.0f, 0.0f))
int addTriangle(float px, float py, float qx, float qy, float rx, float ry, bool isFilled, gColor color=gColor(0.0f, 0.0f, 0.0f))
int addRectangle(float x, float y, float w, float h, bool isFilled, gColor color=gColor(0.0f, 0.0f, 0.0f))
int addText(std::string text, float x, float y, int fontFace, int fontType, gColor color=gColor(0.0f, 0.0f, 0.0f))
int addLine(float x, float y, float x2, float y2, gColor color=gColor(0.0f, 0.0f, 0.0f))
void set(gBaseApp *root, gBaseGUIObject *topParentGUIObject, gBaseGUIObject *parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h)
std::vector< float > getShape(int shapeNo)
int addCircle(float xCenter, float yCenter, float radius, bool isFilled, float numberOfSides=64.0f, gColor color=gColor(0.0f, 0.0f, 0.0f))
void setImage(int shapeNo, float x, float y, float w, float h, gImage *image)
void setBorder(float thickness, float borderposition)
int addArrow(float x1, float y1, float length, float angle, float tipLength, float tipAngle, gColor color=gColor(0.0f, 0.0f, 0.0f))
@ SHAPE_RECTANGLE
Definition gGUISurface.h:21
@ SHAPE_TEXT
Definition gGUISurface.h:22
@ SHAPE_LINE
Definition gGUISurface.h:21
@ SHAPE_CIRCLE
Definition gGUISurface.h:21
@ SHAPE_ARROW
Definition gGUISurface.h:21
@ SHAPE_IMAGE
Definition gGUISurface.h:22
@ SHAPE_TRIANGLE
Definition gGUISurface.h:21
@ SHAPE_GUISIZER
Definition gGUISurface.h:22