Make more UI fields public

This commit is contained in:
MrLetsplay 2023-10-15 21:38:50 +02:00
parent c6232b7691
commit 275c10258b
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg

View File

@ -58,12 +58,12 @@ class TextElement: public UIElement {
class RectangleElement: public UIElement {
protected:
UIValue w, h;
unsigned int vao;
unsigned int vbo;
public:
UIValue w, h;
Color color;
RectangleElement(UIValue x, UIValue y, UIValue w, UIValue h);
@ -100,11 +100,6 @@ class TextFieldElement: public RectangleElement {
protected:
std::string text;
Color color;
Color focusColor;
TextElement *textElement;
RectangleElement *cursor;
KeyboardCapture capture;
float lastCharTyped = 0;
@ -113,6 +108,12 @@ class TextFieldElement: public RectangleElement {
void updateText(std::u32string newText);
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);