Crate iced_core

source ·
Expand description

The core library of Iced.

This library holds basic types that can be reused and re-exported in different runtime implementations. For instance, both iced_native and iced_web are built on top of iced_core.

The foundations of the Iced ecosystem


pub use alignment::Alignment;


Align and position widgets.
Listen to keyboard events.
Handle mouse events.
Keep track of time, both in native and web platforms!


Creates a Color with shorter and cleaner syntax.


A color in the sRGB color space.
An amount of space to pad for each side of a box
A 2D point.
A rectangle.
An amount of space in 2 dimensions.
A 2D vector.


The background of some element.
The strategy used to fit the contents of a widget to its bounding box.
A font.
The strategy used to fill space in a specific dimension.