GrafX2 2.9.3227
The ultimate 256-color painting program
|
A window control that behaves like a dropdown button. More...
#include <struct.h>
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 | Display_choice |
Boolean, true if the engine should print the selected item's label in the dropdown area when the user chooses it. More... | |
byte | Display_centered |
Boolean, true to center the labels (otherwise, align left) More... | |
byte | Display_arrow |
Boolean, true to display a "down" arrow box in top right. More... | |
byte | Bottom_up |
Boolean, true to make the dropdown panel go above its button instead of below it. More... | |
byte | Active_button |
Determines which mouse button(s) cause the dropdown panel to open: LEFT_SIDE || RIGHT_SIDE || (LEFT_SIDE|RIGHT_SIDE) More... | |
word | Dropdown_width |
Width of the dropdown panel when it's open. Use 0 for "same as the dropdown button". More... | |
T_Dropdown_choice * | First_item |
Linked list with the choices available for this dropdown. More... | |
struct T_Dropdown_button * | Next |
Pointer to the next dropdown button of current window. More... | |
A window control that behaves like a dropdown button.
short T_Dropdown_button::Number |
Unique identifier for all controls.
Referenced by Window_dropdown_on_click(), Window_get_clicked_button(), and Window_set_dropdown_button().
word T_Dropdown_button::Pos_X |
Coordinate for top of button, relative to the window, before scaling.
Referenced by Button_Circle_switch_mode(), Button_Draw_switch_mode(), Button_Magnify_menu(), Button_Palette(), Button_Skins(), Button_Toggle_toolbar(), Display_bookmark(), Dropdown_activate(), Window_dropdown_on_click(), Window_get_clicked_button(), and Window_set_dropdown_button().
word T_Dropdown_button::Pos_Y |
Coordinate for left of button, relative to the window, before scaling.
Referenced by Button_Circle_switch_mode(), Button_Draw_switch_mode(), Button_Magnify_menu(), Button_Palette(), Button_Skins(), Button_Toggle_toolbar(), Display_bookmark(), Dropdown_activate(), Window_dropdown_on_click(), Window_get_clicked_button(), and Window_set_dropdown_button().
word T_Dropdown_button::Width |
Width before scaling.
Referenced by Window_dropdown_on_click(), Window_get_clicked_button(), and Window_set_dropdown_button().
word T_Dropdown_button::Height |
Height before scaling.
Referenced by Button_Circle_switch_mode(), Button_Draw_switch_mode(), Button_Magnify_menu(), Button_Palette(), Button_Skins(), Button_Toggle_toolbar(), Dropdown_activate(), Window_dropdown_on_click(), Window_get_clicked_button(), and Window_set_dropdown_button().
byte T_Dropdown_button::Display_choice |
Boolean, true if the engine should print the selected item's label in the dropdown area when the user chooses it.
Referenced by Window_dropdown_on_click(), and Window_set_dropdown_button().
byte T_Dropdown_button::Display_centered |
Boolean, true to center the labels (otherwise, align left)
Referenced by Window_set_dropdown_button().
byte T_Dropdown_button::Display_arrow |
Boolean, true to display a "down" arrow box in top right.
Referenced by Window_dropdown_on_click(), and Window_set_dropdown_button().
byte T_Dropdown_button::Bottom_up |
Boolean, true to make the dropdown panel go above its button instead of below it.
Referenced by Button_Circle_switch_mode(), Button_Draw_switch_mode(), Button_Magnify_menu(), Button_Palette(), Button_Toggle_toolbar(), Dropdown_activate(), and Window_set_dropdown_button().
byte T_Dropdown_button::Active_button |
Determines which mouse button(s) cause the dropdown panel to open: LEFT_SIDE || RIGHT_SIDE || (LEFT_SIDE|RIGHT_SIDE)
Referenced by Display_bookmark(), Window_get_clicked_button(), and Window_set_dropdown_button().
word T_Dropdown_button::Dropdown_width |
Width of the dropdown panel when it's open. Use 0 for "same as the dropdown button".
Referenced by Button_Circle_switch_mode(), Button_Draw_switch_mode(), Button_Magnify_menu(), Button_Palette(), Button_Toggle_toolbar(), Dropdown_activate(), and Window_set_dropdown_button().
T_Dropdown_choice* T_Dropdown_button::First_item |
Linked list with the choices available for this dropdown.
Referenced by Button_Circle_switch_mode(), Button_Draw_switch_mode(), Button_Magnify_menu(), Button_Palette(), Button_Toggle_toolbar(), Dropdown_activate(), Window_dropdown_add_item(), Window_dropdown_clear_items(), and Window_set_dropdown_button().
struct T_Dropdown_button* T_Dropdown_button::Next |
Pointer to the next dropdown button of current window.
Referenced by Window_get_clicked_button(), and Window_set_dropdown_button().