GrafX2 2.9.3227
The ultimate 256-color painting program
|
Definition of a toolbar button. More...
#include <windows.h>
Data Fields | |
word | X_offset |
Position relative to menu's left. More... | |
word | Y_offset |
Position relative to menu's top. More... | |
word | Width |
Button's active width. More... | |
word | Height |
Button's active heigth. More... | |
byte | Pressed |
Button is currently pressed. More... | |
byte | Shape |
Shape, listed in enum BUTTON_SHAPES. More... | |
signed char | Icon |
Which icon to display: Either the one from the toolbar (-1) or one of MENU_SPRITE. More... | |
Func_btn_action | Left_action |
Action triggered by a left mouseclick on the button. More... | |
Func_btn_action | Right_action |
Action triggered by a right mouseclick on the button. More... | |
word | Left_shortcut [2] |
Keyboard shortcut for a left mouseclick. More... | |
word | Right_shortcut [2] |
Keyboard shortcut for a right mouseclick. More... | |
byte | Left_instant |
Will not wait for mouse release before triggering action. More... | |
byte | Right_instant |
Will not wait for mouse release before triggering action. More... | |
const char * | Tooltip |
Text in status bar when button is hovered. More... | |
Func_btn_action | Unselect_action |
Action triggered by unselecting the button. More... | |
byte | Family |
enum FAMILY_OF_BUTTONS. More... | |
Definition of a toolbar button.
word T_Toolbar_button::X_offset |
Position relative to menu's left.
Referenced by Button_Circle_switch_mode(), Button_Draw_switch_mode(), Button_Magnify_menu(), Button_Toggle_toolbar(), Draw_menu_button(), Init_button(), and Print_button().
word T_Toolbar_button::Y_offset |
Position relative to menu's top.
Referenced by Button_Circle_switch_mode(), Button_Draw_switch_mode(), Button_Magnify_menu(), Button_Toggle_toolbar(), Button_under_mouse(), Draw_menu_button(), Init_button(), and Print_button().
word T_Toolbar_button::Width |
Button's active width.
Referenced by Change_palette_cells(), Display_layerbar(), Draw_menu_button(), and Init_button().
word T_Toolbar_button::Height |
Button's active heigth.
Referenced by Button_Circle_switch_mode(), Button_Draw_switch_mode(), Button_Magnify_menu(), Button_Toggle_toolbar(), Button_under_mouse(), Change_palette_cells(), Draw_menu_button(), and Init_button().
byte T_Toolbar_button::Pressed |
Button is currently pressed.
Referenced by Button_Skins(), Init_button(), Select_button(), and Unselect_button().
byte T_Toolbar_button::Shape |
Shape, listed in enum BUTTON_SHAPES.
Referenced by Init_button().
signed char T_Toolbar_button::Icon |
Which icon to display: Either the one from the toolbar (-1) or one of MENU_SPRITE.
Referenced by Display_sprite_in_menu(), Draw_menu_button(), and Init_button().
Func_btn_action T_Toolbar_button::Left_action |
Action triggered by a left mouseclick on the button.
Referenced by Init_button(), and Select_button().
Func_btn_action T_Toolbar_button::Right_action |
Action triggered by a right mouseclick on the button.
Referenced by Init_button(), and Select_button().
word T_Toolbar_button::Left_shortcut[2] |
Keyboard shortcut for a left mouseclick.
Referenced by Init_buttons(), Load_CFG(), Save_CFG(), Set_config_defaults(), and Shortcut().
word T_Toolbar_button::Right_shortcut[2] |
Keyboard shortcut for a right mouseclick.
Referenced by Init_buttons(), Load_CFG(), Save_CFG(), Set_config_defaults(), and Shortcut().
byte T_Toolbar_button::Left_instant |
Will not wait for mouse release before triggering action.
Referenced by Init_button().
byte T_Toolbar_button::Right_instant |
Will not wait for mouse release before triggering action.
Referenced by Init_button().
const char* T_Toolbar_button::Tooltip |
Text in status bar when button is hovered.
Referenced by Init_button().
Func_btn_action T_Toolbar_button::Unselect_action |
Action triggered by unselecting the button.
Referenced by Init_button(), and Unselect_button().
byte T_Toolbar_button::Family |
enum FAMILY_OF_BUTTONS.
Referenced by Init_button(), and Select_button().