The dragged element that receives drag mouse events.
The focused element that receives mouse events.
The root element of the canvas. This is provided by default for by canvas.
VirtualA method called to dispatch events for elements.
Keyboard and text events are always sent to the currently focused element, if any.
The event received on the element.
True if the event was consumed and must not be propagated to the parent; false otherwise.
VirtualA method called to dispatch events for elements.
Mouse events are always delivered to the highest z-ordered element under the location the event has occurred, except for UIMouseEventType::MouseUp
and UIMouseEventType::MouseDrag which will always be forwarded to the element to which UIMouseEventType::MouseDown was
first sent to.
The event received on the element.
True if the event was consumed and must not be propagated to the parent; false otherwise.
VirtualA method called to dispatch events for elements.
Keyboard and text events are always sent to the currently focused element, if any.
The event received on the element.
True if the event was consumed and must not be propagated to the parent; false otherwise.
ReadonlyonAn event triggered whenever a element becomes dirty and the canvas needs to redraw. This event will is only triggered once until draw() is called.
ReadonlyonAn event triggered whenever a element becomes dirty and the canvas needs to redraw. This event will is only triggered once until draw() is called.
ReadonlyonAn event triggered whenever a element becomes dirty and the canvas needs to redraw. This event will is only triggered once until draw() is called.
A 2D scene class that can have a hierarchy of renderable elements.
The Canvas2D class allows querying elements inside a given area or below a point, as well as creating a command buffer that includes a sequence of commands that need to be executed by a renderer to draw the 2D scene on the screen.