Crate cosmic::iced_winit::graphics::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.
Modules§
- Align and position widgets.
- Draw lines around containers.
- Access the clipboard.
- Handle events of a user interface.
- Load and use fonts.
- Colors that transition progressively.
- Widget and Window IDs.
- Load and draw raster graphics.
- Listen to keyboard events.
- Position your widgets properly.
- Handle mouse events.
- Display interactive elements on top of other widgets.
- Space stuff around the perimeter.
- Write your own renderer.
- Load and draw vector graphics.
- Draw and interact with text.
- Use the built-in theme and styles.
- Keep track of time, both in native and web platforms!
- Build touch events.
- Create custom widgets and operate on them.
- Build window-based GUI applications.
Macros§
- Creates a
Color
with shorter and cleaner syntax.
Structs§
- A border.
- A color in the
sRGB
color space. - Degrees
- A generic
Widget
. - A font.
- The hasher used to compare layouts.
- A raster image that can be drawn.
- The bounds of a
Node
and its children, using absolute coordinates. - An amount of space to pad for each side of a box
- An amount of logical pixels.
- A 2D point.
- Radians
- An axis-aligned rectangle.
- A shadow.
- A connection to the state of a shell.
- An amount of space in 2 dimensions.
- A
SmolStr
is a string type that has the following properties: - A raster image that can be drawn.
- A paragraph.
- A 2D transformation matrix.
- A 2D vector.
Enums§
- Alignment on the axis of a container.
- The background of some element.
- The strategy used to fit the contents of a widget to its bounding box.
- A user interface event.
- A fill which transitions colors progressively along a direction, either linearly, radially (TBD), or conically (TBD).
- The strategy used to fill space in a specific dimension.
- The strategy used to rotate the content.
- A built-in theme.
Traits§
- A buffer for short-term storage and transfer within and between applications.
- An interactive component that can be displayed on top of other widgets.
- A component that can be used by widgets to draw themselves on a screen.
- A component that displays information and allows interaction.