All Classes |Grouped Classes |Index

Class CL_PopupMenu

Pop-up menu. More...

Derived from:

None

Derived by:

None

Group:

Components (GUI)

#include <ClanLib/gui.h>

Class Members:

Construction:

CL_PopupMenu

create_null_object

Create null object.


Attributes:

is_null

Returns true if this object is invalid.

throw_if_null

Throw an exception if this object is invalid.

get_class_name

Get Class name.

get_item

Get item.

get_item_at

Get item at.

get_item_count

Item count.

get_minimum_width

Get Minimum width.

get_preferred_size

Get Preferred size.


Events:

func_close

bool func_close()


Operations:

start

Start the popup menu for dialog (not modal)

insert_item

Insert item.

insert_item_accel

Insert item accel.

insert_separator

Insert separator.

set_minimum_width

Set minimum width.

set_maximum_height

Set maximum height.

set_class_name

Set class name.

find_item

Returns the index of the item that matches the start or the string furthest.

clear

Delete all menu items.