Expand description
Egui integration for Astrelis.
Provides immediate mode GUI rendering using egui on top of the astrelis-render wrapper.
Re-exports§
pub use egui;
Structs§
- Align2
- Two-dimension alignment, e.g.
Align2::LEFT_TOP. - Color32
- This format is used for space-efficient color representation (32 bits).
- Corner
Radius - How rounded the corners of things should be.
- Egui
- Egui
Context - Your handle to egui.
- Event
Response - FontId
- How to select a sized font.
- Frame
- A frame around some content, including margin, colors, etc.
- Id
- egui tracks widgets frame-to-frame using
Ids. - Label
- Static text.
- Layout
- The layout of a
Ui, e.g. “vertical & centered”. - Margin
- A value for all four sides of a rectangle, often used to express padding or spacing.
- Modifiers
- State of the modifier keys. These must be fed to egui.
- Pos2
- A position on screen.
- Rect
- A rectangular region of space.
- Response
- The result of adding a widget to a
Ui. - Rich
Text - Text and optional style choices for it.
- Sense
- What sort of interaction is a widget sensitive to?
- Slider
- Control a number with a slider.
- Stroke
- Describes the width and color of a line.
- Style
- Specifies the look and feel of egui.
- Text
Edit - A text region that the user can edit the contents of.
- Ui
- This is what you use to place widgets.
- Vec2
- A vector has a direction and length.
A
Vec2is often used to represent a size. - Visuals
- Controls the visual style (colors etc) of egui.
Enums§
- Align
- left/center/right or top/center/bottom alignment for e.g. anchors and layouts.
- Font
Family - Font of unknown size.
- Key
- Keyboard keys.
- Text
Style - Alias for a
FontId(font of a certain size).