The Battle for Wesnoth  1.17.0-dev
Public Member Functions | List of all members
CVideo::video_event_handler Class Reference

Helper class to manage SDL events. More...

Inheritance diagram for CVideo::video_event_handler:

Public Member Functions

virtual void handle_event (const SDL_Event &)
virtual void handle_window_event (const SDL_Event &event)
 video_event_handler ()
- Public Member Functions inherited from events::sdl_handler
virtual void process_event ()
virtual void draw ()
virtual void volatile_draw ()
virtual void volatile_undraw ()
virtual bool requires_event_focus (const SDL_Event *=nullptr) const
virtual void process_help_string (int, int)
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

Helper class to manage SDL events.

Definition at line 273 of file video.hpp.

Constructor & Destructor Documentation

◆ video_event_handler()

CVideo::video_event_handler::video_event_handler ( )

Definition at line 282 of file video.hpp.

Member Function Documentation

◆ handle_event()

virtual void CVideo::video_event_handler::handle_event ( const SDL_Event &  )

Implements events::sdl_handler.

Definition at line 276 of file video.hpp.

◆ handle_window_event()

void CVideo::video_event_handler::handle_window_event ( const SDL_Event &  event)

Implements events::sdl_handler.

Definition at line 140 of file video.cpp.

References DRAW_ALL_EVENT.

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