Crate dotrix_egui[−][src]
Modules
containers | Containers are pieces of the UI which wraps other pieces of UI. Examples: |
layers | Handles paint layers, i.e. how things are sometimes painted behind or in front of other things. |
math | Opinionated 2D math library for building GUIs. |
menu | Menu bar functionality (very basic so far). |
paint | 2D graphics/rendering. Fonts, textures, color, geometry, tessellation etc. |
style | egui theme (spacing, colors, etc). |
util | Miscellaneous tools used by the rest of egui. |
widgets | Widgets are pieces of GUI such as |
Macros
github_link_file | |
github_link_file_line | Create a |
Structs
Align2 | Two-dimension alignment, e.g. |
Area | An area on the screen that can be moved by dragging. |
Button | Clickable button with text. |
CentralPanel | A panel that covers the remainder of the screen, i.e. whatever area is left after adding other panels. |
Checkbox | Boolean on/off control with text label. |
CollapsingHeader | A header which can be collapsed/expanded, revealing a contained |
CollapsingResponse | The response from showing a |
Color32 | This format is used for space-efficient color representation (32 bits). |
Context | This is the first thing you need when working with egui. Create using |
CtxRef | A wrapper around |
DragValue | A numeric value that you can change by dragging the number. More compact than a |
Egui | |
FontDefinitions | Describes the font data and the sizes to use. |
Frame | Adds a rectangular frame and background to some |
Grid | A simple grid layout. |
Hyperlink | A clickable hyperlink, e.g. to |
Id | egui tracks widgets frame-to-frame using |
Image | An widget to show an image of a given size. |
ImageButton | A clickable image within a frame. |
InputState | Input state that egui updates each frame. |
Label | Static text. |
LayerId | An identifier for a paint layer.
Also acts as an identifier for |
Layout | The layout of a |
Memory | The data that egui persists between frames. |
Modifiers | State of the modifier keys. These must be fed to egui. |
Output | What egui emits each frame. The backend should use this. |
Painter | Helper to paint shapes and text to a specific region on a specific layer. |
Pos2 | A position on screen. |
RadioButton | One out of several alternatives, either selected or not. |
RawInput | What the integrations provides to egui at the start of each frame. |
Rect | A rectangular region of space. |
Resize | A region that can be resized by dragging the bottom right corner. |
Response | The result of adding a widget to a |
Rgba | 0-1 linear space |
ScrollArea | Add vertical scrolling to a contained |
SelectableLabel | One out of several alternatives, either selected or not.
Will mark selected items with a different background color
An alternative to |
Sense | What sort of interaction is a widget sensitive to? |
Separator | A visual separator. A horizontal or vertical line (depending on |
SidePanel | A panel that covers the entire left side of the screen. |
Slider | Control a number by a horizontal slider. The range can include any numbers, and go from low-to-high or from high-to-low. |
Stroke | Describes the width and color of a line. |
Style | Specifies the look and feel of a |
TextEdit | A text region that the user can edit the contents of. |
Texture | An 8-bit texture containing font data. |
TopPanel | A panel that covers the entire top side of the screen. |
Ui | This is what you use to place widgets. |
Vec2 | A vector has a direction and length.
A |
Window | Builder for a floating window which can be dragged, closed, collapsed, resized and scrolled (off by default). |
Enums
Align | left/center/right or top/center/bottom alignment for e.g. anchors and layouts. |
CursorIcon | A mouse cursor icon. |
Direction | Layout direction, one of |
Event | An input event generated by the integration. |
FontFamily | Which style of font: |
Key | Keyboard keys. |
Order | Different layer categories |
Shape | A paint primitive such as a circle or a piece of text. Coordinates are all screen space points (not physical pixels). |
TextStyle | One of a few categories of styles of text, e.g. body, button or heading. |
TextureId | What texture to use in a |
Traits
NumExt | Extends |
Widget | Anything implementing Widget can be added to a |
Functions
clamp | Returns |
combo_box | A drop-down selection menu. |
combo_box_with_label | A drop-down selection menu with a descriptive label. |
lerp | Linear interpolation. |
pos2 |
|
remap | Linearly remap a value from one range to another,
so that when |
remap_clamp | Like |
reset_button | Show a button to reset a value to its default. The button is only enabled if the value does not already have its original value. |
show_tooltip | Show a tooltip at the current mouse position (if any). |
show_tooltip_text | Show some text at the current mouse position (if any). |
stroke_ui | |
vec2 |
|
warn_if_debug_build | Helper function that adds a label when compiling with debug assertions enabled. |
Type Definitions
PaintJobs | Grouped by clip rectangles, in points (logical pixels). |