libsuit  0.1.1
SFML User Interface Toolkit
Public Member Functions | List of all members
ui::StandardActionSet Class Reference

The standard action set. More...

#include <ui/Action.h>

Inheritance diagram for ui::StandardActionSet:
Inheritance graph

Public Member Functions

 StandardActionSet ()
 Construct the standard action set. More...
void handleArea (Area &area)
 Handle an area. More...
- Public Member Functions inherited from ui::ActionSet
void addAction (std::shared_ptr< Action > action)
 Add an action. More...
void update (const sf::Event &event)
 Update all the actions. More...
void reset ()
 Reset all the actions. More...

Detailed Description

The standard action set.

Constructor & Destructor Documentation

ui::StandardActionSet::StandardActionSet ( )

Construct the standard action set.

The standard action set is composed of:

  • an "Up" action triggered by the up key
  • a "Down" action triggered by the down key
  • a "Left" action triggered by the left key
  • a "Right" action triggered by the right key
  • a "Primary" action triggered by the return key
  • a "Secondary" action triggered by the backspace key

Member Function Documentation

void ui::StandardActionSet::handleArea ( Area area)

Handle an area.

areathe area to handle.
See also
Area::onUp(), Area::onDown(), Area::onLeft(), Area::onRight(), Area::onPrimaryAction(), Area::onSecondaryAction()