The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Private Attributes | List of all members
hotkey::scope_changer Class Reference

#include <hotkey_command.hpp>

Public Member Functions

 scope_changer ()
 
 scope_changer (hk_scopes new_scopes, bool restore=true)
 
 ~scope_changer ()
 

Private Attributes

hk_scopes prev_scope_active_
 
const bool restore_
 

Detailed Description

Definition at line 290 of file hotkey_command.hpp.

Constructor & Destructor Documentation

◆ scope_changer() [1/2]

hotkey::scope_changer::scope_changer ( )

Definition at line 327 of file hotkey_command.cpp.

◆ scope_changer() [2/2]

hotkey::scope_changer::scope_changer ( hk_scopes  new_scopes,
bool  restore = true 
)
explicit

Definition at line 333 of file hotkey_command.cpp.

◆ ~scope_changer()

hotkey::scope_changer::~scope_changer ( )

Definition at line 340 of file hotkey_command.cpp.

References prev_scope_active_, and restore_.

Member Data Documentation

◆ prev_scope_active_

hk_scopes hotkey::scope_changer::prev_scope_active_
private

Definition at line 297 of file hotkey_command.hpp.

Referenced by ~scope_changer().

◆ restore_

const bool hotkey::scope_changer::restore_
private

Definition at line 298 of file hotkey_command.hpp.

Referenced by ~scope_changer().


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