Skip to main content

Module containers

Module containers 

Source
Expand description

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

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

Modules§

collapsing_header
frame
Frame container
panel
Panels are Ui regions taking up e.g. the left side of a Ui or screen.
popup
Show popup windows, tooltips, context menus etc.
scroll_area

Structs§

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.
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.
Frame
Add a background, frame and/or margin to a rectangular background of a Ui.
Resize
A region that can be resized by dragging the bottom right corner.
ScrollArea
Add vertical and/or horizontal scrolling to a contained Ui.
SidePanel
A panel that covers the entire left or right side of a Ui or screen.
Sides
Put some widgets on the left and right sides of a ui.
TopBottomPanel
A panel that covers the entire top or bottom of a Ui or screen.
Window
Builder for a floating window which can be dragged, closed, collapsed, resized and scrolled (off by default).

Enums§

AboveOrBelow
Indicate whether a popup will be shown above or below the box.
PopupCloseBehavior
Determines popup’s close behavior

Functions§

next_tooltip_id
What is the id of the next tooltip for this widget?
popup_above_or_below_widget
Shows a popup above or below another widget.
popup_below_widget
Helper for popup_above_or_below_widget.
seconds_since_last_tooltip
show_tooltip
Show a tooltip at the current pointer position (if any).
show_tooltip_at
Show a tooltip at the given position.
show_tooltip_at_pointer
Show a tooltip at the current pointer position (if any).
show_tooltip_for
Show a tooltip under the given area.
show_tooltip_text
Show some text at the current pointer position (if any).
tooltip_id
was_tooltip_open_last_frame
Was this popup visible last frame?

Type Aliases§

IconPainter
A function that paints the ComboBox icon