SBSPSS/source/gui/gtextbox.h

76 lines
1.5 KiB
C
Raw Normal View History

2000-10-31 17:20:53 +01:00
/*=========================================================================
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
-------------------- */
2000-11-02 18:16:10 +01:00
class CGUITextBox : public CGUIObjectWithFont
2000-10-31 17:20:53 +01:00
{
public:
2000-11-03 17:41:57 +01:00
virtual void init(CGUIObject *_parent,GUIId _id=noId);
2000-10-31 17:20:53 +01:00
virtual void setText(unsigned int _textId);
virtual void render();
2001-01-12 22:21:32 +01:00
int getTextWidth();
int getTextHeight();
2000-10-31 17:20:53 +01:00
protected:
void recalc();
2001-01-12 22:21:32 +01:00
int getTextId() {return m_textId;}
2000-10-31 17:20:53 +01:00
private:
unsigned int m_textId;
int m_textY;
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __GUI_GTEXTBOX_H__ */
/*===========================================================================
end */