Expand description
The core library of Iced.
This library holds basic types that can be reused and re-exported in different runtime implementations.

Re-exports§
- pub use alignment::Alignment;
- pub use animation::Animation;
- pub use border::Border;
- pub use clipboard::Clipboard;
- pub use event::Event;
- pub use font::Font;
- pub use gradient::Gradient;
- pub use image::Image;
- pub use input_method::InputMethod;
- pub use layout::Layout;
- pub use overlay::Overlay;
- pub use padding::Padding;
- pub use renderer::Renderer;
- pub use svg::Svg;
- pub use text::Text;
- pub use theme::Theme;
- pub use widget::Widget;
Modules§
- alignment
- Align and position widgets.
- animation
- Animate your applications.
- border
- Draw lines around containers.
- clipboard
- Access the clipboard.
- event
- Handle events of a user interface.
- font
- Load and use fonts.
- gradient
- Colors that transition progressively.
- image
- Load and draw raster graphics.
- input_method 
- Listen to input method events.
- keyboard
- Listen to keyboard events.
- layout
- Position your widgets properly.
- mouse
- Handle mouse events.
- overlay
- Display interactive elements on top of other widgets.
- padding
- Space stuff around the perimeter.
- renderer
- Write your own renderer.
- svg
- Load and draw vector graphics.
- text
- Draw and interact with text.
- theme
- Use the built-in theme and styles.
- time
- Keep track of time, both in native and web platforms!
- touch
- Build touch events.
- widget
- Create custom widgets and operate on them.
- window
- Build window-based GUI applications.
Macros§
Structs§
- Color
- A color in the sRGBcolor space.
- Degrees
- Degrees
- Element
- A generic Widget.
- Pixels
- An amount of logical pixels.
- Point
- A 2D point.
- Radians
- Radians
- Rectangle
- An axis-aligned rectangle.
- Settings
- The settings of an iced program.
- Shadow
- A shadow.
- Shell
- A connection to the state of a shell.
- Size
- An amount of space in 2 dimensions.
- SmolStr
- A SmolStris a string type that has the following properties:
- Transformation
- A 2D transformation matrix.
- Vector
- A 2D vector.
Enums§
- Background
- The background of some element.
- ContentFit 
- The strategy used to fit the contents of a widget to its bounding box.
- Length
- The strategy used to fill space in a specific dimension.
- Rotation
- The strategy used to rotate the content.
Traits§
- Function
- A trait extension for binary functions (Fn(A, B) -> O).
Functions§
- never
- A function that can never be called.