#include <buttons.h>
Inheritance diagram for ui_extension::button:

Public Member Functions | |
| virtual void | deregister_callback (button_callback &p_callback) |
| Deregisters a button_callback class to stop receiving callbacks. | |
| virtual unsigned | get_button_state () const |
| Gets buttons state. | |
| virtual t_button_type | get_button_type () const |
| Get type of button. | |
| virtual unsigned | get_command_state_count () const |
| Gets total count of possible command states. | |
| virtual unsigned | get_command_state_index () const |
| Gets current state of the command. For example, in a "Play or pause" command this would indicate the play or pause state. | |
| virtual void | get_command_state_name (unsigned index, pfc::string_base &p_out) const |
| Gets name of specified command state. | |
| virtual t_button_guid | get_guid_type () const |
| Get whether get_item_guid() specifies a main menu item, a context menu, or a custom button command. | |
| virtual HBITMAP | get_item_bitmap (unsigned command_state_index, COLORREF cr_btntext, t_mask &p_mask_type, COLORREF &cr_mask, HBITMAP &bm_mask) const =0 |
| Get a handle to a bitmap and its transparency mask of the menu item. | |
| virtual const GUID & | get_item_guid () const =0 |
| Get the identifier of the button. | |
| virtual void | get_menu_items (menu_hook_t &p_out) |
| Gets menu items for drop-down buttons. | |
| virtual void | register_callback (button_callback &p_callback) |
| Registers a button_callback class to receive callbacks. | |
Public Attributes | |
| button | |
|
|
Deregisters a button_callback class to stop receiving callbacks.
|
|
|
Gets buttons state.
|
|
|
Get type of button.
|
|
|
Gets total count of possible command states.
|
|
|
Gets current state of the command. For example, in a "Play or pause" command this would indicate the play or pause state.
|
|
||||||||||||
|
Gets name of specified command state.
|
|
|
Get whether get_item_guid() specifies a main menu item, a context menu, or a custom button command.
Reimplemented in ui_extension::custom_button. |
|
||||||||||||||||||||||||
|
Get a handle to a bitmap and its transparency mask of the menu item. Caller presumes ownership of bitmap.
|
|
|
Get the identifier of the button. Use get_type_guid() to determine what the GUID repreesnts.
|
|
|
Gets menu items for drop-down buttons.
|
|
|
Registers a button_callback class to receive callbacks.
|
1.4.6-NO