Epee Engine  0.40
The Epee Engine is an open source cross platform graphics engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Friends | List of all members
textBox Class Reference

#include <EETextBox.h>

Inheritance diagram for textBox:
Inheritance graph
[legend]
Collaboration diagram for textBox:
Collaboration graph
[legend]

Public Member Functions

 textBox (const std::string &_NameTextBox, int _x, int _y, int _z, const std::string &_TextBoxMessage=" ", unsigned int _height=-1, unsigned int _width=-1, const std::string &_Font=True_Type_Font_Defalut, int _FontPoint=18, unsigned int _red=255, unsigned int _blue=255, unsigned int _green=255, const std::string &_FontPath=True_Type_Font_Location)
 
 textBox ()
 
 ~textBox ()
 
SDL_Surface * LoadSurface ()
 
bool GetClipTextHeight ()
 
bool GetClipTextWidth ()
 
void SetQuality (int _Quality)
 
int GetQuality ()
 
void SetText (const std::string &_text, bool _setevent=false)
 
virtual void SetHeightWidth (unsigned int _Height, unsigned int _Width)
 
void SetHightBasedOfRenderedText ()
 
void SetWidthBasedOfRenderedText ()
 
int GetJustifyOffset ()
 
int GetTextJustification ()
 
void SetTextJustification (int _justify)
 
std::string GetText ()
 
bool GetTextToInt (int &_value)
 
bool GetTextToFloat (float &_value)
 
bool SetTextFromInt (int _value, bool _setevent=false)
 
bool SetTextFromFloat (float _value, bool _setevent=false)
 
std::string GetFont ()
 
void SetFont (const std::string &_FontArg)
 
int GetFontPoint ()
 
void SetFontPoint (int _FontPointArg)
 
SDL_Color GetBackGroundColor ()
 
bool SetBackGroundColor (unsigned int _red, unsigned int _blue, unsigned int _green)
 
SDL_Color GetTextColor ()
 
bool SetTextColor (unsigned int _red, unsigned int _blue, unsigned int _green)
 
std::string GetFontPath ()
 
void SetFontPath (const std::string &_Location)
 
void SetEditable (bool _flag)
 
bool GetEditable ()
 
void SetNumbersOnly (bool _flag)
 
bool GetNumbersOnly ()
 
bool IsColorChangedOnClick ()
 
void SetColorChangedOnClick (bool _ChangeOnClick)
 
void SetSelectBackGroundColor (unsigned int _red, unsigned int _blue, unsigned int _green)
 
void SetSelectTextColor (unsigned int _red, unsigned int _blue, unsigned int _green)
 
virtual EEWidgetWasClicked (int _mouselocationX, int _mouselocationY)
 
template<class datatype >
bool GetTextToNumericData (datatype &_type)
 
template<class datatype >
bool SetTextFromNumericData (datatype _value, bool _setevent)
 
bool WillTextFitIntoBox (std::string _text)
 
- Public Member Functions inherited from EEWidget
 EEWidget (std::string _NameMain, int _TypeMain)
 
 EEWidget (std::string _NameMain, int _TypeMain, int _x, int _y, int _z)
 
virtual ~EEWidget ()
 
virtual void Init ()
 
virtual void LoadTexture ()
 
virtual void UnloadSurface ()
 
virtual void UnLoadTexture ()
 
virtual bool IsLoaded ()
 
virtual void SDL_GL_SurfaceToTexture (SDL_Surface *surface)
 
virtual void CreateTexture (SDL_Surface *_baseSurface, SDL_Surface *_image)
 
int NearestPowerOfTwo (int i)
 
void SetLocation (int _x, int _y)
 
int GetLocationX ()
 
int GetLocationY ()
 
std::string GetName ()
 
int GetLocationZ ()
 
unsigned int GetHeight ()
 
unsigned int GetWidth ()
 
bool SetDraw (bool _Draw)
 
bool GetDraw ()
 
int GetType ()
 
bool SetScalingFactor (double _ScalingX, double _ScalingY)
 
bool SetScalingFactorY (double _ScalingY)
 
bool SetScalingFactorX (double _ScalingX)
 
double GetScalingFactorX ()
 
double GetScalingFactorY ()
 
bool SetRotation (double _Degrees)
 
double GetRotation ()
 
bool SetAntiAliased (bool _AntiAliased)
 
bool GetAntiAliased ()
 
int GetCurrentVectorPostion ()
 
void DisableClick ()
 
void EnableClick ()
 
bool GetIsClickEnabled ()
 
void DisableAndTurnOffDraw ()
 
void EnableAndTurnOnDraw ()
 
void SetDontMoveOnClick (bool _flag)
 
bool GetDontMoveOnClick ()
 
bool WasLastSprocketClicked ()
 
void ShowOutLine ()
 
void HideOutLine ()
 
bool GetOutLine ()
 

Protected Member Functions

 textBox (int _Obj_Type, const std::string &_NameTextBox, int _x, int _y, int _z, const std::string &_TextBoxMessage=" ", unsigned int _height=-1, unsigned int _width=-1, const std::string &_Font=True_Type_Font_Defalut, int _FontPoint=18, unsigned int _red=255, unsigned int _blue=255, unsigned int _green=255, const std::string &_FontPath=True_Type_Font_Location)
 
virtual void SetModifySurFace (SDL_Surface *_ModifySurface)
 
virtual void Render ()
 
TTF_Font * GetFontPointer ()
 
void LoadFont ()
 
void SetJustifyOffset ()
 
- Protected Member Functions inherited from EEWidget
 EEWidget ()
 
bool GetBlit ()
 
virtual SDL_Surface * SetSurface ()
 
virtual SDL_Surface * GetEEWidgeturface ()
 
SDL_Rect * GetRect ()
 
bool SetCurrentArrayPostion (int _newPostion)
 
void SetType (int _type)
 
void SetLocationZ (int _z)
 
void SetBlit (bool _blit)
 
SDL_Surface * GetModifySurFace ()
 

Friends

class EpeeEngine
 

Additional Inherited Members

- Protected Attributes inherited from EEWidget
int m_iz
 
std::string m_sName
 
int m_iSprocketType
 
bool m_bDraw
 
int m_iCurrentPostion
 
bool m_iAntiAliased
 
bool m_bblit
 
bool m_bShowSurfaceOutline
 
double m_iRotation
 
double m_iScaleX
 
double m_iScaleY
 
bool m_bactive
 
bool m_bDontMoveButton
 
bool m_bCurrentlySelected
 
SDL_Rect m_cBox
 
unsigned int m_iTextureH
 
unsigned int m_iTextureW
 
SDL_Surface * m_porignalSurface
 
SDL_Surface * m_pModifySurface
 
GLuint m_GLTexture
 

Constructor & Destructor Documentation

textBox::textBox ( int  _Obj_Type,
const std::string &  _NameTextBox,
int  _x,
int  _y,
int  _z,
const std::string &  _TextBoxMessage = " ",
unsigned int  _height = -1,
unsigned int  _width = -1,
const std::string &  _Font = True_Type_Font_Defalut,
int  _FontPoint = 18,
unsigned int  _red = 255,
unsigned int  _blue = 255,
unsigned int  _green = 255,
const std::string &  _FontPath = True_Type_Font_Location 
)
protected
textBox::textBox ( const std::string &  _NameTextBox,
int  _x,
int  _y,
int  _z,
const std::string &  _TextBoxMessage = " ",
unsigned int  _height = -1,
unsigned int  _width = -1,
const std::string &  _Font = True_Type_Font_Defalut,
int  _FontPoint = 18,
unsigned int  _red = 255,
unsigned int  _blue = 255,
unsigned int  _green = 255,
const std::string &  _FontPath = True_Type_Font_Location 
)
textBox::textBox ( )
textBox::~textBox ( )

Member Function Documentation

SDL_Color textBox::GetBackGroundColor ( )
bool textBox::GetClipTextHeight ( )
bool textBox::GetClipTextWidth ( )
bool textBox::GetEditable ( )
std::string textBox::GetFont ( )
std::string textBox::GetFontPath ( )
int textBox::GetFontPoint ( )
TTF_Font * textBox::GetFontPointer ( )
protected
int textBox::GetJustifyOffset ( )
bool textBox::GetNumbersOnly ( )
int textBox::GetQuality ( )
std::string textBox::GetText ( )
SDL_Color textBox::GetTextColor ( )
int textBox::GetTextJustification ( )
bool textBox::GetTextToFloat ( float &  _value)
bool textBox::GetTextToInt ( int &  _value)
template<class datatype >
bool textBox::GetTextToNumericData ( datatype &  _type)
inline
bool textBox::IsColorChangedOnClick ( )
void textBox::LoadFont ( )
protected
SDL_Surface * textBox::LoadSurface ( )
virtual

Reimplemented from EEWidget.

void textBox::Render ( )
protectedvirtual

Reimplemented from EEWidget.

bool textBox::SetBackGroundColor ( unsigned int  _red,
unsigned int  _blue,
unsigned int  _green 
)
void textBox::SetColorChangedOnClick ( bool  _ChangeOnClick)
void textBox::SetEditable ( bool  _flag)
void textBox::SetFont ( const std::string &  _FontArg)
void textBox::SetFontPath ( const std::string &  _Location)
void textBox::SetFontPoint ( int  _FontPointArg)
void textBox::SetHeightWidth ( unsigned int  _Height,
unsigned int  _Width 
)
virtual

Reimplemented from EEWidget.

void textBox::SetHightBasedOfRenderedText ( )
void textBox::SetJustifyOffset ( )
protected
void textBox::SetModifySurFace ( SDL_Surface *  _ModifySurface)
protectedvirtual

Reimplemented from EEWidget.

void textBox::SetNumbersOnly ( bool  _flag)
void textBox::SetQuality ( int  _Quality)
void textBox::SetSelectBackGroundColor ( unsigned int  _red,
unsigned int  _blue,
unsigned int  _green 
)
void textBox::SetSelectTextColor ( unsigned int  _red,
unsigned int  _blue,
unsigned int  _green 
)
void textBox::SetText ( const std::string &  _text,
bool  _setevent = false 
)
bool textBox::SetTextColor ( unsigned int  _red,
unsigned int  _blue,
unsigned int  _green 
)
bool textBox::SetTextFromFloat ( float  _value,
bool  _setevent = false 
)
bool textBox::SetTextFromInt ( int  _value,
bool  _setevent = false 
)
template<class datatype >
bool textBox::SetTextFromNumericData ( datatype  _value,
bool  _setevent 
)
inline
void textBox::SetTextJustification ( int  _justify)
void textBox::SetWidthBasedOfRenderedText ( )
EEWidget * textBox::WasClicked ( int  _mouselocationX,
int  _mouselocationY 
)
virtual

Reimplemented from EEWidget.

bool textBox::WillTextFitIntoBox ( std::string  _text)

Friends And Related Function Documentation

friend class EpeeEngine
friend

The documentation for this class was generated from the following files: