Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

events.h

Go to the documentation of this file.
00001 // Author:  Daniel Albuschat ( daniel@viming.de ) 
00002 // File:    events.h
00003 // Date:    Mon Apr 14 22:10:44 20030
00004 // Content:  
00005 
00006 #ifndef CRS_EVENTS_H_1438568754
00007 #define CRS_EVENTS_H_1438568754
00008 
00009 #include "cursive.h"
00010 #include "base_control.h"
00011 
00012 namespace crs {
00013 
00014   class window_events {
00015     public:
00016       virtual ~window_events(){};
00017       virtual void onResize( base_control &, const bounds &, const bounds & ){};
00018       // parameters: called control, old bounds, new bounds
00019       virtual void onHide( base_control & ){}
00020       // parameters: called control
00021       virtual void onShow( base_control & ){}
00022       // parameters: called control
00023       virtual void onMove( base_control &, const position &, const position & ){};
00024       // parameters: called control, old position, new position
00025       virtual void onKeyPress( base_control &, const int & ){};
00026       // parameters: called control, key
00027       virtual void onMouseDown( base_control &, const position &, const bool &, const bool &){};
00028       // parameters: called control, mouse_position, left mousebutton down, right mousebutton down
00029   };
00030 
00031 }
00032 
00033 #endif
00034 

Generated on Mon May 19 20:36:03 2003 for cursive by doxygen1.2.18