Allolib  1.0
C++ Components For Interactive Multimedia
al::WindowEventHandler Class Reference

Controller for handling input and window events. More...

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/io/al_Window.hpp>

Inheritance diagram for al::WindowEventHandler:
al::App::StandardWindowAppKeyControls al::NavInputControl

Public Member Functions

virtual bool keyDown (const Keyboard &k)
 Called when a keyboard key is pressed.
 
virtual bool keyUp (const Keyboard &k)
 Called when a keyboard key is released.
 
virtual bool mouseDown (const Mouse &m)
 Called when a mouse button is pressed.
 
virtual bool mouseDrag (const Mouse &m)
 Called when the mouse moves while a button is down.
 
virtual bool mouseMove (const Mouse &m)
 Called when the mouse moves.
 
virtual bool mouseUp (const Mouse &m)
 Called when a mouse button is released.
 
virtual bool mouseScroll (const Mouse &m)
 Called when mouse scrolled.
 
virtual bool resize (int dw, int dh)
 Called whenever window dimensions change.
 
virtual bool visibility (bool v)
 Called when window changes from hidden to shown and vice versa.
 
WindowEventHandlerwindowEventHandler ()
 Return self.
 
bool attached () const
 
Windowwindow ()
 
const Windowwindow () const
 

Public Attributes

WindowmWindow
 

Friends

class Window
 

Detailed Description

Controller for handling input and window events.

The return value of the event handlers determines whether or not the event should be propagated to other handlers.

Definition at line 194 of file al_Window.hpp.


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