22 using tdme::gui::nodes::GUIHorizontalScrollbarInternalController_State;
32 GUIHorizontalScrollbarInternalNode::GUIHorizontalScrollbarInternalNode(
40 const string& backgroundImage,
42 const GUIColor& backgroundImageEffectColorMul,
43 const GUIColor& backgroundImageEffectColorAdd,
48 const string& tooltip,
53 GUINode(screenNode, parentNode, id, flow, alignments, requestedConstraints, backgroundColor, backgroundImage, backgroundImageScale9Grid, backgroundImageEffectColorMul, backgroundImageEffectColorAdd, border, padding, showOn, hideOn, tooltip)
96 auto width = barWidth;
98 array<float, 4> barColorArray;
113 ((left) / (screenWidth / 2.0f)) - 1.0f,
114 ((screenHeight - top) / (screenHeight / 2.0f)) - 1.0f,
121 ((left + width) / (screenWidth / 2.0f)) - 1.0f,
122 ((screenHeight - top) / (screenHeight / 2.0f)) - 1.0f,
129 ((left + width) / (screenWidth / 2.0f)) - 1.0f,
130 ((screenHeight - top - height) / (screenHeight / 2.0f)) - 1.0f,
137 ((left) / (screenWidth / 2.0f)) - 1.0f,
138 ((screenHeight - top - height) / (screenHeight / 2.0f)) - 1.0f,
const array< float, 4 > & getArray() const
GUI element node conditions.
GUI node controller base class.
virtual void render(GUIRenderer *guiRenderer)
Render.
unique_ptr< GUINodeController > controller
GUINode_ComputedConstraints computedConstraints
GUINodeController * getController()
GUIScreenNode * screenNode
bool shouldRender()
Returns if to render.
void setController(GUINodeController *controller)
Set up node controller.
friend class GUIHorizontalScrollbarInternalController
GUI parent node base class thats supporting child nodes.
GUI screen node that represents a screen that can be rendered via GUI system.
void bindTexture(int32_t textureId)
Bind texture.
void addQuad(float x1, float y1, float colorR1, float colorG1, float colorB1, float colorA1, float tu1, float tv1, float x2, float y2, float colorR2, float colorG2, float colorB2, float colorA2, float tu2, float tv2, float x3, float y3, float colorR3, float colorG3, float colorB3, float colorA3, float tu3, float tv3, float x4, float y4, float colorR4, float colorG4, float colorB4, float colorA4, float tu4, float tv4, bool solidColor=false, bool rotated=false)
Add quad Note: quad vertices order 1 2 +-—+ | | | | +-—+ 4 3.
GUI node computed constraints.
GUI node requested constraints entity.
GUI node scale 9 grid entity.