PopupMenuWidget

A widget of popup menu.

Constructors

this
this()

Members

Functions

addItem
void addItem(MenuItemWidget i)

Adds the item.

handleMouseButton
bool handleMouseButton(MouseButton b, bool status, vec2 pos)
removeAllItems
void removeAllItems()

Removes all items.

removeItem
void removeItem(MenuItemWidget i)

Removes the item.

Mixins

__anonymous
mixin DisableModifyChildren
Undocumented in source.

Inherited Members

From PopupWidget

_objectContext
WindowContext _objectContext;

WindowContext of the popup target.

_pos
vec2 _pos;
_size
vec2 _size;
Undocumented in source.
handlePopup
void handlePopup(bool opened, WindowContext w)
move
void move(vec2 pos, vec2 size)

Moves the popup to the pos and resize to the size.

close
void close()

Closes the popup.

layout
vec2 layout(vec2 rootlt, vec2 rootsz)

Meta