Remove draw() from sdl_handler interface
This commit is contained in:
parent
09f80573a1
commit
c6e97b20ae
3 changed files with 0 additions and 14 deletions
|
@ -42,7 +42,6 @@ public:
|
|||
|
||||
//drawing
|
||||
virtual void adjust_size(const SDL_Rect& /*target*/) override {}
|
||||
virtual void draw() override {}
|
||||
|
||||
void hide(bool /*hidden*/) override
|
||||
{
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
|
@ -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 << ".";
|
||||
|
|
Loading…
Add table
Reference in a new issue