PopupWidget

popup widget container

Constructors

this
this(Widget content, Window window)
Undocumented in source.

Members

Functions

close
void close()

close and destroy popup

layout
void layout(Rect rc)

Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout).

measure
void measure(int parentWidth, int parentHeight)

Measure widget according to desired width and height constraints. (Step 1 of two phase layout).

modal
bool modal()

returns true if popup is modal

modal
PopupWidget modal(bool modal)

set modality flag

onClose
void onClose()

just call on close listener

onMouseEventOutside
bool onMouseEventOutside(MouseEvent event)

called for mouse activity outside shown popup bounds

Properties

anchor
PopupAnchor anchor [@property getter]

access to popup anchor

flags
uint flags [@property getter]

popup close listener (called right before closing) set popup close listener (to call right before closing) returns popup behavior flags (combination of PopupFlags)

flags
uint flags [@property setter]

set popup behavior flags (combination of PopupFlags)

Variables

_anchor
PopupAnchor _anchor;
Undocumented in source.
_flags
uint _flags;
Undocumented in source.
_modal
bool _modal;
Undocumented in source.
popupClosed
Signal!OnPopupCloseHandler popupClosed;

popup close signal

Inherited Members

From LinearLayout

_orientation
Orientation _orientation;
Undocumented in source.
orientation
Orientation orientation [@property getter]

returns linear layout orientation (Vertical, Horizontal)

orientation
Orientation orientation [@property setter]

sets linear layout orientation

_layoutItems
LayoutItems _layoutItems;
Undocumented in source.
measure
void measure(int parentWidth, int parentHeight)

Measure widget according to desired width and height constraints. (Step 1 of two phase layout).

layout
void layout(Rect rc)

Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout).

Meta