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

A normal rectangular button in windows and menus. More...

#include <struct.h>

+ Collaboration diagram for T_Normal_button:

Data Fields

short Number
 Unique identifier for all controls. More...
 
word Pos_X
 Coordinate for top of button, relative to the window, before scaling. More...
 
word Pos_Y
 Coordinate for left of button, relative to the window, before scaling. More...
 
word Width
 Width before scaling. More...
 
word Height
 Height before scaling. More...
 
byte Clickable
 Boolean, unused. More...
 
byte Repeatable
 Boolean, true if the button activates repeatedly until you release the mouse button. Used for "+" buttons, for example. More...
 
word Shortcut
 Keyboard shortcut that will emulate a click on this button. More...
 
struct T_Normal_buttonNext
 Pointer to the next normal button of current window. More...
 

Detailed Description

A normal rectangular button in windows and menus.

Field Documentation

◆ Number

short T_Normal_button::Number

◆ Pos_X

word T_Normal_button::Pos_X

Coordinate for top of button, relative to the window, before scaling.

Referenced by Button_Sieve_menu(), Window_get_button_shortcut(), Window_get_clicked_button(), Window_set_normal_button(), and Window_set_repeatable_button().

◆ Pos_Y

word T_Normal_button::Pos_Y

Coordinate for left of button, relative to the window, before scaling.

Referenced by Button_Sieve_menu(), Window_get_button_shortcut(), Window_get_clicked_button(), Window_set_normal_button(), and Window_set_repeatable_button().

◆ Width

◆ Height

◆ Clickable

byte T_Normal_button::Clickable

Boolean, unused.

Referenced by Window_set_normal_button().

◆ Repeatable

byte T_Normal_button::Repeatable

Boolean, true if the button activates repeatedly until you release the mouse button. Used for "+" buttons, for example.

Referenced by Window_get_clicked_button(), Window_set_normal_button(), and Window_set_repeatable_button().

◆ Shortcut

word T_Normal_button::Shortcut

Keyboard shortcut that will emulate a click on this button.

Referenced by Window_get_button_shortcut(), Window_set_normal_button(), and Window_set_repeatable_button().

◆ Next

struct T_Normal_button* T_Normal_button::Next

Pointer to the next normal button of current window.

Referenced by Window_get_button_shortcut(), Window_get_clicked_button(), Window_set_normal_button(), and Window_set_repeatable_button().


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