![]() |
Kochol Game Engine
0.1.0
|
#include <Mouse.h>
Public Member Functions | |
Mouse () | |
Constructor. | |
~Mouse () | |
Destructor. | |
void | GetPosition (math::Vector2I &pos) |
Get the mouse position. | |
math::Vector2I | GetPosition () |
Returns the mouse position. | |
void | SetPosition (const math::Vector2I &pos) |
Set kardane mogheiate mouse. | |
void | SetPosition (int x, int y) |
Set kardane mogheiate mouse. | |
bool | ButtonDown (MouseButton btn) |
check kardane feshorde shodane dokme haye mouse | |
virtual void | Connect (gui::EventType eventtype, core::Functor1< void, gui::EventArgs * > *Function) |
Connect an event. | |
![]() | |
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. |
Additional Inherited Members | |
![]() | |
void | SetDebugText (char *text) |
kge::io::Mouse::~Mouse | ( | ) |
Destructor.
bool kge::io::Mouse::ButtonDown | ( | MouseButton | btn | ) |
check kardane feshorde shodane dokme haye mouse
button | name dokmeie ke garar ast check shavad ra moshakhas mikonad |
|
virtual |
Connect an event.
void kge::io::Mouse::GetPosition | ( | math::Vector2I & | pos | ) |
Get the mouse position.
pos | Fill the pos with mouse position. |
math::Vector2I kge::io::Mouse::GetPosition | ( | ) |
Returns the mouse position.
void kge::io::Mouse::SetPosition | ( | const math::Vector2I & | pos | ) |
Set kardane mogheiate mouse.
pos | Mahali ke mouse mikhahid gharar begirad. |
void kge::io::Mouse::SetPosition | ( | int | x, |
int | y | ||
) |
Set kardane mogheiate mouse.
x | Mahale ofoghi ke mouse mikhahid gharar begirad. |
y | Mahale Amodi ke mouse mikhahid gharar begirad. |