Expand description
Elements, attributes and events definitions.
Modules§
Structs§
- imageelement let’s you show an image.
- labelsimply let’s you display some text.
- paragraphelement let’s you build texts with different styles.
- rectis a generic element that acts as a container for other elements.
- svgelement let’s you display SVG code.
- textelement is simply a text span used for the- paragraphelement.
Functions§
- Theclickevent fires when the user clicks an element with the left button of the mouse.
- Thefiledropevent fires when the user drops a file over the element.
- Theglobalclickevent fires when the user clicks anywhere. Note that this fires for all mouse buttons. You can check the specific variant with theMouseData’strigger_buttonproperty.
- Theonglobalfilehoverevent fires when the user hovers a file over the window.
- Theonglobalfilehovercancelledevent fires when the user cancels the hovering of a file over the window. It’s the opposite ofonglobalfilehover.
- Theglobalmousedownevent fires when the user starts clicking anywhere. Note that this fires for all mouse buttons. You can check the specific variant with theMouseData’strigger_buttonproperty.
- Theglobalmouseoverevent fires when the user moves the mouse anywhere in the app.
- Theglobalpointerupevent fires when the user releases the point anywhere in the app.
- Thekeydownevent fires when the user starts pressing any key.
- Thekeyupevent fires when the user releases any key being pressed.
- Theclickevent fires when the user clicks an element with the middle button of the mouse.
- Themousedownevent fires when the user starts clicking an element. Note that this fires for all mouse buttons. You can check the specific variant with theMouseData’strigger_buttonproperty.
- Themouseenterevent fires when the user starts hovering an element.
- Themouseleaveevent fires when the user stops hovering an element.
- Themouseoverevent fires when the user moves the mouse over an element. Unlikeonmouseover, this fires even if the user was already hovering over the element. For that reason, it’s less efficient.
- Thepointerdownevent fires when the user clicks/starts touching an element.
- Thepointerenterevent fires when the user starts hovering/touching an element.
- Thepointerleaveevent fires when the user stops hovering/touching an element.
- Thepointeroverevent fires when the user hovers/touches over an element. Unlikeonpointerenter, this fires even if the user was already hovering over the element. For that reason, it’s less efficient.
- Thepointerupevent fires when the user releases their mouse button or stops touching the element.
- Theclickevent fires when the user clicks an element with the right button of the mouse.
- Thetouchcancelevent fires when the user cancels the touching, this is usually caused by the hardware or the OS. Also seeontouchend.
- Thetouchendevent fires when the user stops touching an element.
- Thetouchmoveevent fires when the user is touching over an element.
- Thetouchstartevent fires when the user starts touching an element.
- Thewheelevent fires when the user scrolls the mouse wheel while hovering over the element.