00001 /* 00002 * $Id: TextBox.h,v 1.5 2002/08/08 10:00:26 virtualcasino Exp $ 00003 */ 00004 #ifndef __VCASINO_TEXTBOX_H__ 00005 #define __VCASINO_TEXTBOX_H__ 00006 #include<Widget.h> 00007 00008 namespace clawsoft{ 00009 00010 class TextBox:public Widget{ 00011 protected: 00012 String text; 00013 bool grabbed; 00014 virtual bool onReturn(); 00015 virtual void drawBorder(); 00016 int border; 00017 public: 00018 TextBox(); 00019 TextBox(Rect &r); 00020 virtual ~TextBox(){} 00021 void grab(); 00022 void release(); 00023 void draw(); 00024 bool checkEvents(){ 00025 return false; 00026 } 00027 void action(){ } 00028 bool checkKeyEvents(); 00029 bool checkMouseEvents(); 00030 bool checkMouseMotionEvents(){ 00031 return false; 00032 } 00033 String &getText(); 00034 }; 00035 00036 } 00037 00038 #endif 00039
Powered by: