supertux
Public Types | Public Member Functions | List of all members
EditorToolboxWidget Class Referencefinal

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>

Inheritance diagram for EditorToolboxWidget:
Widget

Public Types

enum  HoveredItem {
  NONE, TILEGROUP, OBJECTS, TILE,
  TOOL
}
 
enum  TileScrolling { NONE, UP, DOWN }
 
enum  InputType { NONE, TILE, OBJECT }
 

Public Member Functions

 EditorToolboxWidget (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_mouse_wheel (const SDL_MouseWheelEvent &wheel) override
 
virtual void setup () override
 
virtual void resize () override
 
void update_mouse_icon ()
 
int get_tileselect_select_mode () const
 
int get_tileselect_move_mode () const
 
void select_tilegroup (int id)
 
void select_objectgroup (int id)
 
const ObjectInfoget_object_info () const
 
InputType get_input_type () const
 
void set_input_type (InputType input_type)
 
std::string get_object () const
 
TileSelectionget_tiles () const
 
- Public Member Functions inherited from Widget
virtual bool event (const SDL_Event &ev)
 
virtual bool on_key_up (const SDL_KeyboardEvent &key)
 
virtual bool on_key_down (const SDL_KeyboardEvent &key)
 

Detailed Description

The toolbox is on the right side of the screen and allows selection of the current tool and contains the object or tile palette.


The documentation for this class was generated from the following files: