00001 /* *********************************************************************************** 00002 Writer: Sebastien Bloc 00003 Copyright: 2004 00004 eMail: sebastien.bloc@free.fr 00005 URL: http://mignonsoft.free.fr 00006 00007 This program is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License 00009 as published by the Free Software Foundation; either version 2 00010 of the License, or (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 http://www.gnu.org/copyleft/gpl.html 00017 *********************************************************************************** */ 00018 00023 #ifndef INCLUDE_UNIVERS_H 00024 #define INCLUDE_UNIVERS_H 00025 00026 #include "control.h" 00027 00031 [event_receiver(native)] 00032 class Univers : public Control 00033 { 00034 public: 00035 BOOL isOnMenu; 00036 BOOL isMenuUsing; 00037 StateMouse oldMouse; 00038 00039 Univers(); 00040 ~Univers(); 00041 virtual void Create() { Create(DEFAULT_DELTAX_UNIVERS,DEFAULT_DELTAY_UNIVERS); } // Createur pour container 00042 void Create(int deltaX,int deltaY); 00043 void ToString(MyString &str); 00044 00045 void OnKeyDown (StateKey *key,int face); 00046 void OnKeyUp (StateKey *key,int face); 00047 void OnMouseMove(StateMouse *mouse,int face); 00048 void OnMouseWheel(StateMouse *mouse,int face); 00049 void OnLButtonDown(StateMouse *mouse,int face); 00050 void OnMButtonDown(StateMouse *mouse,int face); 00051 void OnMButtonUp(StateMouse *mouse,int face); 00052 }; 00053 00054 #endif