Expand description
Types shared by every icedwright crate, including the featureless probe that apps link.
role: the runtimeRoleenum, one marker type per role, and the sealed capability traits that gate role-specific methods at compile time.geometryandunits: points, vectors, sizes and rectangles, and theLogicalandPhysicalpixel newtypes withScaleFactorbetween them.time:VirtualInstantandVirtualDuration, which never mix with the real clock.frame:Frame, an RGBA image at physical pixels.input: key chords, their grammar and its parser.messages: theMessagestrait that#[derive(Messages)]implements.state:StateName,StateValue,CheckedandCursorSeen, the node states trees, YAML and selectors share.
The serde feature derives serialisation for the types that cross the wire. The iced
feature adds From conversions to and from iced_core types.
Re-exports§
pub use frame::Frame;pub use frame::FrameError;pub use geometry::Point;pub use geometry::Rect;pub use geometry::Size;pub use geometry::Vector;pub use input::Chord;pub use input::ChordError;pub use input::Keystroke;pub use input::ModifierSet;pub use messages::Messages;pub use messages::VariantPath;pub use role::ParseRoleError;pub use role::Role;pub use role::RoleMismatch;pub use state::Checked;pub use state::CursorSeen;pub use state::ParseStateError;pub use state::StateName;pub use state::StateValue;pub use time::VirtualDuration;pub use time::VirtualInstant;pub use units::InvalidRatio;pub use units::InvalidScaleFactor;pub use units::Logical;pub use units::Physical;pub use units::Ratio;pub use units::ScaleFactor;
Modules§
- frame
Frame, a rendered image: RGBA bytes at physical pixels.- geometry
- Plain geometry: points, vectors, sizes and rectangles.
- input
- Key chords: modifiers held around one key, written
Control+Shift+K. - messages
- The
Messagestrait, which#[derive(Messages)]implements on an app’s message enum so that coverage knows every variant that could have been received. - role
- Roles: the runtime
Roleenum, one zero-sized marker type per role, and the sealed capability traits that say what each role can do. - state
- Node states as trees, YAML, selector strings and the wire name them.
- time
- Virtual time, which never mixes with the real clock.
- units
- Pixel units and the checked numbers that go with them.