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 | List of all members
ButtonTB Class Reference

#include <EETextButton.h>

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

Public Member Functions

 ButtonTB (const std::string &_ButtonName, int _Buttonx, int _Buttony, int _Buttonz, const std::string &_ButtonText, bool _SButtonactive=true, unsigned int _ButtonTB_height=30, unsigned int _ButtonTB_width=100, const std::string &_ButtonTB_Font=True_Type_Font_Defalut, int _ButtonTB_FontPoint=18, unsigned int _ButtonTB_red=255, unsigned int _ButtonTB_blue=255, unsigned int _ButtonTB_green=255, const std::string &_ButtonFontPath=True_Type_Font_Location)
 
- Public Member Functions inherited from 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 ()
 
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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from 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)
 
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 ()
 
- 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

ButtonTB::ButtonTB ( const std::string &  _ButtonName,
int  _Buttonx,
int  _Buttony,
int  _Buttonz,
const std::string &  _ButtonText,
bool  _SButtonactive = true,
unsigned int  _ButtonTB_height = 30,
unsigned int  _ButtonTB_width = 100,
const std::string &  _ButtonTB_Font = True_Type_Font_Defalut,
int  _ButtonTB_FontPoint = 18,
unsigned int  _ButtonTB_red = 255,
unsigned int  _ButtonTB_blue = 255,
unsigned int  _ButtonTB_green = 255,
const std::string &  _ButtonFontPath = True_Type_Font_Location 
)

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