Expand description
Prelude module for convenient imports in tests.
Re-exports§
pub use super::ClickTracker;pub use super::PointerCaptureTracker;pub use super::ScrollTracker;pub use super::layer;pub use super::layers;
Modules§
- css
- The CSS named colors.
- dropdown
- A view that allows the user to select an item from a list of items.
- editor
- el
- localization
- Localization privitives.
- palette
- Palettes with predefined colors.
- resizable
- scroll
- Scroll View
- slider
- A toggle button widget. An example can be found in widget-gallery/button in the floem examples.
- text_
editor
Structs§
- Auto
Navigation Key - Marker type for navigation stacks that use the item itself as the key.
- Auto
Navigation View - Marker type for navigation stacks that use the item itself as the destination view.
- Button
- A simple Button view. See
button. - Button
Class - The style class that is applied to buttons.
- Canvas
- A Canvas view. See the docs for canvas().
- Checkbox
- A customizable checkbox view for boolean selection.
- Checkbox
Class - The style class that is applied to checkboxs.
- Clip
- A wrapper around a child View that clips painting so the child does not show outside of the viewport.
- Container
- A simple wrapper around another View.
- Custom
Navigation Key - Marker type for navigation stacks that use an explicit key function.
- Custom
Navigation View - Marker type for navigation stacks that use an explicit destination view function.
- Delay
- Diff
- Diff
OpAdd - Diff
OpMove - Diff
OpRemove - Drag
Resize Window Area - A view that will resize the window when the mouse is dragged. See
drag_resize_window_area. - Drag
Window Area - A view that will move the window when the mouse is dragged. See
drag_window_area. - DynStack
- Dynamic
Container - A container for a dynamically updating View. See
dyn_container - Dynamic
View - A container for a dynamically updating View. See
dyn_view - Editor
Custom Style - The custom style elements that are specific to an Editor.
- Empty
- An empty View.
- Enumerate
- Event
Result - Result of an event dispatch operation.
- Headless
Harness - A headless harness for UI testing and benchmarking.
- Image
Layout Data - Holds information about image dimensions for layout calculations.
- Img
- Holds the data needed for img view fn to display images.
- Keyboard
Event - Keyboard events are issued for all pressed and released keys.
- Label
- A View that can display text from a
String. Seelabel,text, andstatic_label. - Label
Class - The style class that is applied to labels.
- Label
Custom Expr Style - Label
Custom Style - Represents a custom style for a
Label. - Labeled
Checkbox Class - The style class that is applied to all labeled checkbox stacks.
- Labeled
Radio Button Class - List
- A list of views that support the selection of items. See
list. - List
Accept - Event fired when a list item is accepted (Enter key or Space)
- List
Accept Listener - Listener for
ListAcceptevents - List
Class - List
Item Class - List
Selection Changed - Event fired when a list’s selection changes
- List
Selection Changed Listener - Listener for
ListSelectionChangedevents - Modifiers
- Pressed modifier keys.
- Navigation
Stack - A navigation view that retains a stack of destination views for an explicit path.
- Navigation
Stack Builder - Builder for a
NavigationStack. - Overlay
- A declarative overlay that renders content above all other views.
- Placeholder
Text Class - The style class that is applied to the placeholder
TextInputtext. - Pointer
Button Event - An event representing a [
PointerButton] that was pressed or released. - Pointer
Id - A unique identifier for the pointer.
- Preedit
- An IME preedit
- Radio
Button - The
RadioButtonstruct provides various methods to create and manage radio buttons. - Radio
Button Class - Radio
Button DotClass - Radio
Button DotSelected Class - Refresh
Navigation Stack Path - Message that can be sent to a
NavigationStackViewIdto force the stack to re-read its current path source. - Rich
Span - Rich
Span Owned - Rich
Text - RwSignal
- A read write Signal which can act as both a Getter and a Setter
- Scroll
- A scroll view
- Stack
- A collection of static views. See
stackandstack_from_iter. - Stem
- A generic container view that can hold multiple children.
- Svg
- SvgClass
- SvgColor
- SvgStr
Fn - Tab
- Tab widget.
- TabSelector
Class - Set class to TabSelector.
- Test
Root - A test root that owns a root ViewId and sets it as the current view.
- Text
Editor - A text editor view built on top of Editor. See
text_editor. - Text
Input - Text Input View.
- Text
Input Class - The style class that is applied to all
TextInputviews. - Text
Input Enter - Add action that will run on
Enterkey press. - Text
Input Enter Listener - Listener for
TextInputEnterevents - Toggle
Button - A toggle button.
- Toggle
Button Circle Rad - Toggle
Button Class - A class for styling ToggleButton view.
- Toggle
Button Custom Style - Represents a custom style for a ToggleButton.
- Toggle
Button Inset - Toggle
Changed - Event fired when the toggle state changes
- Toggle
Changed Listener - Listener for
ToggleChangedevents - Tooltip
- A view that displays a tooltip for its child.
- Tooltip
Class - A class for the tooltip views.
- Tooltip
Container Class - A class for the tooltip container view.
- Value
Container - A wrapper around another View that has value updates. See
value_container - ViewId
- A small unique identifier, and handle, for an instance of a View.
- Virtual
Extractor - Virtual
List - Virtual
Stack - A virtual stack that is like a
dyn_stackbut also lazily loads items for performance. Seevirtual_stack.
Enums§
- Code
- Code is the physical position of a key.
- Key
- The value received from the keypress.
- KeyState
- Describes the state a key is in.
- Movement
- Type of cursor movement in navigation.
- Named
Key - Key represents the meaning of a keypress.
- Pointer
Event - A standard
PointerEvent. - SvgOr
Style - Text
Direction - Type of text direction in the file.
Constants§
- DEFAULT_
CHECKBOX_ SVG - The default checkbox SVG
Traits§
- Button
Ext - A trait that adds a
buttonmethod to any type that implementsIntoView. - ClipExt
- A trait that adds a
clipmethod to any type that implementsIntoView. - Container
Ext - A trait that adds a
containermethod to any type that implementsIntoView. - Decorators
- A trait that extends the appearance and functionality of Views through styling and event handling.
- Duration
Unit Ext - Event
Listener Trait - HasView
Id - A trait for types that have an associated
ViewId. - Into
View - Converts a value into a
View. - Into
View Iter - Trait for types that can be converted into an iterator of views.
- ListExt
- A trait that adds a
listmethod to any generic typeTthat implementsIntoIteratorwhereT::Itemimplements IntoView. - Navigation
Path - A path source that can produce the current navigation path on demand.
- Overlay
Ext - A trait that adds an
overlaymethod to any type that implementsIntoView. - Parent
View - A trait for views that can accept children.
- Renderer
- The core rendering trait that every Floem backend must implement.
- Rich
Text Ext - Scroll
Ext - A trait that adds a
scrollmethod to any type that implementsIntoView. - Signal
Get - Signal
Track - Signal
Update - Signal
With - Stack
Ext - SvgCss
Prop Extractor - Tooltip
Ext - Adds a tooltip function to a type that implements
IntoView. - UnitExt
- View
- The View trait contains the methods for implementing updates, styling, layout, events, and painting.
- View
Tuple - Virtual
Vector - A trait that can be implemented on a type so that the type can be used in a
virtual_stackorvirtual_list.
Functions§
- brush_
to_ css_ string - button
Deprecated - Creates a new simple Button view with the default ButtonClass style.
- canvas
- Creates a new Canvas view that can be used for custom painting
- checkbox
- Renders a checkbox the provided checked signal. See also
Checkbox::newandCheckbox::new_rw. - clip
Deprecated - A clip is a wrapper around a child View that will clip the painting of the child so that it does not show outside of the viewport of the
Clip. - container
Deprecated - A simple wrapper around another View
- create_
rw_ signal Deprecated - Creates a new RwSignal which can act both as a setter and a getter.
- create_
signal Deprecated - Creates a new setter and getter Signal.
- create_
value_ container_ signals - A convenience function that creates two signals for use in a
value_container - custom_
checkbox - Renders a checkbox using a
checkedsignal and custom SVG. See alsoCheckbox::new_rwand - custom_
labeled_ checkbox - Renders a checkbox using the a
checkedsignal and a custom SVG. See alsoCheckbox::custom_labeled_rw - drag_
resize_ window_ area - A view that will resize the window when the mouse is dragged.
- drag_
window_ area - A view that will move the window when the mouse is dragged.
- dyn_
container - A container for a dynamically updating View
- dyn_
stack - A stack whose items can be reactively updated.
- dyn_
view - A container for a dynamically updating View
- empty
Deprecated - An empty View. This view can still have a size, background, border radius, and outline.
- h_stack
Deprecated - A stack which defaults to
FlexDirection::Row. See alsov_stack. - h_
stack_ from_ iter Deprecated - Creates a stack from an iterator of views. It defaults to
FlexDirection::Row. See alsov_stack_from_iter. - img
- A view that can display an image and controls its position.
- img_
from_ path - A view that can display an image and controls its position.
- label
Deprecated - A view that can reactively display text from an item that implements
Display. See alsotextfor a non-reactive label. - labeled_
checkbox - Renders a checkbox using the provided checked signal. See also
Checkbox::labeledandCheckbox::labeled_rw. - labeled_
radio_ button - Renders a radio button that appears as selected if the signal equals the given enum value.
- list
- A list of views built from an iterator which remains static and always contains the same elements in the same order.
- radio_
button - Renders a radio button that appears as selected if the signal equals the given enum value.
Can be combined with a label and a stack with a click event (as in
examples/widget-gallery). - rich_
text - stack
Deprecated - A basic stack that is built from a tuple of views which remains static and always contains the same elements in the same order.
- stack_
from_ iter Deprecated - Creates a stack from an iterator of views. See also
v_stack_from_iterandh_stack_from_iter. - static_
label Deprecated - A non-reactive view that can display text from an item that can be turned into a
String. See alsolabel. - svg
- tab
- A tab widget. Create tabs from static or dynamic lists.
- text
Deprecated - A non-reactive view that can display text from an item that implements
Display. See alsolabel. - text_
editor - A text editor view built on top of Editor. This is the main editor view used in the
Lapce code editor. The default keymap includes the standard editing keys, for using your
own keymap use
text_editor_keys. - text_
editor_ keys - A text editor view built on top of Editor that allows providing your own keymap callback.
- text_
input Deprecated - Creates a TextInput view. This can be used for basic text input.
- toggle_
button Deprecated - A reactive toggle button.
- tooltip
- A view that displays a tooltip for its child.
- v_stack
Deprecated - A stack which defaults to
FlexDirection::Column. See alsoh_stack. - v_
stack_ from_ iter Deprecated - Creates a stack from an iterator of views. It defaults to
FlexDirection::Column. See alsoh_stack_from_iter. - value_
container - A wrapper around another View that has value updates.
- virtual_
list - A view that supports virtual scrolling with item selection. Selection is done using arrow keys, home/end for top/bottom.
- virtual_
stack - A View that lazily loads items as they appear in a scroll view.
Type Aliases§
- Color
- A convenient alias for the color type used for [
Brush]. - Virt
View Fn