Module types

Module types 

Source
Expand description

Types used by hooks and components.

Structs§

AppContext
Information about the current application window.
Font
Represents a font.
ImageSource
An image to be used with the img component.
Rect
Holds information about a rectangle.

Enums§

Align
Specify a horizontal alignment.
Dim
Specify dimension in absolute or percentual units.
HoverState
Hold information about the hovered state of a component.
ScaleMode
Define how an image should scale in relation to its container.
VAlign
Specify a vertical alignment.

Traits§

Element
An element that can be rendered, and has a key.
RenderElement
An element that can be rendered, i.e. produce other elements.

Functions§

pct
Convenience function to create a percentual dimension.

Type Aliases§

ElementWrap
Wraps an element for allocation.
Elements
An array of elements, i.e. an element fragment.