Atrinik Client 2.5
Data Structures | Defines | Typedefs
include/button.h File Reference

Go to the source code of this file.

Data Structures

struct  button_struct

Defines

#define BUTTON_MOUSE_OVER(button, mx, my, sprite)   ((mx) >= (button)->x && (mx) < (button)->x + (sprite)->bitmap->w && (my) >= (button)->y && (my) < (button)->y + (sprite)->bitmap->h)
#define BUTTON_TOOLTIP_DELAY   750

Typedefs

typedef struct button_struct button_struct

Detailed Description

Button header file.

Definition in file button.h.


Define Documentation

#define BUTTON_MOUSE_OVER (   button,
  mx,
  my,
  sprite 
)    ((mx) >= (button)->x && (mx) < (button)->x + (sprite)->bitmap->w && (my) >= (button)->y && (my) < (button)->y + (sprite)->bitmap->h)

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

Definition at line 34 of file button.h.

#define BUTTON_TOOLTIP_DELAY   750

Delay in milliseconds for the tooltip to appear (if any).

Definition at line 36 of file button.h.


Typedef Documentation

typedef struct button_struct button_struct

Button structure.