Main Page   Packages   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

TextButton.h

Go to the documentation of this file.
00001 /*
00002  * $Id: TextButton.h,v 1.5 2002/08/08 09:49:11 virtualcasino Exp $
00003  */
00004 #ifndef __VCASINO_TEXTBUTTON_H__
00005 #define __VCASINO_TEXTBUTTON_H__
00006 #include<clawsoft.h>
00007 #include<BaseButton.h>
00008 
00009 namespace clawsoft{
00010 
00011         class TextButton:public BaseButton{
00012                 protected:
00013                         String caption;
00014                 public:
00015                         TextButton();
00016                         TextButton(Rect &r, const char *ccaption);
00017                         TextButton(Rect &r, String ccaption);
00018                         virtual ~TextButton(){;}
00019                         void setCaption(const char *);
00020                         void setCaption(String);
00021                         void draw();
00022                         void action(int xx, int yy, int bb) = 0;
00023                         bool checkKeyEvents();
00024                         bool checkMouseEvents();
00025                         bool checkMouseMotionEvents();
00026                         virtual void map();
00027         };
00028 
00029 }
00030 #endif

Powered by:

SourceForge Logo