Crate flo_ui

Source

Re-exports§

pub use self::control::*;
pub use self::image::*;
pub use self::controllers::*;

Modules§

control
controllers
image
session

Structs§

BindingCanvas
The binding canvas is a canvas that can have an attached rendering function. It will invalidate itself if any bindings used in that rendering function are changed.
BoundsLayout
Perfoms layout with a bounding box
Diff
Represents a difference between two trees
DiffViewModel
Tracks differences in the viewmodel attached to a controller and its subtree
DynamicViewModel
The dynamic viewmodel lets us define arbitrary properties as bound or computed values. A particular key can only be bound or computed: if it is set as both, the computed version ‘wins’.
NULL_VIEW_MODEL
NullController
A controller that does nothing
NullViewModel
PositionLayout
Converts Positions to actual coordinates
Resource
Represents a resource being managed by the resource manager. Resources are removed from the manager when all copies are dropped.
ResourceManager
The resource manager is used to track resources of a particular type
ViewModelUpdate
Describes an update to the view model
WatchViewModel
Watches for changes in a viewmodel

Enums§

Property
Represents a property (a control value that can either be a constant or a viewmodel value)
PropertyValue
Represents the value of a property

Traits§

Controller
Controllers represent a portion of the UI and provide a hub for receiving events related to it and connecting the model or viewmodel.
DiffableTree
Trait implemented by tree structures that can describe how they differ from another structure.
ToJsonValue
Trait implemented by types that can be converted to and from a JSON value representation
ToProperty
Trait for types that can be converted to a property
UserInterface
Trait that can be implemented by items that represent a user interface
ViewModel
Represents a viewmodel for a control subtree. ViewModels are used for controls which can be edited and need to have values stored by key in the controller

Functions§

assemble_ui
Returns a bound control that expands the content of any sub-controllers that might be present.
controller_path_for_address
Given an address (a list of subcomponent node indices), finds the path through the controllers that will supply the controller that owns that node.
diff_tree
Computes the difference between two trees
viewmodel_update_all
Returns an update for all of the keys in a particular viewmodel
viewmodel_update_controller_tree
Generates the updates to set the viewmodel for an entire controller tree