#include <popupmenu.h>
Construction | |
| CL_PopupMenu () | |
| virtual | ~CL_PopupMenu () |
| static CL_PopupMenu | create_null_object () |
| Create null object. | |
Implementation | |
| class | CL_MenuBar |
| class | CL_MenuBar_Impl |
| class | CL_PopupMenuWindow |
Public Member Functions | |
Attributes | |
| bool | is_null () const |
| Is Null. | |
| CL_String | get_class_name () const |
| Get Class name. | |
| CL_PopupMenuItem | get_item (int id) |
| Get item. | |
| CL_PopupMenuItem | get_item_at (int index) |
| Get item at. | |
| int | get_item_count () const |
| Item count. | |
| int | get_minimum_width () const |
| Get Minimum width. | |
| virtual CL_Size | get_preferred_size () const |
| Get Preferred size. | |
Events | |
| CL_Callback_v0 & | func_close () |
| bool func_close() | |
Operations | |
| void | start (CL_GUIComponent *parent, const CL_Point &pos) |
| Start the popup menu for dialog (not modal). | |
| CL_PopupMenuItem | insert_item (const CL_StringRef &text, int id=-1, int index=-1) |
| Insert item. | |
| CL_PopupMenuItem | insert_item_accel (const CL_StringRef &text, const CL_StringRef &accel_text=cl_text(""), int id=-1, int index=-1) |
| Insert item accel. | |
| CL_PopupMenuItem | insert_separator (int index=-1) |
| Insert separator. | |
| void | set_minimum_width (int width_pixels) |
| Set minimum width. | |
| void | set_maximum_height (int height_pixels) |
| Set maximum height. | |
| void | set_class_name (const CL_StringRef &class_name) |
| Set class name. | |
| int | find_item (const CL_StringRef &text, bool case_sensitive=false) |
| Returns the index of the item that matches the start or the string furthest. | |
|
|
|
|
|
|
|
|
Create null object.
|
|
||||||||||||
|
Returns the index of the item that matches the start or the string furthest.
|
|
|
bool func_close()
|
|
|
Get Class name.
|
|
|
Get item.
|
|
|
Get item at.
|
|
|
Item count.
|
|
|
Get Minimum width.
|
|
|
Get Preferred size.
|
|
||||||||||||||||
|
Insert item.
|
|
||||||||||||||||||||
|
Insert item accel.
|
|
|
Insert separator.
|
|
|
Is Null.
|
|
|
Set class name.
|
|
|
Set maximum height.
|
|
|
Set minimum width.
|
|
||||||||||||
|
Start the popup menu for dialog (not modal).
|
|
|
|
|
|
|
|
|
|
1.4.6