Main Page   Packages   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

clawsoft.MouseEvent Class Reference

#include <MouseEvent.h>

Inheritance diagram for clawsoft.MouseEvent:

Inheritance graph
[legend]
Collaboration diagram for clawsoft.MouseEvent:

Collaboration graph
[legend]

Detailed Description

This class defines how to catch and report events from the mouse pointer device, and also provides an interface for knowing it's status.

Definition at line 16 of file MouseEvent.h.

Public Methods

 MouseEvent ()
bool inFocus (Rect r)
bool leftPressed ()
bool rightPressed ()
bool middlePressed ()
void getStatus (int *x, int *y, int *b)
char * getClassName ()
 Returns the name of the current class.


Protected Methods

void setClassName (char *n)
 Call this method when you need to set the name of the class you're creating, typically int it's constructor, remeber that you must set the classname for every clas you create, that way you can have more information while being in a debuging process.


Static Protected Attributes

Mutex eM


Constructor & Destructor Documentation

clawsoft.MouseEvent::MouseEvent  
 

Definition at line 10 of file MouseEvent.cpp.


Member Function Documentation

char * clawsoft.Object::getClassName   [inherited]
 

Returns the name of the current class.

Definition at line 18 of file Object.cpp.

References clawsoft.Object.__cls_name.

void clawsoft.MouseEvent::getStatus int *    x,
int *    y,
int *    b
 

Definition at line 48 of file MouseEvent.cpp.

Referenced by clawsoft.TextButton.checkKeyEvents(), clawsoft.BaseButton.checkKeyEvents(), clawsoft.TextButton.checkMouseEvents(), and clawsoft.BaseButton.checkMouseEvents().

bool clawsoft.MouseEvent::inFocus Rect    r
 

Definition at line 14 of file MouseEvent.cpp.

References clawsoft.Rect.getBottom(), clawsoft.Rect.getLeft(), clawsoft.Rect.getRight(), and clawsoft.Rect.getTop().

Referenced by clawsoft.TextButton.checkKeyEvents(), clawsoft.TextBox.checkKeyEvents(), clawsoft.BaseButton.checkKeyEvents(), clawsoft.Window.checkMouseEvents(), clawsoft.TextButton.checkMouseEvents(), clawsoft.TextBox.checkMouseEvents(), clawsoft.Window.checkMouseMotionEvents(), clawsoft.TextButton.checkMouseMotionEvents(), clawsoft.BaseButton.checkMouseMotionEvents(), clawsoft.TextButton.draw(), clawsoft.TextBox.draw(), clawsoft.BaseButton.draw(), clawsoft.TextField.drawBorder(), clawsoft.TextBox.drawBorder(), and clawsoft.BaseButton.pressed().

bool clawsoft.MouseEvent::leftPressed  
 

Definition at line 27 of file MouseEvent.cpp.

References globalEvent.

Referenced by clawsoft.Window.checkMouseEvents(), clawsoft.TextButton.checkMouseEvents(), clawsoft.TextBox.checkMouseEvents(), clawsoft.Window.checkMouseMotionEvents(), clawsoft.TextButton.draw(), clawsoft.BaseButton.draw(), and clawsoft.BaseButton.pressed().

bool clawsoft.MouseEvent::middlePressed  
 

Definition at line 41 of file MouseEvent.cpp.

References globalEvent.

bool clawsoft.MouseEvent::rightPressed  
 

Definition at line 34 of file MouseEvent.cpp.

References globalEvent.

void clawsoft.Object::setClassName char *    n [protected, inherited]
 

Call this method when you need to set the name of the class you're creating, typically int it's constructor, remeber that you must set the classname for every clas you create, that way you can have more information while being in a debuging process.

Definition at line 14 of file Object.cpp.

References clawsoft.Object.__cls_name.

Referenced by clawsoft.ArrayOutOfBoundsException.ArrayOutOfBoundsException(), clawsoft.BrokenPipeException.BrokenPipeException(), clawsoft.Dialog.CancelButton.CancelButton(), clawsoft.CantLoadDSOException.CantLoadDSOException(), clawsoft.CantUnloadDSOException.CantUnloadDSOException(), clawsoft.ConnectionRefusedException.ConnectionRefusedException(), clawsoft.ConnectionTimeoutException.ConnectionTimeoutException(), clawsoft.Dialog.Dialog(), clawsoft.DSOException.DSOException(), clawsoft.DSOSymbolException.DSOSymbolException(), clawsoft.ElementNotFoundException.ElementNotFoundException(), clawsoft.Font.Font(), clawsoft.GameSelector.GameSelector(), clawsoft.Dialog.HelpButton.HelpButton(), clawsoft.IOException.IOException(), clawsoft.KeyboardEvent.KeyboardEvent(), clawsoft.LoginDialog.LoginDialog(), clawsoft.Mutex.Mutex(), clawsoft.MutexException.MutexException(), clawsoft.NetworkException.NetworkException(), clawsoft.NetworkUnreachableException.NetworkUnreachableException(), clawsoft.NoMoreTokensException.NoMoreTokensException(), clawsoft.NullPointerException.NullPointerException(), clawsoft.NumberException.NumberException(), clawsoft.Object.Object(), clawsoft.Dialog.OKButton.OKButton(), clawsoft.Plugin.Plugin(), clawsoft.ProcOutOfFileDescriptorsException.ProcOutOfFileDescriptorsException(), Random.Random(), clawsoft.ServerSocket.ServerSocket(), clawsoft.Socket.Socket(), clawsoft.SocketAlreadyBoundedException.SocketAlreadyBoundedException(), clawsoft.SocketAlreadyUsedException.SocketAlreadyUsedException(), clawsoft.SocketUnableToReadException.SocketUnableToReadException(), clawsoft.SocketUnableToWriteException.SocketUnableToWriteException(), clawsoft.SysOutOfFileDescriptorsException.SysOutOfFileDescriptorsException(), clawsoft.TextBox.TextBox(), clawsoft.TextButton.TextButton(), clawsoft.TextField.TextField(), clawsoft.Thread.Thread(), clawsoft.UnableToLockMutexException.UnableToLockMutexException(), clawsoft.UnableToUnlockMutexException.UnableToUnlockMutexException(), and clawsoft.Window.Window().


Field Documentation

Mutex clawsoft.Event::eM [static, protected, inherited]
 

Definition at line 9 of file Event.cpp.

Referenced by clawsoft.KeyboardEvent.keyPressed().


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

Powered by:

SourceForge Logo