Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::gui::GuiManager Class Reference

#include <GuiManager.h>

Inheritance diagram for kge::gui::GuiManager:
kge::KgeUnknown

Public Member Functions

 GuiManager (gfx::Renderer *pRenderer, sn::SceneManager *pSmgr)
 Constructor.
 ~GuiManager ()
 Destructor.
bool AddFont (Font **ppOutFont, u32 Handle, const char *FileName, const char *Name, void *ExtraParam)
 For internal use.
ImageAddImage (const char *ImageFile, core::RectI rect)
 Adds an image to the screen.
TextAddText (const wchar_t *text, core::RectI rect, int FontSize=24, const char *FontName="Arial")
 Adds an static text and return its pointer.
void DrawAll ()
 Draws all guis.
- Public Member Functions inherited from kge::KgeUnknown
 KgeUnknown ()
 Constructor.
virtual ~KgeUnknown ()
 Destructor.
virtual void AddRef ()
 Add a reference to the object.
virtual void DecRef ()
 Decrease a reference from the object. if its reference count get 0 then the object will destroy.
u32 GetRefCount ()
 Return resource reference count.
const char * GetDebugText ()
 returns the instance debug text.

Protected Member Functions

void OnClick (EventArgs *event)
void OnMouseMotion (EventArgs *event)
void OnMouseDown (EventArgs *event)
void OnMouseUp (EventArgs *event)
- Protected Member Functions inherited from kge::KgeUnknown
void SetDebugText (char *text)

Protected Attributes

bool m_bClicked
bool m_bMouseMotion
bool m_bMouseDown
bool m_bMouseUp
bool m_bKeyDown
u16m_pIndices
io::Mousem_pMouse
sn::SceneManagerm_pSmgr
gfx::Rendererm_pRenderer
std::vector< Control * > m_vControls
MouseEventArgs m_meaClick
MouseEventArgs m_meaMotion
MouseEventArgs m_meaMouse
gui::Controlm_pFocusedControl
ResourceManager< Font > * m_pFontManager
gfx::Materialm_pMat
Fontm_pFirstFont

Detailed Description

Definition at line 19 of file GuiManager.h.

Constructor & Destructor Documentation

kge::gui::GuiManager::GuiManager ( gfx::Renderer pRenderer,
sn::SceneManager pSmgr 
)

Constructor.

kge::gui::GuiManager::~GuiManager ( )

Destructor.

Member Function Documentation

bool kge::gui::GuiManager::AddFont ( Font **  ppOutFont,
u32  Handle,
const char *  FileName,
const char *  Name,
void *  ExtraParam 
)

For internal use.

Image* kge::gui::GuiManager::AddImage ( const char *  ImageFile,
core::RectI  rect 
)

Adds an image to the screen.

Text* kge::gui::GuiManager::AddText ( const wchar_t *  text,
core::RectI  rect,
int  FontSize = 24,
const char *  FontName = "Arial" 
)

Adds an static text and return its pointer.

void kge::gui::GuiManager::DrawAll ( )

Draws all guis.

void kge::gui::GuiManager::OnClick ( EventArgs event)
protected
void kge::gui::GuiManager::OnMouseDown ( EventArgs event)
protected
void kge::gui::GuiManager::OnMouseMotion ( EventArgs event)
protected
void kge::gui::GuiManager::OnMouseUp ( EventArgs event)
protected

Member Data Documentation

bool kge::gui::GuiManager::m_bClicked
protected

Definition at line 48 of file GuiManager.h.

bool kge::gui::GuiManager::m_bKeyDown
protected

Definition at line 48 of file GuiManager.h.

bool kge::gui::GuiManager::m_bMouseDown
protected

Definition at line 48 of file GuiManager.h.

bool kge::gui::GuiManager::m_bMouseMotion
protected

Definition at line 48 of file GuiManager.h.

bool kge::gui::GuiManager::m_bMouseUp
protected

Definition at line 48 of file GuiManager.h.

MouseEventArgs kge::gui::GuiManager::m_meaClick
protected

Definition at line 59 of file GuiManager.h.

MouseEventArgs kge::gui::GuiManager::m_meaMotion
protected

Definition at line 59 of file GuiManager.h.

MouseEventArgs kge::gui::GuiManager::m_meaMouse
protected

Definition at line 59 of file GuiManager.h.

Font* kge::gui::GuiManager::m_pFirstFont
protected

Definition at line 70 of file GuiManager.h.

gui::Control* kge::gui::GuiManager::m_pFocusedControl
protected

Definition at line 63 of file GuiManager.h.

ResourceManager<Font>* kge::gui::GuiManager::m_pFontManager
protected

Definition at line 66 of file GuiManager.h.

u16* kge::gui::GuiManager::m_pIndices
protected

Definition at line 53 of file GuiManager.h.

gfx::Material* kge::gui::GuiManager::m_pMat
protected

Definition at line 68 of file GuiManager.h.

io::Mouse* kge::gui::GuiManager::m_pMouse
protected

Definition at line 54 of file GuiManager.h.

gfx::Renderer* kge::gui::GuiManager::m_pRenderer
protected

Definition at line 56 of file GuiManager.h.

sn::SceneManager* kge::gui::GuiManager::m_pSmgr
protected

Definition at line 55 of file GuiManager.h.

std::vector<Control *> kge::gui::GuiManager::m_vControls
protected

Definition at line 58 of file GuiManager.h.


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