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

ufo::UShortcutEvent Class Reference

This event represents a keyboard shortcut. More...

#include <ushortcutevent.hpp>

Inheritance diagram for ufo::UShortcutEvent:

ufo::UWidgetEvent ufo::UEvent ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

 UShortcutEvent (UWidget *source, Type type, const UKeyStroke &stroke, bool ambiguous=false)
const UKeyStrokegetKey () const
bool isAmbiguous () const

Detailed Description

This event represents a keyboard shortcut.

A shortcut event is fired when there is at least one visible, focused widget. The widget which has registered the shortcut gets this event via processEvent and processShortcutEvent. Only one widgets gets a shortcut event. If more than one widget registered for the same shortcut, isAmbiguous() returns true. Pressing the stroke again dispatches a newly created event to the next listener.

Author:
Johannes Schmidt


Member Function Documentation

const UKeyStroke& ufo::UShortcutEvent::getKey  )  const [inline]
 

Returns:
The key stroke which activated this shortcut event.

bool ufo::UShortcutEvent::isAmbiguous  )  const [inline]
 

Returns:
True if more than one widgets listens for this shortcut.


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