GrafX2 2.9.3227
The ultimate 256-color painting program
T_Toolbar_button Struct Reference

Definition of a toolbar button. More...

#include <windows.h>

+ Collaboration diagram for T_Toolbar_button:

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...
 

Detailed Description

Definition of a toolbar button.

Field Documentation

◆ X_offset

◆ Y_offset

◆ Width

word T_Toolbar_button::Width

Button's active width.

Referenced by Change_palette_cells(), Display_layerbar(), Draw_menu_button(), and Init_button().

◆ Height

◆ Pressed

byte T_Toolbar_button::Pressed

Button is currently pressed.

Referenced by Button_Skins(), Init_button(), Select_button(), and Unselect_button().

◆ Shape

byte T_Toolbar_button::Shape

Shape, listed in enum BUTTON_SHAPES.

Referenced by Init_button().

◆ Icon

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().

◆ Left_action

Func_btn_action T_Toolbar_button::Left_action

Action triggered by a left mouseclick on the button.

Referenced by Init_button(), and Select_button().

◆ Right_action

Func_btn_action T_Toolbar_button::Right_action

Action triggered by a right mouseclick on the button.

Referenced by Init_button(), and Select_button().

◆ Left_shortcut

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().

◆ Right_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().

◆ Left_instant

byte T_Toolbar_button::Left_instant

Will not wait for mouse release before triggering action.

Referenced by Init_button().

◆ Right_instant

byte T_Toolbar_button::Right_instant

Will not wait for mouse release before triggering action.

Referenced by Init_button().

◆ Tooltip

const char* T_Toolbar_button::Tooltip

Text in status bar when button is hovered.

Referenced by Init_button().

◆ Unselect_action

Func_btn_action T_Toolbar_button::Unselect_action

Action triggered by unselecting the button.

Referenced by Init_button(), and Unselect_button().

◆ Family

byte T_Toolbar_button::Family

enum FAMILY_OF_BUTTONS.

Referenced by Init_button(), and Select_button().


The documentation for this struct was generated from the following file: