Skip to main content

Crate icedwright_types

Crate icedwright_types 

Source
Expand description

Types shared by every icedwright crate, including the featureless probe that apps link.

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 Messages trait, 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 Role enum, 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.