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

BaseButton.h

Go to the documentation of this file.
00001 /*
00002  * $Id: BaseButton.h,v 1.5 2002/07/30 20:13:03 virtualcasino Exp $
00003  */
00004 #ifndef __VCASINO_BASE_BUTTON_H__
00005 #define __VCASINO_BASE_BUTTON_H__
00006 #include<Widget.h>
00007 
00008 namespace clawsoft{
00012         class BaseButton:public Widget{
00013                 protected:
00014                         bool state;
00015                         Rect rect;
00016                 public:
00017                         BaseButton();
00018                         BaseButton(Rect &r);
00019                         virtual bool pressed();
00020                         virtual void draw();
00021                         virtual void action() { }
00022                         virtual void action(int xx, int yy, int bb) = 0;
00023                         virtual bool checkEvents(){ return true; }
00024                         virtual bool checkKeyEvents();
00025                         virtual bool checkMouseEvents();
00026                         virtual bool checkMouseMotionEvents();
00027         };
00028 }
00029 
00030 #endif

Powered by:

SourceForge Logo