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

/include/GewiStaticText.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 __gewistatictext_h__
00021 #define __gewistatictext_h__
00022 
00023 #include "GewiEngine.h"
00024 #include "GewiWidget.h"
00025 
00026 namespace Gewi
00027 {
00028 
00034 class GStaticText : public GWidget
00035 {
00036     protected:
00038         ResourceID rBackgroundImage;
00040         ResourceID rFont;
00042         std::string rText;
00044         ZE::ZImage rTextBuf;
00046         int rXOff;
00048         int rYOff;
00050         GewiJustify rJustify;
00051     public:
00058         GStaticText(GContainer *parent=NULL);
00059 
00073         virtual void Create(float x, float y, float width, float height, 
00074             ResourceID font, std::string text=" ", GewiJustify just=GJ_CENTER, ResourceID backgroundImg=GewiEngine::InvalidID);
00075 
00086         virtual void Message(SDL_Event *rawEvent, GewiEvent event, Uint16 mouseX, Uint16 mouseY, char ch);
00087 
00093         virtual void Show();
00094 
00101         void SetText(std::string text);
00102 
00109         std::string GetText();
00110 };
00111 
00112 }
00113 
00114 #endif //__gewistatictext_h__

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