Atrinik Client  4.0
Data Fields
button_struct Struct Reference

#include <button.h>

Data Fields

SDL_Surface * surface
 
int x
 
int y
 
int px
 
int py
 
texture_structtexture
 
texture_structtexture_over
 
texture_structtexture_pressed
 
font_structfont
 
uint64_t flags
 
uint8_t center
 
const char * color
 
const char * color_shadow
 
const char * color_over
 
const char * color_over_shadow
 
int mouse_over
 
int pressed_forced
 
int disabled
 
uint32_t pressed_ticks
 
uint32_t hover_ticks
 
uint32_t pressed_repeat_ticks
 
void(* repeat_func )(struct button_struct *button)
 
uint8_t redraw
 

Detailed Description

Button structure.

Definition at line 42 of file button.h.

Field Documentation

uint8_t button_struct::center

Whether to center the text vertically and horizontally.

Definition at line 84 of file button.h.

const char* button_struct::color

Color of the text.

Definition at line 87 of file button.h.

const char* button_struct::color_over

Color of the text if the mouse is over the button.

Definition at line 93 of file button.h.

const char* button_struct::color_over_shadow

Color of the text's shadow if the mouse is over the button.

Definition at line 96 of file button.h.

const char* button_struct::color_shadow

Color of the text's shadow.

Definition at line 90 of file button.h.

int button_struct::disabled

If 1, the button is in disabled state and cannot be pressed.

Definition at line 111 of file button.h.

uint64_t button_struct::flags

Text flags.

Definition at line 79 of file button.h.

font_struct* button_struct::font

Font used for the text.

Definition at line 76 of file button.h.

uint32_t button_struct::hover_ticks

When the mouse started hovering over the button.

Definition at line 117 of file button.h.

int button_struct::mouse_over

1 if the mouse is over the button.

Definition at line 99 of file button.h.

int button_struct::pressed_forced

1 if the button should be forced to be pressed.

Definition at line 108 of file button.h.

uint32_t button_struct::pressed_repeat_ticks

Ticks needed to trigger a repeat.

Definition at line 120 of file button.h.

uint32_t button_struct::pressed_ticks

When the button was pressed.

Definition at line 114 of file button.h.

uint8_t button_struct::redraw

Whether the button needs redrawing.

Definition at line 132 of file button.h.

void(* button_struct::repeat_func)(struct button_struct *button)

Function called on button repeat

Parameters
buttonThe button.

Definition at line 127 of file button.h.

SDL_Surface* button_struct::surface

Surface to use for rendering.

Definition at line 46 of file button.h.

texture_struct* button_struct::texture

Texture to normally use for the button.

Definition at line 61 of file button.h.

texture_struct* button_struct::texture_over

Texture to use if the mouse is over the button, NULL to use regular one.

Definition at line 67 of file button.h.

texture_struct* button_struct::texture_pressed

Texture to use if the button is being pressed, NULL to use regular one.

Definition at line 73 of file button.h.

int button_struct::x

X position.

Definition at line 49 of file button.h.

int button_struct::y

Y position.

Definition at line 52 of file button.h.


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