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();
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void recalc();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
unsigned int m_textId;
|
|
|
|
int m_textY;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Globals
|
|
|
|
------- */
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Functions
|
|
|
|
--------- */
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#endif /* __GUI_GTEXTBOX_H__ */
|
|
|
|
|
|
|
|
/*===========================================================================
|
|
|
|
end */
|