S or /

SourceModule containers

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_headerCollapsingHeader, CollapsingResponse, CollapsingState, paint_default_icon
frame

Frame container

menu

Popup menus, context menus and menu bars.

modalModal, ModalResponse
panel

Panels are Ui regions taking up e.g. the left side of a Ui or screen.

scroll_area

See ScrollArea for docs.

Classes§

Area

An area on the screen that can be moved by dragging.

AreaState

State of an Area that is persisted between frames.

ClosableTag

A tag to mark a container as closable.

ComboBox

A drop-down selection menu with a descriptive label.

DragPanButtons

Specifies which pointer buttons can be used to pan the scene by dragging.

Popup

A popup container.

PopupAnchor Enum

What should we anchor the popup to?

PopupCloseBehavior Enum

Determines popup's close behavior

PopupKind Enum

Is the popup a popup, tooltip or menu?

Resize

A region that can be resized by dragging the bottom right corner.

Scene

A container that allows you to zoom and pan.

SetOpenCommand Enum
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).

WindowDrag Enum

Where the user can drag to move a Window.

Functions§

paint_resize_corner
paint_resize_corner_with_style

SourceFunction paint_resize_corner§

from egui import paint_resize_corner
def paint_resize_corner(ui: Ui, response: Response) -> None

SourceFunction paint_resize_corner_with_style§

from egui import paint_resize_corner_with_style
def paint_resize_corner_with_style(ui: Ui, rect: Rect, color: Color32, corner: Align2) -> None

Constants§

Re-exports§