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

A widget at the bottom of the screen for switching between tilemap layers and other non-movable GameObjects. More...

#include <layers_widget.hpp>

Inheritance diagram for EditorLayersWidget:
Inheritance graph
[legend]
Collaboration diagram for EditorLayersWidget:
Collaboration graph
[legend]

Public Types

enum  HoveredItem { NONE, SPAWNPOINTS, SECTOR, LAYERS }
 

Public Member Functions

 EditorLayersWidget (Editor &editor)
 
virtual void draw (DrawingContext &context) override
 
virtual void update (float dt_sec) override
 
virtual bool event (const SDL_Event &ev) 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 refresh ()
 
void refresh_sector_text ()
 
void refresh_layers ()
 
void sort_layers ()
 
void add_layer (GameObject *layer, bool initial=false)
 
void update_current_tip ()
 
bool has_mouse_focus () const
 
TileMapget_selected_tilemap () const
 
void set_selected_tilemap (TileMap *tilemap)
 
- Public Member Functions inherited from Widget
virtual bool on_key_up (const SDL_KeyboardEvent &key)
 
virtual bool on_key_down (const SDL_KeyboardEvent &key)
 

Detailed Description

A widget at the bottom of the screen for switching between tilemap layers and other non-movable GameObjects.


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