SDL++
C++wrapperfortheSDLlibrary.

sdl::event::KeyBase Struct Reference

Base for keyboard events that exposes the SDL_KeyboardEvent structure. More...

#include <KeyboardEvents.h>

Inheritance diagram for sdl::event::KeyBase:
Collaboration diagram for sdl::event::KeyBase:

List of all members.

Public Member Functions

 KeyBase (const SDL_Event *event)
const SDL_KeyboardEvent & get () const
const SDL_KeyboardEvent & get ()

Detailed Description

Base for keyboard events that exposes the SDL_KeyboardEvent structure.

Definition at line 39 of file KeyboardEvents.h.


Constructor & Destructor Documentation

sdl::event::KeyBase::KeyBase ( const SDL_Event *  event) [inline]

Constructs an KeyBase from a SDL_Event structure.

Parameters:
eventThe SDL_Event structure.

Definition at line 45 of file KeyboardEvents.h.


Member Function Documentation

const SDL_KeyboardEvent& sdl::event::KeyBase::get ( ) const [inline]

Exposes the SDL_KeyboardEvent structure.

Returns:
The SDL_KeyboardEvent structure.

Definition at line 52 of file KeyboardEvents.h.

const SDL_KeyboardEvent& sdl::event::KeyBase::get ( ) [inline]

Exposes the SDL_KeyboardEvent structure.

Returns:
The SDL_KeyboardEvent structure.

Definition at line 59 of file KeyboardEvents.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs