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

Image control. More...

#include <Image.h>

Inheritance diagram for kge::gui::Image:
kge::gui::Control kge::KgeUnknown

Public Member Functions

 Image (u16 *pIndices, core::RectI rect, gfx::Renderer *pRenderer)
 Constructor.
 ~Image ()
 Destructor.
virtual void Render ()
 Render the control.
virtual void SetUV (float u1, float v1, float u2, float v2)
- Public Member Functions inherited from kge::gui::Control
virtual ~Control ()
virtual bool CheckClick (int X, int Y)
 Checks if control clicked.
virtual void Connect (EventType eventtype, core::Functor2< void, Control *, EventArgs * > *Function)
 Connect an event.
virtual void SetPosistion (int X, int Y)
 Sets the control position.
virtual void SetSize (int Width, int Height)
 Sets Control size.
virtual void SetRect (int X, int Y, int Width, int Height)
 Sets the control rect.
virtual void SetRect (core::RectI rect)
 Sets the control rect.
virtual bool GetFocus ()
 Gets The Focuse Status.
virtual void SetFocus (bool FocusStatus)
 Set The Focuse Status.
- 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.

Public Attributes

kge::gfx::Vertex3Tm_pVerts
- Public Attributes inherited from kge::gui::Control
kge::gfx::Texturem_BackImage

Protected Member Functions

virtual void Update ()

Additional Inherited Members

- Protected Attributes inherited from kge::gui::Control
kge::u16m_pIndices
core::RectI m_Rect
gfx::Rendererm_pRenderer
bool m_bMouseOver
bool m_bFocus
std::vector< EventTypem_vEventTypes
std::vector< core::Functor2
< void, Control *, EventArgs * > * > 
m_vFunctors

Detailed Description

Image control.

Definition at line 16 of file Image.h.

Constructor & Destructor Documentation

kge::gui::Image::Image ( u16 pIndices,
core::RectI  rect,
gfx::Renderer pRenderer 
)

Constructor.

kge::gui::Image::~Image ( )

Destructor.

Member Function Documentation

virtual void kge::gui::Image::Render ( )
virtual

Render the control.

Implements kge::gui::Control.

virtual void kge::gui::Image::SetUV ( float  u1,
float  v1,
float  u2,
float  v2 
)
virtual
virtual void kge::gui::Image::Update ( )
protectedvirtual

Reimplemented from kge::gui::Control.

Member Data Documentation

kge::gfx::Vertex3T* kge::gui::Image::m_pVerts

Definition at line 35 of file Image.h.


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