This commit is contained in:
parent
bd07373b05
commit
d94c447c19
6 changed files with 909 additions and 0 deletions
77
source/gui/gtextbox.h
Normal file
77
source/gui/gtextbox.h
Normal file
|
@ -0,0 +1,77 @@
|
|||
/*=========================================================================
|
||||
|
||||
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 CGUIObject
|
||||
{
|
||||
public:
|
||||
virtual void init(GUIId _id);
|
||||
virtual void shutdown();
|
||||
|
||||
virtual void setText(unsigned int _textId);
|
||||
|
||||
virtual void render();
|
||||
|
||||
|
||||
protected:
|
||||
void recalc();
|
||||
class FontBank *getFontBank() {return m_fontBank;}
|
||||
|
||||
|
||||
private:
|
||||
class FontBank *m_fontBank;
|
||||
unsigned int m_textId;
|
||||
int m_textY;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Globals
|
||||
------- */
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Functions
|
||||
--------- */
|
||||
|
||||
/*---------------------------------------------------------------------- */
|
||||
|
||||
#endif /* __GUI_GTEXTBOX_H__ */
|
||||
|
||||
/*===========================================================================
|
||||
end */
|
Loading…
Add table
Add a link
Reference in a new issue