Remove draw() from sdl_handler interface

This commit is contained in:
Tommy 2022-07-29 19:20:20 +12:00
parent 09f80573a1
commit c6e97b20ae
3 changed files with 0 additions and 14 deletions

View file

@ -42,7 +42,6 @@ public:
//drawing
virtual void adjust_size(const SDL_Rect& /*target*/) override {}
virtual void draw() override {}
void hide(bool /*hidden*/) override
{

View file

@ -77,7 +77,6 @@ public:
virtual void handle_event(const SDL_Event& event) = 0;
virtual void handle_window_event(const SDL_Event&) {};
virtual void process_event() {}
virtual void draw() {}
virtual bool requires_event_focus(const SDL_Event * = nullptr) const { return false; }

View file

@ -170,10 +170,6 @@ private:
/** Fires a raw SDL event. */
void raw_event(const SDL_Event &event);
/** Fires a draw event. */
using events::sdl_handler::draw;
void draw() override;
/**
* Fires a video resize event.
*
@ -578,14 +574,6 @@ void sdl_event_handler::activate()
}
}
void sdl_event_handler::draw()
{
for(auto dispatcher : dispatchers_)
{
dispatcher->fire(DRAW, dynamic_cast<widget&>(*dispatcher));
}
}
void sdl_event_handler::video_resize(const point& new_size)
{
DBG_GUI_E << "Firing: " << SDL_VIDEO_RESIZE << ".";