GGUI::PopupProps struct

Properties of a popup: where it goes by what it belongs to.

Public variables

GGUI::GGSide Side
preferred side; flips when there is no room
GGUI::GGAlign Align
alignment along that side
float Gap
between the anchor and the popup
std::string_view Class
bool bOwnWindow
ui.Popup only: request a separate OS window so it can extend past its owner (colour picker, tool palette).

Variable documentation

std::string_view GGUI::PopupProps::Class

style class of the popup's box

bool GGUI::PopupProps::bOwnWindow

ui.Popup only: request a separate OS window so it can extend past its owner (colour picker, tool palette).

The host may refuse (fullscreen, no popup-window support), in which case it is drawn in-window. Menus and tooltips are always in-window.