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
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
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
The draw method is called to actually draw the ui element visual representation to the CanvasBuffer
The UIElement is automatically removed after removeAfterMsms
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