- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UInputEvent Class Reference

This event is used as base class for user inputs (keyboard, mouse etc.). More...

#include <uinputevent.hpp>

Inheritance diagram for ufo::UInputEvent:

ufo::UWidgetEvent ufo::UEvent ufo::UObject ufo::UCollectable ufo::UKeyEvent ufo::UMouseEvent ufo::UMouseWheelEvent List of all members.

Public Member Functions

 UInputEvent (UWidget *sourceA, Type typeA, UMod_t modifiersA)
UMod_t getModifiers ()
bool isControlDown ()
bool isAltDown ()
bool isAltGraphDown ()
bool isShiftDown ()
bool isCapsDown ()
bool isMetaDown ()
bool isNumDown ()
bool hasMouseModifiers ()
bool hasKeyboardModifiers ()

Protected Member Functions

virtual std::ostream & paramString (std::ostream &os) const

Protected Attributes

UMod_t m_modifiers

Detailed Description

This event is used as base class for user inputs (keyboard, mouse etc.).

See also:
UKeyEvent

UMouseEvent

Author:
Johannes Schmidt


Member Function Documentation

UMod_t ufo::UInputEvent::getModifiers  ) 
 

Returns the modifiers associated with this input event.

bool ufo::UInputEvent::hasKeyboardModifiers  ) 
 

Returns true if a keyboard modifier was pressed when fireing this event.

bool ufo::UInputEvent::hasMouseModifiers  ) 
 

Returns true if a mouse button was pressed when fireing this event.

virtual std::ostream& ufo::UInputEvent::paramString std::ostream &  os  )  const [protected, virtual]
 

Prints some useful internal data to the ostream os. This method is meant only for debugging purposes.

Reimplemented from ufo::UEvent.

Reimplemented in ufo::UKeyEvent, ufo::UMouseEvent, and ufo::UMouseWheelEvent.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt