#include <events.hpp>
Public Member Functions | |
virtual void | handle_event (const SDL_Event &event)=0 |
virtual void | handle_window_event (const SDL_Event &) |
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_handler & | operator= (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 | |
Protected Member Functions | |
sdl_handler (const bool auto_join=true) | |
sdl_handler (const sdl_handler &) | |
sdl_handler & | operator= (const sdl_handler &) |
virtual | ~sdl_handler () |
virtual std::vector< sdl_handler * > | handler_members () |
Private Attributes | |
bool | has_joined_ |
bool | has_joined_global_ |
Friends | |
class | context |
Definition at line 73 of file events.hpp.
|
delete |
|
protected |
Definition at line 243 of file events.cpp.
References events::event_contexts, and has_joined_.
|
protected |
Definition at line 254 of file events.cpp.
References events::context::add_handler(), events::event_contexts, events::context::has_handler(), has_joined_, has_joined_global_, and utils::reversed_view().
|
protectedvirtual |
Definition at line 297 of file events.cpp.
References has_joined_, has_joined_global_, leave(), and leave_global().
|
pure virtual |
|
inlinevirtual |
Reimplemented in sound::music_muter, and gui2::event::sdl_event_handler.
Definition at line 78 of file events.hpp.
|
inlineprotectedvirtual |
Reimplemented in editor::palette_manager, editor::location_palette, editor::editor_palette< Item >, editor::editor_palette< t_translation::terrain_code >, editor::editor_palette< const unit_type & >, editor::editor_palette< overlay >, gui::scrollarea, and editor::common_palette.
Definition at line 109 of file events.hpp.
Referenced by join(), join_global(), leave(), and leave_global().
|
inlinevirtual |
Definition at line 93 of file events.hpp.
References has_joined_.
|
inlinevirtual |
Definition at line 94 of file events.hpp.
References has_joined_global_.
|
virtual |
Definition at line 308 of file events.cpp.
References events::event_contexts.
Referenced by gui2::event::sdl_event_handler::connect(), join_same(), operator=(), and gui2::event::sdl_event_handler::sdl_event_handler().
|
virtual |
Definition at line 317 of file events.cpp.
References c, handler_members(), has_joined_, has_joined_global_, leave(), and leave_global().
|
virtual |
Definition at line 374 of file events.cpp.
References events::event_contexts, handler_members(), has_joined_, has_joined_global_, leave(), and leave_global().
Referenced by controller_base::keyup_listener::keyup_listener(), sound::music_muter::music_muter(), and operator=().
|
virtual |
Definition at line 337 of file events.cpp.
References events::event_contexts, events::context::has_handler(), has_joined_, join(), leave(), and utils::reversed_view().
|
virtual |
Definition at line 353 of file events.cpp.
References events::event_contexts, handler_members(), has_joined_, events::context::remove_handler(), and utils::reversed_view().
Referenced by gui2::event::sdl_event_handler::disconnect(), join(), join_global(), join_same(), operator=(), gui2::event::sdl_event_handler::~sdl_event_handler(), and ~sdl_handler().
|
virtual |
Definition at line 394 of file events.cpp.
References events::event_contexts, handler_members(), and has_joined_global_.
Referenced by join(), join_global(), operator=(), and ~sdl_handler().
|
protected |
Definition at line 277 of file events.cpp.
References events::event_contexts, events::context::has_handler(), has_joined_, has_joined_global_, join(), join_global(), leave(), leave_global(), and utils::reversed_view().
|
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.
|
inlinevirtual |
Reimplemented in gui::scrollarea.
Definition at line 79 of file events.hpp.
|
inlinevirtual |
Reimplemented in gui::widget.
Definition at line 83 of file events.hpp.
|
inlinevirtual |
Reimplemented in gui::textbox.
Definition at line 81 of file events.hpp.
Referenced by events::has_focus().
|
friend |
Definition at line 75 of file events.hpp.
|
private |
Definition at line 115 of file events.hpp.
Referenced by has_joined(), join(), join_global(), join_same(), leave(), operator=(), sdl_handler(), and ~sdl_handler().
|
private |
Definition at line 116 of file events.hpp.
Referenced by has_joined_global(), join(), join_global(), leave_global(), operator=(), sdl_handler(), and ~sdl_handler().