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

The window interface for creating rendering windows on each OS. More...

#include <Iwindow.h>

Inheritance diagram for kge::io::IWindow:
kge::KgeUnknown

Public Member Functions

 IWindow ()
 Constructor.
virtual ~IWindow ()
 Destructor.
virtual bool Init (int Width, int Height, int Bits, bool Fullscreen, int ra)=0
 Initialize the window.
virtual bool Run ()=0
 Recive messages from OS and handle them.
virtual void SetCaption (const char *name)=0
 Sets window caption.
virtual void SetCursor (CURSOR_TYPES cur)=0
virtual void Show ()
 Show the window.
virtual void Hide ()
 Hide the window.
virtual void * GetHandler ()=0
virtual void SendQuitEvent ()
virtual void Resize (unsigned int width, unsigned int height, bool fullscreen)
 Resize window.
- 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

virtual void ToFullScreen ()=0
- Protected Member Functions inherited from kge::KgeUnknown
void SetDebugText (char *text)

Protected Attributes

u32 m_iWidth
u32 m_iHeight
u32 m_iBits
bool m_bFullscreen

Detailed Description

The window interface for creating rendering windows on each OS.

Definition at line 39 of file Iwindow.h.

Constructor & Destructor Documentation

kge::io::IWindow::IWindow ( )
inline

Constructor.

Definition at line 44 of file Iwindow.h.

virtual kge::io::IWindow::~IWindow ( )
inlinevirtual

Destructor.

Definition at line 47 of file Iwindow.h.

Member Function Documentation

virtual void* kge::io::IWindow::GetHandler ( )
pure virtual
virtual void kge::io::IWindow::Hide ( )
inlinevirtual

Hide the window.

Definition at line 66 of file Iwindow.h.

virtual bool kge::io::IWindow::Init ( int  Width,
int  Height,
int  Bits,
bool  Fullscreen,
int  ra 
)
pure virtual

Initialize the window.

virtual void kge::io::IWindow::Resize ( unsigned int  width,
unsigned int  height,
bool  fullscreen 
)
inlinevirtual

Resize window.

Definition at line 75 of file Iwindow.h.

virtual bool kge::io::IWindow::Run ( )
pure virtual

Recive messages from OS and handle them.

virtual void kge::io::IWindow::SendQuitEvent ( )
inlinevirtual

Definition at line 72 of file Iwindow.h.

virtual void kge::io::IWindow::SetCaption ( const char *  name)
pure virtual

Sets window caption.

virtual void kge::io::IWindow::SetCursor ( CURSOR_TYPES  cur)
pure virtual
virtual void kge::io::IWindow::Show ( )
inlinevirtual

Show the window.

Definition at line 63 of file Iwindow.h.

virtual void kge::io::IWindow::ToFullScreen ( )
protectedpure virtual

Member Data Documentation

bool kge::io::IWindow::m_bFullscreen
protected

Definition at line 81 of file Iwindow.h.

u32 kge::io::IWindow::m_iBits
protected

Definition at line 78 of file Iwindow.h.

u32 kge::io::IWindow::m_iHeight
protected

Definition at line 78 of file Iwindow.h.

u32 kge::io::IWindow::m_iWidth
protected

Definition at line 78 of file Iwindow.h.


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