Make more UI fields public
This commit is contained in:
parent
c6232b7691
commit
275c10258b
@ -58,12 +58,12 @@ class TextElement: public UIElement {
|
|||||||
class RectangleElement: public UIElement {
|
class RectangleElement: public UIElement {
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
UIValue w, h;
|
|
||||||
|
|
||||||
unsigned int vao;
|
unsigned int vao;
|
||||||
unsigned int vbo;
|
unsigned int vbo;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
UIValue w, h;
|
||||||
|
|
||||||
Color color;
|
Color color;
|
||||||
|
|
||||||
RectangleElement(UIValue x, UIValue y, UIValue w, UIValue h);
|
RectangleElement(UIValue x, UIValue y, UIValue w, UIValue h);
|
||||||
@ -100,11 +100,6 @@ class TextFieldElement: public RectangleElement {
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::string text;
|
std::string text;
|
||||||
Color color;
|
|
||||||
Color focusColor;
|
|
||||||
|
|
||||||
TextElement *textElement;
|
|
||||||
RectangleElement *cursor;
|
|
||||||
|
|
||||||
KeyboardCapture capture;
|
KeyboardCapture capture;
|
||||||
float lastCharTyped = 0;
|
float lastCharTyped = 0;
|
||||||
@ -113,6 +108,12 @@ class TextFieldElement: public RectangleElement {
|
|||||||
void updateText(std::u32string newText);
|
void updateText(std::u32string newText);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Color color;
|
||||||
|
Color focusColor;
|
||||||
|
|
||||||
|
TextElement *textElement;
|
||||||
|
RectangleElement *cursor;
|
||||||
|
|
||||||
TextFieldElement(UIValue x, UIValue y, UIValue w, std::shared_ptr<Font> font);
|
TextFieldElement(UIValue x, UIValue y, UIValue w, std::shared_ptr<Font> font);
|
||||||
|
|
||||||
TextFieldElement(UIValue x, UIValue y, UIValue w);
|
TextFieldElement(UIValue x, UIValue y, UIValue w);
|
||||||
|
Loading…
Reference in New Issue
Block a user