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:
Inheritance graph
[legend]
Collaboration diagram for EditorToolboxWidget:
Collaboration graph
[legend]

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 ()
 
EditorTileboxget_tilebox () const
 
bool has_mouse_focus () const
 
- Public Member Functions inherited from Widget
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)
 

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.

Member Function Documentation

◆ on_mouse_motion()

bool EditorToolboxWidget::on_mouse_motion ( const SDL_MouseMotionEvent &  motion)
overridevirtual

Tool bar

Tilebox

Reimplemented from Widget.


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