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
Button Class Reference

#include <EEButton.h>

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

Public Member Functions

 Button (const std::string &_ButtonFileNameImage, const std::string &_ButtonName, int _Buttonx, int _Buttony, int _Buttonz, bool _Transparency=false, bool _SButtonactive=true)
 
 Button (const std::string &_ButtonName, int _Buttonx, int _Buttony, int _Buttonz, int m_iButtonHeight, int m_iButtonwidth, bool _Transparency=false, bool _SButtonactive=true)
 
 Button ()
 
virtual EEWidgetWasClicked (int _mouselocationX, int _mouselocationY)
 
- Public Member Functions inherited from image
 image (const std::string &_FileNameImage, const std::string &_NameImageHere, int _x, int _y, int _z, bool _Transparency=false)
 
virtual SDL_Surface * LoadSurface ()
 
virtual void LoadTexture ()
 
std::string GetFileName ()
 
void SetClippingRect (int _x, int _y, int _w, int _h)
 
bool GetClip ()
 
int GetClippingX ()
 
int GetClippingY ()
 
int GetClippingW ()
 
int GetClippingH ()
 
void SetTransparency (bool _Transparency)
 
bool GetTransparency ()
 
- 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 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 ()
 
virtual void SetHeightWidth (unsigned int _Height, unsigned int _Width)
 
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 image
 image (const std::string &_FileNameImage, const std::string &_NameImageHere, int _x, int _y, int _z, int _type, bool _Transparency=false)
 
 image ()
 
 image (const std::string &_FileNameImage)
 
SDL_Rect * GetClippingRect ()
 
SDL_Rect * GetOrignalRect ()
 
- Protected Member Functions inherited from EEWidget
virtual void Render ()
 
 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)
 
virtual void SetModifySurFace (SDL_Surface *_ModifySurface)
 
SDL_Surface * GetModifySurFace ()
 
- Protected Attributes inherited from image
SDL_Rect ClipingRect
 
- 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

Button::Button ( const std::string &  _ButtonFileNameImage,
const std::string &  _ButtonName,
int  _Buttonx,
int  _Buttony,
int  _Buttonz,
bool  _Transparency = false,
bool  _SButtonactive = true 
)
Button::Button ( const std::string &  _ButtonName,
int  _Buttonx,
int  _Buttony,
int  _Buttonz,
int  m_iButtonHeight,
int  m_iButtonwidth,
bool  _Transparency = false,
bool  _SButtonactive = true 
)
Button::Button ( )

Member Function Documentation

EEWidget * Button::WasClicked ( int  _mouselocationX,
int  _mouselocationY 
)
virtual

Reimplemented from EEWidget.


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