SBSPSS/source/gui/gtextbox.h
2001-01-12 21:21:32 +00:00

76 lines
1.5 KiB
C++

/*=========================================================================
gtextbox.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __GUI_GTEXTBOX_H__
#define __GUI_GTEXTBOX_H__
/*----------------------------------------------------------------------
Includes
-------- */
#ifndef __GUI_GUI_H__
#include "gui\gui.h"
#endif
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CGUITextBox : public CGUIObjectWithFont
{
public:
virtual void init(CGUIObject *_parent,GUIId _id=noId);
virtual void setText(unsigned int _textId);
virtual void render();
int getTextWidth();
int getTextHeight();
protected:
void recalc();
int getTextId() {return m_textId;}
private:
unsigned int m_textId;
int m_textY;
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __GUI_GTEXTBOX_H__ */
/*===========================================================================
end */