Crate freya_hooks
source ·Expand description
Freya Hooks
A collection of hooks to be used in Freya.
Structs
- Theming properties for Accordion component.
- Manage the lifecyle of an Animation.
- Theming properties for the App body.
- Theming properties for Button components.
- Theming properties for DropdownItem components.
- Theming properties for Dropdown components.
- Create a configuration for a
UseEditable
. - Theming properties for ExternalLink components.
- Theming properties for Fonts.
- A text line from a TextEditor
- Iterator over text lines.
- Theming properties for Loader component.
- A utf8 text rope.
- TextEditor implementing a Rope
- Theming properties the Scrollbar components.
- Theming properties for Slider components.
- Theming properties the Switch components.
- Holds the position of a cursor in a text
- Theming properties for Themes.
- Theming properties for Tooltip components.
- Manage the lifecyle of an [AnimationTransitionManager].
- Pass uniform values to a Shader.
- Holds a rendering hook callback that allows to render to the Canvas.
- Manage an editable content.
- Manage the focus operations of given Node
Enums
- Animation mode and configuration.
- Events emitted to the
UseEditable
. - How the editable content must behave.
- Events for TextEditor
- Configure a
Transition
animation. - Stores the current state for a
Transition
. - Uniform value to be passed to a Shader.
Constants
Dark
themeLight
theme
Traits
- Common trait for editable texts
Functions
- Run animations.
- Run a group of animated transitions.
- Register a rendering hook to gain access to the Canvas.
- Create a virtual text editor with it’s own cursor and rope.
- Create a focus manager for a node.
- Sync both the Focus shared state and the platform accessibility focus
- Provide the default
Theme
. - Create a focus provider.
- Provide a custom
Theme
. - Subscribe to a Node layout changes.
- Silently read the latest layout from a Node.
- Subscribe to
Theme
changes.