GigaPasjans
Loading...
Searching...
No Matches
Andromenda::ActionRegistry Class Reference

Represent registry of Action objects. More...

#include <ActionRegistry.h>

Public Member Functions

void Register (const Keycode &keycode, const WideString &actionText, const Callback &callback, MouseButton button=MouseButton::None)
 Registers given text and callback to given key.
 
void Clear ()
 Deletes all actions.
 
void Handle (const int32 &key) const
 Lookups action with given key and calls action's callback.
 
void HandleMouse (const MouseButton &button)
 Lookups action with given mouse button and calls action's callback.
 
void DrawActionsAt (DrawContext &context, const Int2 &position) const
 Draws helper text with availible actions and corresponding keycode.
 

Detailed Description

Represent registry of Action objects.

Member Function Documentation

◆ Handle()

void Andromenda::ActionRegistry::Handle ( const int32 & key) const

Lookups action with given key and calls action's callback.

Parameters
key

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