Skip to main content

Module containers

Module containers 

Source
Available on crate feature egui only.
Expand description

Containers are pieces of the UI which wraps other pieces of UI. Examples: Window, ScrollArea, Resize, Panel, etc.

For instance, a Frame adds a frame and background to some contained UI.

Modules§

collapsing_header
frame
Frame container
menu
Popup menus, context menus and menu bars.
modal
panel
Panels are Ui regions taking up e.g. the left side of a Ui or screen.
scroll_area
See ScrollArea for docs.

Structs§

Aligned
Align some widgets of unknown size within the available space of a Ui.
Area
An area on the screen that can be moved by dragging.
AreaState
State of an Area that is persisted between frames.
CentralPanel
A panel that covers the remainder of the screen, i.e. whatever area is left after adding other panels.
ClosableTag
A tag to mark a container as closable.
CollapsingHeader
A header which can be collapsed/expanded, revealing a contained Ui region.
CollapsingResponse
The response from showing a CollapsingHeader.
ComboBox
A drop-down selection menu with a descriptive label.
DragPanButtons
Specifies which pointer buttons can be used to pan the scene by dragging.
Frame
A frame around some content, including margin, colors, etc.
Modal
A modal dialog.
ModalResponse
The response of a modal dialog.
Panel
A panel that covers an entire side (left, right, top or bottom) of a Ui or screen.
PanelState
State regarding panels.
Popup
A popup container.
Resize
A region that can be resized by dragging the bottom right corner.
Scene
A container that allows you to zoom and pan.
ScrollArea
Add vertical and/or horizontal scrolling to a contained Ui.
Sides
Put some widgets on the left and right sides of a ui.
Tooltip
Window
Builder for a floating window which can be dragged, closed, collapsed, resized and scrolled (off by default).

Enums§

PopupAnchor
What should we anchor the popup to?
PopupCloseBehavior
Determines popup’s close behavior
PopupKind
Is the popup a popup, tooltip or menu?
SetOpenCommand
WindowDrag
Where the user can drag to move a Window.

Type Aliases§

IconPainter
A function that paints the ComboBox icon