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

Widget.h

Go to the documentation of this file.
00001 /*
00002  * $Id: Widget.h,v 1.5 2002/07/29 20:37:41 virtualcasino Exp $
00003  */
00004 #ifndef __VCASINO_WIDGET_H__
00005 #define __VCASINO_WIDGET_H__
00006 #include<clawsoft.h>
00007 #include<gui.h>
00008 #include<Rect.h>
00009 #include<Event.h>
00010 #include<MouseEvent.h>
00011 #include<KeyboardEvent.h>
00012 
00013 namespace clawsoft{
00014         class Widget:public GUIObject, public Rect{
00015                 protected:
00016                         MouseEvent      mouse;
00017                         KeyboardEvent   keyboard;
00018                 public:
00019                         Widget();
00020                         Widget(Rect &r);
00021                         virtual void draw() = 0;
00022                         virtual bool checkEvents() = 0;
00023                         virtual void action() = 0;
00024                         virtual bool checkKeyEvents() = 0;
00025                         virtual bool checkMouseEvents() = 0;
00026                         virtual bool checkMouseMotionEvents() = 0;
00027         };
00028 }
00029 
00030 #endif

Powered by:

SourceForge Logo