Crate freya_hooks
source ·Expand description
§Freya Hooks
A collection of hooks to be used in Freya.
Macros§
- Alias forCow::Borrowed, because that’s used a million times so shortening it is nice. Makes the code more readable.
- Example usage:
- CreateFooThemeWithstructs without having to deal with the verbose syntax.
- This macro has three arguments separator by commas.
Structs§
- Theming properties for theAccordioncomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Animate a color.
- Animate a numeric value.
- Configuration for a given Asset.
- Theming properties for theBodycomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theBottomTabcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theButtoncomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theCanvascomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theCheckboxcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theDropdownItemcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theDropdowncomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Create a configuration for aUseEditable.
- Theming properties for Fonts.
- You can use this to change a theme for only one component, with thethemeproperty. Theming properties for Fonts.
- Theming properties for theGraphcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theIconcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theInputcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- A text line from a TextEditor
- Iterator over text lines.
- Theming properties for theLinkcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theLoadercomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theMenuContainercomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theMenuItemcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theNetworkImagecomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for thePopupcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theProgressBarcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theRadiocomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- A utf8 text rope.
- TextEditor implementing a Rope
- Theming properties for theScrollBarcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theSidebarItemcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theSidebarcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theSlidercomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theSnackBarcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theSwitchcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theTabcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theTablecomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Holds the position of a cursor in a text
- Events for TextEditor
- Theming properties for theTilecomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Theming properties for theTooltipcomponent.
- You can use this to change a theme for only one component, with thethemeproperty.
- Pass uniform values to a Shader.
- Animate your elements. Useuse_animationto use this.
- Holds a rendering hook callback that allows to render to the Canvas.
- Manage an editable text.
- Manage the focus operations of given Node
Enums§
- Controls the direction of the animation.
- Defines the duration for which an Asset will remain cached after it’s user has stopped using it. The default is 1h (3600s).
- Events emitted to theUseEditable.
- How the editable content must behave.
- What to do once the animation finishes. By default it isStop
- Indicates the type of text dragging being done.
- Uniform value to be passed to a Shader.
Constants§
Traits§
- Common trait for editable texts
Functions§
- Animate your elements easily.
- Global caching system for assets.
- Register a rendering hook to gain access to the Canvas. Reactivity managed through signals.
- Register a rendering hook to gain access to the Canvas. Reactivity managed with manual dependencies.
- Hook to create an editable text. For manual creation use UseEditable::new_in_hook.
- Create a focus manager for a node.
- Initialize the global caching system for assets.
- Provide the defaultTheme.
- Keep some native features (focused element, preferred theme, etc) on sync between the platform and the components
- Provide a customTheme.
- Subscribe to a Node layout changes.
- Get a signal to read the latest layout from a Node.
- Get access to information and features of the platform.
- Get access to information from the platform.
- Access the preferred theme selected by the user.
- Subscribe toThemechanges.