home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2011 November
/
CHIP_2011_11.iso
/
Programy
/
Inne
/
Gry
/
Atomic_Tanks
/
Atomic-Tanks-5.1.exe
/
src
/
button.h
< prev
next >
Wrap
C/C++ Source or Header
|
2009-09-24
|
600b
|
31 lines
#ifndef BUTTON_HEADER_
#define BUTTON_HEADER_
#include "globaldata.h"
#include "environment.h"
class BUTTON
{
GLOBALDATA *_global;
ENVIRONMENT *_env;
public:
BOX location;
int xl, yl;
char *text;
BITMAP *bmp;
BITMAP *hover;
BITMAP *depressed;
SAMPLE *click;
BUTTON (GLOBALDATA *global, ENVIRONMENT *env, int x1, int y1, char *text1,
BITMAP *bmp1, BITMAP *hover1, BITMAP *depressed1);
int isPressed (); //if button pressed returns 1
int isMouseOver (); //Cursor is over button
void draw (BITMAP *dest);
};
#endif