[][src]Crate egui

Re-exports

pub use containers::*;
pub use math::*;
pub use paint::color;
pub use paint::Color;
pub use paint::PaintJobs;
pub use paint::TextStyle;
pub use widgets::*;

Modules

app

Traits and helper for writing Egui apps.

containers

Containers are pieces of the UI which wraps other pieces of UI.

demos
math

Vectors, positions, rectangles etc.

menu

Menu bar functionality.

paint

Graphics module.

widgets

Widgets are pieces of GUI such as labels, buttons, sliders etc.

Macros

label

Shortcut for creating a Label widget.

Structs

Context

Contains the input, style and output of all GUI commands. Ui:s keep an Arc pointer to this. This allows us to create several child Ui:s at once, all working against the same shared Context.

DemoApp
GraphicLayers
GuiResponse

The result of adding a widget to an Ui.

Id

Egui tracks widgets frame-to-frame using Ids.

InputState

What egui maintains

InteractInfo

The result of an interaction.

Layer

An identifier for a paint layer. Also acts as an identifier for Area:s.

Layout

The layout of a Ui, e.g. horizontal left-aligned.

Memory

The data that Egui persists between frames.

MouseInput

What egui maintains

MovementTracker

This struct tracks recent values of some time series. This can be used for things like smoothed averages (for e.g. FPS) or for smoothed velocity (e.g. mouse pointer speed). All times are in seconds.

Output

What Egui emits each frame. The backend should use this.

PaintCmdIdx

A unique identifier of a specific PaintCmd in a PaintList.

PaintList

Each PaintCmd is paired with a clip rectangle.

Painter

Helper to paint shapes and text to a specific region on a specific layer.

RawInput

What the integration gives to the gui. All coordinates in egui is in point/logical coordinates.

Sense

What sort of interaction is a widget sensitive to?

Style

Specifies the look and feel of a Ui.

Texture

An 8-bit texture containing font data.

Ui

Represents a region of the screen with a type of layout (horizontal or vertical).

Enums

Align

left/center/right or top/center/bottom alignment for e.g. anchors and Layouts.

CursorIcon
Direction

Layout direction (horizontal or vertical).

Event

An input event. Only covers events used by Egui.

Key

Keyboard key name. Only covers keys used by Egui.

Order

Different layer categories