The Battle for Wesnoth  1.17.12+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 292 of file hotkey_command.hpp.

Constructor & Destructor Documentation

◆ scope_changer() [1/2]

hotkey::scope_changer::scope_changer ( )

Definition at line 321 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 327 of file hotkey_command.cpp.

◆ ~scope_changer()

hotkey::scope_changer::~scope_changer ( )

Definition at line 334 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 299 of file hotkey_command.hpp.

Referenced by ~scope_changer().

◆ restore_

const bool hotkey::scope_changer::restore_
private

Definition at line 300 of file hotkey_command.hpp.

Referenced by ~scope_changer().


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