UIElement
The UIElement class is the base class for all ui widgets available in the SDK.
Each UIElement can be added directly to a screen or to a UIElementsGroup in order to draw it on the glasses display.
Similar to common UI elements, the UIElement has many options like defining its
X,Y location
Dimensions
Color
Style
Visibility
And more...
The SDK arrives with several stock ui elements (e.g. Polygon,Text, Line...).
You can easily create your own ui elements and complex custom controls.
Samples can be found in the SDK samples repository
See also
Inheritors
Constructors
Functions
Add the UI element to the given group
Add the UI element to the given screen
Cancel the ui element animations
Clear the background color if the ui element
Draws the ui element background
Override this function to enable custom border drawing when showBorder is true
Get the foreground color of the ui element
Returns the bounding box of the ui element in screen coordinates
Get the foreground color of the ui element
Get the ui element line style
Returns the parent ui element group
Get the ui element pen shape
Get the ui element pen thickness
Return the absolute screen X position
Return the absolute screen Y position
Return true if the ui element has any active animations
Invalidates the ui element, forcing it to be re-drawn on the next onDraw
Returns true when the element is attached to screen
Override this function to be notified when the ui element is attached to a screen
Override this function to be notified when the ui element is about to be detached from a screen
Override this function to be notified when the ui element is about to be drawn
The draw method is called to actually draw the ui element visual representation to the CanvasBuffer
This function is called after the rendering tree onBeforeDraw cycle was completed and before the onDraw cycle is called
Removes the UIElement from its parent group
Reset all applied transformation (including animations)
Set the background color of the ui element
Set the foreground color of the ui element
Set the ui element line style
Set the ui element pen shape
Set the ui element pen thickness
Change the ui element visibility (Hide\Show the ui element)
Sets the ui element size
Start the ui element animations
Sets the x,y translations of the ui element
Sets the x,y translations of the ui element
Returns true when the element was created (the onCreate was called)