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

"List" button as used in the font selection, skin selection, and brush factory screens. More...

#include <struct.h>

+ Collaboration diagram for T_List_button:

Data Fields

short Number
 Unique identifier for all controls. More...
 
short List_start
 Index of the font to appear as first line. More...
 
short Cursor_position
 Index of the selected line (0=top) More...
 
T_Special_buttonEntry_button
 Pointer to the associated selection control. More...
 
T_Scroller_buttonScroller
 Pointer to the associated scroller. More...
 
Func_draw_list_item Draw_list_item
 Function to call for each item to draw its line. More...
 
byte Color_index
 Background color: From 0->MC_Black to 3->MC_White. More...
 
struct T_List_buttonNext
 Pointer to the next list button of current window. More...
 

Detailed Description

"List" button as used in the font selection, skin selection, and brush factory screens.

It's like a limited filelist. The screenmode selection and load/save screen were written before this existed so they use their own code. It would be nice if they were updated to use this one.

Field Documentation

◆ Number

short T_List_button::Number

Unique identifier for all controls.

Referenced by Quicksearch_list(), Window_clicked_button(), and Window_set_list_button().

◆ List_start

short T_List_button::List_start

◆ Cursor_position

short T_List_button::Cursor_position

◆ Entry_button

T_Special_button* T_List_button::Entry_button

Pointer to the associated selection control.

Referenced by Window_clicked_button(), Window_redraw_list(), and Window_set_list_button().

◆ Scroller

T_Scroller_button* T_List_button::Scroller

◆ Draw_list_item

Func_draw_list_item T_List_button::Draw_list_item

Function to call for each item to draw its line.

Referenced by Window_clicked_button(), Window_redraw_list(), and Window_set_list_button().

◆ Color_index

byte T_List_button::Color_index

Background color: From 0->MC_Black to 3->MC_White.

Referenced by Window_redraw_list(), and Window_set_list_button().

◆ Next

struct T_List_button* T_List_button::Next

Pointer to the next list button of current window.

Referenced by Window_clicked_button(), Window_get_button_shortcut(), and Window_set_list_button().


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