The Battle for Wesnoth  1.19.5+dev
Public Member Functions | List of all members
sound::music_muter Class Reference

#include <sound.hpp>

Inheritance diagram for sound::music_muter:

Public Member Functions

 music_muter ()
 
void handle_event (const SDL_Event &) override
 
void handle_window_event (const SDL_Event &event) override
 
- Public Member Functions inherited from events::sdl_handler
virtual void process_event ()
 
virtual bool requires_event_focus (const SDL_Event *=nullptr) const
 
virtual void process_tooltip_string (int, int)
 
virtual void join ()
 
virtual void join (context &c)
 
virtual void join_same (sdl_handler *parent)
 
virtual void leave ()
 
virtual void join_global ()
 
virtual void leave_global ()
 
virtual bool has_joined ()
 
virtual bool has_joined_global ()
 
sdl_handleroperator= (sdl_handler &&)=delete
 Moving would require two instances' context membership to be handled, it's simpler to delete these and require the two instances to be separately constructed / destructed. More...
 
 sdl_handler (sdl_handler &&)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from events::sdl_handler
 sdl_handler (const bool auto_join=true)
 
 sdl_handler (const sdl_handler &)
 
sdl_handleroperator= (const sdl_handler &)
 
virtual ~sdl_handler ()
 
virtual std::vector< sdl_handler * > handler_members ()
 

Detailed Description

Definition at line 108 of file sound.hpp.

Constructor & Destructor Documentation

◆ music_muter()

sound::music_muter::music_muter ( )

Definition at line 823 of file sound.cpp.

References events::sdl_handler::join_global().

Member Function Documentation

◆ handle_event()

void sound::music_muter::handle_event ( const SDL_Event &  )
inlineoverridevirtual

Implements events::sdl_handler.

Definition at line 111 of file sound.hpp.

◆ handle_window_event()

void sound::music_muter::handle_window_event ( const SDL_Event &  event)
overridevirtual

Reimplemented from events::sdl_handler.

Definition at line 829 of file sound.cpp.

References prefs::get(), and gui2::dialogs::music_on().


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