RAII helper class to control the lifetime of a WML hotkey_command.
More...
#include <hotkey_command.hpp>
RAII helper class to control the lifetime of a WML hotkey_command.
Definition at line 315 of file hotkey_command.hpp.
◆ wml_hotkey_record() [1/4]
hotkey::wml_hotkey_record::wml_hotkey_record |
( |
| ) |
|
|
default |
◆ wml_hotkey_record() [2/4]
Don't allow copying so objects don't get erased early.
◆ wml_hotkey_record() [3/4]
But we do want move semantics.
◆ wml_hotkey_record() [4/4]
hotkey::wml_hotkey_record::wml_hotkey_record |
( |
const std::string & |
id, |
|
|
const t_string & |
description, |
|
|
const config & |
default_hotkey |
|
) |
| |
Registers a hotkey_command for a WML hotkey with the given ID if one does not already exist.
Definition at line 374 of file hotkey_command.cpp.
References hotkey::add_hotkey(), cleanup_, DBG_G, config::empty(), ERR_CF, hotkey::has_hotkey_item(), hotkey::HKCAT_CUSTOM, hotkey::HOTKEY_WML, i, id, hotkey::load_from_config(), LOG_G, and hotkey::scope_game.
◆ ~wml_hotkey_record()
hotkey::wml_hotkey_record::~wml_hotkey_record |
( |
| ) |
|
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ cleanup_
std::function<void()> hotkey::wml_hotkey_record::cleanup_ {} |
|
private |
The documentation for this class was generated from the following files: