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

ufo::UFocusManager Class Reference

This class controls the mouse and keyboard focus. More...

#include <ufocusmanager.hpp>

Inheritance diagram for ufo::UFocusManager:

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

Public Types

enum  FocusPolicy { ClickToFocus = 0, FocusUnderMouse = 1 }

Public Member Functions

virtual void processEvent (UEvent *e)
void setFocusPolicy (FocusPolicy policy)
FocusPolicy getFocusPolicy () const

Static Public Member Functions

UFocusManagergetFocusManager ()
void setFocusManager (UFocusManager *focusManager)

Protected Member Functions

void processMouseEvent (UMouseEvent *e)
void processKeyEvent (UKeyEvent *e)

Detailed Description

This class controls the mouse and keyboard focus.

The focus manager is not bound to a specific UFO context.

Author:
Johannes Schmidt


Member Function Documentation

virtual void ufo::UFocusManager::processEvent UEvent e  )  [virtual]
 

Processes an event. If it is an appropriate event, focus may be changed.

void ufo::UFocusManager::setFocusPolicy FocusPolicy  policy  ) 
 

Sets the focus policy. The default policy is ClickToFocus.


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