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

A window control that represents a scrollbar, with a slider, and two arrow buttons. More...

#include <struct.h>

+ Collaboration diagram for T_Scroller_button:

Data Fields

short Number
 Unique identifier for all controls. More...
 
byte Is_horizontal
 Boolean: True if slider is horizontal instead of vertical. 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 Length
 Length before scaling. More...
 
word Nb_elements
 Number of distinct values it can take. More...
 
word Nb_visibles
 If this slider is meant to show several elements of a collection, this is their number (otherwise, it's 1). More...
 
word Position
 Current position of the slider: which item it's pointing. More...
 
word Cursor_length
 Dimension of the slider, in pixels before scaling. More...
 
struct T_Scroller_buttonNext
 Pointer to the next scroller of current window. More...
 

Detailed Description

A window control that represents a scrollbar, with a slider, and two arrow buttons.

Field Documentation

◆ Number

short T_Scroller_button::Number

◆ Is_horizontal

byte T_Scroller_button::Is_horizontal

◆ Pos_X

word T_Scroller_button::Pos_X

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

Referenced by Window_draw_scroller_button(), Window_draw_slider(), Window_get_clicked_button(), Window_set_horizontal_scroller_button(), and Window_set_scroller_button().

◆ Pos_Y

word T_Scroller_button::Pos_Y

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

Referenced by Window_draw_scroller_button(), Window_draw_slider(), Window_get_clicked_button(), Window_set_horizontal_scroller_button(), and Window_set_scroller_button().

◆ Length

◆ Nb_elements

◆ Nb_visibles

word T_Scroller_button::Nb_visibles

If this slider is meant to show several elements of a collection, this is their number (otherwise, it's 1).

Referenced by Compute_slider_cursor_length(), Locate_list_item(), Window_clicked_button(), Window_draw_slider(), Window_get_clicked_button(), Window_redraw_list(), Window_set_horizontal_scroller_button(), and Window_set_scroller_button().

◆ Position

◆ Cursor_length

word T_Scroller_button::Cursor_length

Dimension of the slider, in pixels before scaling.

Referenced by Compute_slider_cursor_length(), Window_draw_slider(), and Window_get_clicked_button().

◆ Next

struct T_Scroller_button* T_Scroller_button::Next

Pointer to the next scroller of current window.

Referenced by Window_get_clicked_button(), Window_set_horizontal_scroller_button(), and Window_set_scroller_button().


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