1#ifndef TATOOINE_GL_WINDOW_NOTIFIER_H
2#define TATOOINE_GL_WINDOW_NOTIFIER_H
10template <
typename Event>
14 this->
get()(width, height);
24template <
typename Event>
38template <
typename Event>
52template <
typename Event>
66template <
typename Event>
80template <
typename Event>
94template <
typename Event>
108template <
typename Event>
124 std::vector<std::unique_ptr<base_holder>>
m_events;
140 template <
typename Event>
142 m_events.push_back(std::unique_ptr<base_holder>{
147 template <
typename Event>
149 m_events.push_back(std::unique_ptr<base_holder>{
154 template <
typename Event>
156 m_events.push_back(std::unique_ptr<base_holder>{
161 template <
typename Event>
163 m_events.push_back(std::unique_ptr<base_holder>{
168 template <
typename Event>
170 m_events.push_back(std::unique_ptr<base_holder>{
175 template <
typename Event>
177 m_events.push_back(std::unique_ptr<base_holder>{
182 template <
typename Event>
184 m_events.push_back(std::unique_ptr<base_holder>{
189 template <
typename Event>
191 m_events.push_back(std::unique_ptr<base_holder>{
Definition: ansiformat.h:6
button
Definition: mouse.h:8
key
Definition: keyboard.h:9
Definition: window_notifier.h:109
void on_cursor_moved(double x, double y) override
Definition: window_notifier.h:111
Definition: window_notifier.h:25
void on_key_pressed(key k) override
Definition: window_notifier.h:27
Definition: window_notifier.h:39
void on_key_pressed(key k) override
Definition: window_notifier.h:41
Definition: window_notifier.h:11
void on_resize(int width, int height) override
Definition: window_notifier.h:13
Definition: window_notifier.h:95
void on_wheel_down() override
Definition: window_notifier.h:97
Definition: window_notifier.h:81
void on_wheel_up() override
Definition: window_notifier.h:83
Definition: window_listener.h:10
Definition: window_notifier.h:122
void notify_key_released(key k)
void add_key_pressed_event(Event &&event)
Definition: window_notifier.h:148
void add_button_released_event(Event &&event)
Definition: window_notifier.h:169
void add_resize_event(Event &&event)
Definition: window_notifier.h:141
std::vector< window_listener * > m_window_listeners
Definition: window_notifier.h:123
void notify_wheel_right()
void add_button_pressed_event(Event &&event)
Definition: window_notifier.h:162
std::vector< std::unique_ptr< base_holder > > m_events
Definition: window_notifier.h:124
void notify_cursor_moved(double x, double y)
void add_cursor_moved_event(Event &&event)
Definition: window_notifier.h:176
void notify_resize(int width, int height)
void add_wheel_up_event(Event &&event)
Definition: window_notifier.h:183
void add_listener(window_listener &l)
void add_wheel_down_event(Event &&event)
Definition: window_notifier.h:190
void notify_key_pressed(key k)
void add_key_released_event(Event &&event)
Definition: window_notifier.h:155
void notify_button_pressed(button b)
void notify_button_released(button b)
const auto & get() const
Definition: holder.h:26