|
libui-ng
A portable GUI library for C
|
A menu item used in conjunction with uiMenu. More...
#include <ui.h>
Public Member Functions | |
| void | uiMenuItemEnable (uiMenuItem *m) |
| Enables the menu item. More... | |
| void | uiMenuItemDisable (uiMenuItem *m) |
| Disables the menu item. More... | |
| void | uiMenuItemOnClicked (uiMenuItem *m, void(*f)(uiMenuItem *sender, uiWindow *window, void *senderData), void *data) |
| Registers a callback for when the menu item is clicked. More... | |
| int | uiMenuItemChecked (uiMenuItem *m) |
| Returns whether or not the menu item's checkbox is checked. More... | |
| void | uiMenuItemSetChecked (uiMenuItem *m, int checked) |
| Sets whether or not the menu item's checkbox is checked. More... | |
A menu item used in conjunction with uiMenu.
| int uiMenuItemChecked | ( | uiMenuItem * | m | ) |
Returns whether or not the menu item's checkbox is checked.
To be used only with items created via uiMenuAppendCheckItem().
| m | uiMenuItem instance. |
TRUE if checked, FALSE otherwise. [Default: FALSE] | void uiMenuItemDisable | ( | uiMenuItem * | m | ) |
Disables the menu item.
Menu item is grayed out and user interaction is not possible.
| m | uiMenuItem instance. |
| void uiMenuItemEnable | ( | uiMenuItem * | m | ) |
Enables the menu item.
| m | uiMenuItem instance. |
| void uiMenuItemOnClicked | ( | uiMenuItem * | m, |
| void(*)(uiMenuItem *sender, uiWindow *window, void *senderData) | f, | ||
| void * | data | ||
| ) |
Registers a callback for when the menu item is clicked.
| m | uiMenuItem instance. |
| f | Callback function; must not be NULL.sender Back reference to the instance that triggered the callback.window Reference to the window from which the callback got triggered.\ senderData User data registered with the sender instance. |
| data | User data to be passed to the callback. |
| void uiMenuItemSetChecked | ( | uiMenuItem * | m, |
| int | checked | ||
| ) |
Sets whether or not the menu item's checkbox is checked.
To be used only with items created via uiMenuAppendCheckItem().
| m | uiMenuItem instance. |
| checked | TRUE to check menu item checkbox, FALSE otherwise. |