|
supertux
|
A little virtual joystick that can be used to scroll around the level with the mouse. More...
#include <scroller_widget.hpp>
Public Member Functions | |
| EditorScrollerWidget (Editor &editor) | |
| virtual void | draw (DrawingContext &context) override |
| virtual void | update (float dt_sec) override |
| virtual bool | on_mouse_button_up (const SDL_MouseButtonEvent &button) override |
| virtual bool | on_mouse_button_down (const SDL_MouseButtonEvent &button) override |
| virtual bool | on_mouse_motion (const SDL_MouseMotionEvent &motion) override |
| virtual bool | on_key_down (const SDL_KeyboardEvent &key) override |
| void | draw_arrow (DrawingContext &, const Vector &pos) |
| bool | can_scroll () const |
Public Member Functions inherited from Widget | |
| virtual bool | event (const SDL_Event &ev) |
| virtual void | setup () |
| virtual void | resize () |
| virtual bool | on_mouse_wheel (const SDL_MouseWheelEvent &wheel) |
| virtual bool | on_key_up (const SDL_KeyboardEvent &key) |
Static Public Attributes | |
| static bool | rendered = true |
A little virtual joystick that can be used to scroll around the level with the mouse.
1.8.12