home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
C
/
OMEGA2
/
OMBUTTON.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-25
|
2KB
|
79 lines
//
// *************************************************************************
// * *
// * OMEGA C++ Windowing Class Library *
// * ================================= *
// * *
// * Copyright 1991,92 Tom Clancy *
// * Submitted to the public domain, April 1992 *
// * *
// *************************************************************************
// * *
// * Push Button Object *
// * *
// *************************************************************************
//
#ifndef _OMBUTTON
#define _OMBUTTON
#endif
#ifndef _OMWINDOW
#include "omwin.hpp"
#endif
class oButton : virtual public oWindow{
int Nb;
int Current;
int Picked;
int Pushed;
int bShaddir;
int Pressed;
struct butts {
char *message;
int x,y;
int Nfg,Nbk;
int Hfg,Hbk;
int HotFg;
};
struct butts *Button[255];
int hotlist[255];
public:
oButton();
~oButton();
void addbutton(char *mess, int x, int y, int Nfg, int Nbk, int Hfg, int Hbk, int HotFg);
void display_buttons();
int numbuttons() {return Nb;}
void writebutton(int i);
void writebuttonshadow(int b);
int withinbutton(int i);
int onwhichbutton();
void highlight();
void unhighlight();
int pushbutton();
void hidebutton(int b);
int getpushed() {return Picked;}
void setpushed(int p) {Picked=p;}
void gonextbutton();
void goprevbutton();
void setcurrent(int c);
void normwriteoption(int c);
void highwriteoption(int c);
void addtohotlist(int i);
void display_info();
void pressbutton(int b);
void unpressbutton(int b);
int handle_key_event();
int handle_mouse_event();
void run();
};