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

/include/GewiTextButton.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 __gewitextbutton_h__
00021 #define __gewitextbutton_h__
00022 
00023 #include "GewiEngine.h"
00024 #include "GewiButton.h"
00025 
00026 namespace Gewi
00027 {
00028 
00034 class GTextButton : public GButton
00035 {
00036     protected:
00038         std::string rText;
00040         ZE::ZImage rTextBuf;
00042         int rXOff;
00044         int rYOff;
00046         ResourceID rFont;
00047 
00048     public:
00055         GTextButton(GContainer *parent=NULL);
00056 
00071         virtual void Create(float x, float y, float width, float height, ResourceID normalImg, ResourceID pressImg, ResourceID font,
00072             std::string text=" ", GButtonType type=GBT_PRESS);
00073         
00079         virtual void Show();
00080 
00087         void SetText(std::string text);
00088 
00095         std::string GetText();
00096 };
00097 
00098 }
00099 
00100 #endif //__gewitextbutton_h__

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