2003-05-19 22:58:01 +00:00
|
|
|
/*******************************************************************************
|
|
|
|
This file is Part of the Gewi GUI Library for ZEngine.
|
|
|
|
Gewi and ZEngine Copyright (C) 2002, 2003 James Turk
|
|
|
|
|
|
|
|
Licensed under a BSD-style license. (see licensing.txt)
|
|
|
|
|
|
|
|
The maintainer of this library is James Turk (james@conceptofzero.net)
|
|
|
|
this library is found at the home of ZEngine http://zengine.sourceforge.net
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
/*!
|
2003-05-19 23:53:53 +00:00
|
|
|
\file GewiTextButton.h
|
|
|
|
\brief Definition file for GTextButton.
|
2003-05-19 22:58:01 +00:00
|
|
|
|
2003-05-19 23:53:53 +00:00
|
|
|
Definition file for GTextButton, a GButton that has a text label.
|
|
|
|
<br>$id$<br>
|
2003-05-19 22:58:01 +00:00
|
|
|
\author James Turk
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __gewitextbutton_h__
|
|
|
|
#define __gewitextbutton_h__
|
|
|
|
|
|
|
|
#include "GewiEngine.h"
|
|
|
|
#include "GewiButton.h"
|
|
|
|
|
|
|
|
namespace Gewi
|
|
|
|
{
|
|
|
|
|
|
|
|
class GTextButton : public GButton
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
string rText;
|
|
|
|
ZImage rTextBuf;
|
|
|
|
int rXOff,rYOff;
|
|
|
|
ResourceID rFont;
|
|
|
|
public:
|
|
|
|
GTextButton(GContainer *parent=NULL);
|
|
|
|
|
|
|
|
virtual void Create(float x, float y, float width, float height, ResourceID normalImg, ResourceID pressImg, ResourceID font,
|
|
|
|
string text=" ", GButtonType type=G_PRESS);
|
|
|
|
virtual void Show();
|
|
|
|
|
|
|
|
void SetText(string text);
|
|
|
|
string GetText();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //__gewitextbutton_h__
|