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

/include/GewiTextField.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002             This file is Part of the Gewi GUI Library for ZEngine.
00003              Gewi and ZEngine Copyright (C) 2002, 2003 James Turk
00004 
00005             Licensed under a BSD-style license. (see licensing.txt)
00006 
00007     The maintainer of this library is James Turk (james@conceptofzero.net) 
00008   this library is found at the home of ZEngine http://zengine.sourceforge.net
00009 *******************************************************************************/
00010 
00020 #ifndef __gewitextfield_h__
00021 #define __gewitextfield_h__
00022 
00023 #include "GewiEngine.h"
00024 #include "GewiWidget.h"
00025 
00026 namespace Gewi
00027 {
00028 
00034 class GTextField : public GWidget
00035 {
00036     protected:
00038         std::string rText;
00040         ZE::ZImage rBuffer;
00042         ResourceID rFont;
00044         ResourceID rBackground;
00046         int rMaxChars;
00048         int rLeftPadding;
00049 
00050     public:
00057         GTextField(GContainer *parent=NULL);
00058 
00072         virtual void Create(float x, float y, float width, float height, ResourceID font, ResourceID backgroundImg, int maxChars=256, int leftPad=0);
00073 
00084         virtual void Message(SDL_Event *rawEvent, GewiEvent event, Uint16 mouseX, Uint16 mouseY, char ch);
00085 
00091         virtual void Show();
00092 
00099         void SetText(std::string text);
00100 
00107         std::string GetText();
00108 };
00109 
00110 }
00111 
00112 #endif //__gewiewitextfield_h__

Generated on Fri Aug 1 17:17:30 2003 for Gewi by doxygen1.3