Crate 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.

The foundations of the Iced ecosystem

Modules§

alignment
Align and position widgets.
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.
id
Widget and Window IDs.
image
Load and draw raster graphics.
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§

color
Creates a Color with shorter and cleaner syntax.

Structs§

Border
A border.
Color
A color in the sRGB color space.
Degrees
Degrees
Element
A generic Widget.
Font
A font.
Hasher
The hasher used to compare layouts.
Image
A raster image that can be drawn.
Layout
The bounds of a Node and its children, using absolute coordinates.
Padding
An amount of space to pad for each side of a box
Pixels
An amount of logical pixels.
Point
A 2D point.
Radians
Radians
Rectangle
An axis-aligned rectangle.
Shadow
A shadow.
Shell
A connection to the state of a shell.
Size
An amount of space in 2 dimensions.
SmolStr
A SmolStr is a string type that has the following properties:
Svg
A raster image that can be drawn.
Text
A paragraph.
Transformation
A 2D transformation matrix.
Vector
A 2D vector.

Enums§

Alignment
Alignment on the axis of a container.
Background
The background of some element.
ContentFit
The strategy used to fit the contents of a widget to its bounding box.
Event
A user interface event.
Gradient
A fill which transitions colors progressively along a direction, either linearly, radially (TBD), or conically (TBD).
Length
The strategy used to fill space in a specific dimension.
Rotation
The strategy used to rotate the content.
Theme
A built-in theme.

Traits§

Clipboard
A buffer for short-term storage and transfer within and between applications.
Overlay
An interactive component that can be displayed on top of other widgets.
Renderer
A component that can be used by widgets to draw themselves on a screen.
Widget
A component that displays information and allows interaction.