Atrinik Client 2.5
Data Fields
button_struct Struct Reference

#include <button.h>

Data Fields

int x
int y
int bitmap
int bitmap_over
int bitmap_pressed
int font
uint64 flags
const char * color
const char * color_shadow
const char * color_over
const char * color_over_shadow
int mouse_over
int pressed
int disabled
uint32 pressed_ticks
uint32 hover_ticks
uint32 pressed_repeat_ticks
void(* repeat_func )(struct button_struct *button)

Detailed Description

Button structure.

Definition at line 39 of file button.h.


Field Documentation

Bitmap to normally use for the button.

Definition at line 48 of file button.h.

Bitmap to use if the mouse is over the button, -1 to use regular one.

Definition at line 53 of file button.h.

Bitmap to use if the button is being pressed, -1 to use regular one.

Definition at line 58 of file button.h.

const char* button_struct::color

Color of the text.

Definition at line 67 of file button.h.

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

Definition at line 73 of file button.h.

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

Definition at line 76 of file button.h.

Color of the text's shadow.

Definition at line 70 of file button.h.

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

Definition at line 85 of file button.h.

Text flags.

Definition at line 64 of file button.h.

Font used for the text.

Definition at line 61 of file button.h.

When the mouse started hovering over the button.

Definition at line 91 of file button.h.

1 if the mouse is over the button.

Definition at line 79 of file button.h.

1 if the button is being pressed.

Definition at line 82 of file button.h.

Ticks needed to trigger a repeat.

Definition at line 94 of file button.h.

When the button was pressed.

Definition at line 88 of file button.h.

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

Function called on button repeat

Parameters:
buttonThe button.

Definition at line 99 of file button.h.

X position.

Definition at line 42 of file button.h.

Y position.

Definition at line 45 of file button.h.


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