supertux
|
The toolbox is on the right side of the screen and allows selection of the current tool and contains the object or tile palette. More...
#include <toolbox_widget.hpp>
Public Types | |
enum | HoveredItem { NONE, TILEGROUP, OBJECTS, TOOL, TILEBOX } |
Public Member Functions | |
EditorToolboxWidget (Editor &editor) | |
virtual void | draw (DrawingContext &context) 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_mouse_wheel (const SDL_MouseWheelEvent &wheel) override |
virtual void | setup () override |
virtual void | resize () override |
void | select_tilegroup (int id) |
void | select_objectgroup (int id) |
int | get_tileselect_select_mode () const |
int | get_tileselect_move_mode () const |
void | update_mouse_icon () |
EditorTilebox & | get_tilebox () const |
bool | has_mouse_focus () const |
![]() | |
virtual bool | event (const SDL_Event &ev) |
virtual void | update (float dt_sec) |
virtual bool | on_key_up (const SDL_KeyboardEvent &key) |
virtual bool | on_key_down (const SDL_KeyboardEvent &key) |
The toolbox is on the right side of the screen and allows selection of the current tool and contains the object or tile palette.
|
overridevirtual |