Skip to main content

Crate astrelis_egui

Crate astrelis_egui 

Source
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).
CornerRadius
How rounded the corners of things should be.
Egui
EguiContext
Your handle to egui.
EventResponse
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.
RichText
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.
TextEdit
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 Vec2 is 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.
FontFamily
Font of unknown size.
Key
Keyboard keys.
TextStyle
Alias for a FontId (font of a certain size).

Traits§

Widget
Anything implementing Widget can be added to a Ui with Ui::add.