Re-exports§
pub use crate::components::*;
Modules§
Structs§
- Accessibility
Data - Accessibility
Id - The stable identity of a [
Node], unique within the node’s tree. - Accessibility
State - Animation
Clock - AppComponent
- AppComponent is a wrapper for Components that returns true in equality checks.
- Border
- Border
Width - Bytes
- A cheaply cloneable and sliceable chunk of contiguous memory.
- Callback
- Clipboard
- Access the clipboard.
- Color
- Represents one color. You may create Colors using
- Conic
Gradient - Corner
Radius - Cursor
- Cursor
Style Data - Effect
- Effect
Data - Effect
State - Event
- Event
Handler - Events
Combos - File
Event Data - Focus
- Font
Weight - Font
Width - Future
Task - Gaps
- Gradient
Stop - ImePreedit
Event Data - Keyboard
Event Data - Data of a Keyboard event.
- Label
- Launch
Config - Launch configuration.
- Layer
State - Layout
Data - Linear
Gradient - Memo
- Modifiers
- Pressed modifier keys.
- Mouse
Event Data - Paragraph
- Paragraph
Holder - Platform
- Radial
Gradient - Reactive
Context - Rect
- Render
Context - Renderer
Context - Rendering
Ticker - Scale
- Screen
Reader - Shadow
- Sized
Event Data - Data of a Sized event.
- Span
- State
- Style
State - Svg
- Task
- Task
Handle - TaskId
- Task
Waker - Text
Shadow - Text
Style Data - Text
Style State - Touch
Event Data - Data of a Touch event.
- UseId
- Wheel
Event Data - Data of a Wheel event.
- Window
Config - Configuration for a Window.
Enums§
- Accessibility
Focus Movement - Strategy focusing an Accessibility Node.
- Accessibility
Focus Strategy - Strategy focusing an Accessibility Node.
- Accessibility
Role - The type of an accessibility node.
- Alignment
- Aspect
Ratio - Border
Alignment - Border
Shape - Clipboard
Error - Code
- Code is the physical position of a key.
- Content
- Cursor
Icon - Describes the appearance of the (usually mouse) cursor icon.
- DiffKey
- Direction
- Element
- Event
Type - Fill
- Focus
Status - Focusable
- Font
Slant - Force
- Future
State - Image
Cover - Interactive
- Key
- The value received from the keypress.
- Layer
- Mouse
Button - Named
Key - Key represents the meaning of a keypress.
- Navigation
Mode - Overflow
- Pointer
Event Data - Data of a pointer event.
- Position
- Preferred
Theme - Press
Event Data - Press
Event Type - Read
State - Given a type
Tyou may pass an owned value, aState<T>or a function returning aReadRef<T> - Read
State Cow - Sampling
Mode - Shadow
Position - Size
- Text
Align - Text
Height Behavior - Text
Overflow - Text
Width - Touch
Phase - User
Event - Wheel
Source
Traits§
- Accessibility
Ext - Alignment
Ext - Children
Ext - Component
- Encapsulate reusable pieces of UI by using the Component trait. Every Component creates a new layer of state in the app, meaning that implementors of Component can make use of hooks in their Component::render method.
- Component
Key - Component
Owned - Container
Ext - Container
Size Ext - Container
With Content Ext - Content
Ext - Debug
Ext - Direction
Ext - Event
Handlers Ext - Image
Ext - Interactive
Ext - Into
Element - KeyExt
- Layer
Ext - Layout
Ext - ListExt
- Maybe
Ext - MutView
- Scrollable
Ext - SizeExt
- Style
Ext - Text
Style Ext - Visible
Size Ext - Winit
Platform Ext
Functions§
- consume_
context - consume_
root_ context - current_
scope_ id - label
- Draw text with label(). Its a simplified version of crate::elements::paragraph.
- launch
- mark_
scope_ as_ dirty - paragraph
- paragraph() makes it possible to render rich text with different styles. Its a more customizable API than crate::elements::label.
- provide_
context - provide_
context_ for_ scope_ id - rect
- rect() acts as a generic container to contain other elements inside, like a box.
- spawn
- spawn_
forever - svg
- Use svg() to render SVG in your app.
- try_
consume_ context - try_
consume_ context_ from_ scope_ id - try_
consume_ root_ context - use_
after_ side_ effect - use_
consume - Get access to a value stored in this component instance or some ancestor.
- use_
drop - Run a callback for when the component gets dropped. Useful to clean resources.
- use_
focus - use_
focus_ status - use_
future - Creata FutureTask with the given callback.
- use_
hook - This is the foundational hook used by all. It’s simple, it accepts an initialization callback whose return value will be stored in this component instance until its dropped. In subsequent renders the returned value of the function will be a Cloned value of what had been previously returned by the initialization callback.
- use_id
- Get a unique for a given generic type.
- use_
memo - Registers a callback that will run every time a State which was .read() inside, changes. It also returning a type that will get cached after the callback runs, thus allowing this to be used as a way to cache expensive values.
- use_
provide_ context - Store the given value in this component instance. Any descendant component of this component calling use_consume or consume_context will have access to it.
- use_
reactive - Allows converting a
&Tinto aState<T>so that we can pass this value around without cloning it multiple times. - use_
side_ effect - Registers a callback that will run every time a State which was .read() inside, changes.
- use_
side_ effect_ value - use_
side_ effect_ with_ deps - use_
state - Creates a reactive value initialized with the returned value of the
initcallback that we pass to it. AState<T>is a combination ofRc<RefCell<T>>+Copyand reactive semantics. It allow us to store a value into a reactive pointer and share this to other components to let them read or even write to it. - use_
try_ consume - Try to get access to a value stored in this component instance or some ancestor.
Type Aliases§
- Area
- Area used by a Node, including its margins.
- Cursor
Point - ReadRef
- Size2D
- Write
Ref