Atrinik Client  4.0
Data Structures | Macros | Typedefs
button.h File Reference

Go to the source code of this file.

Data Structures

struct  button_struct
 

Macros

#define BUTTON_MOUSE_OVER(button, mx, my, texture)   ((mx) - (button)->px >= (button)->x && (mx) - (button)->px < (button)->x + (texture)->w && (my) - (button)->py >= (button)->y && (my) - (button)->py < (button)->y + (texture)->h)
 
#define BUTTON_CHECK_TOOLTIP(button)   ((button)->mouse_over && !(button)->pressed)
 

Typedefs

typedef struct button_struct button_struct
 

Detailed Description

Button header file.

Definition in file button.h.

Macro Definition Documentation

#define BUTTON_CHECK_TOOLTIP (   button)    ((button)->mouse_over && !(button)->pressed)

Checks if a tooltip can be generated for the specified button.

Definition at line 38 of file button.h.

#define BUTTON_MOUSE_OVER (   button,
  mx,
  my,
  texture 
)    ((mx) - (button)->px >= (button)->x && (mx) - (button)->px < (button)->x + (texture)->w && (my) - (button)->py >= (button)->y && (my) - (button)->py < (button)->y + (texture)->h)

Determine whether the x,y position is over the specified button.

Definition at line 34 of file button.h.

Typedef Documentation

typedef struct button_struct button_struct

Button structure.