supertux
Public Member Functions | Static Public Attributes | List of all members
EditorOverlayWidget Class Referencefinal

A widget that is drawn on top of the current sector and handles mouse input and tool drawing. More...

#include <overlay_widget.hpp>

Inheritance diagram for EditorOverlayWidget:
Widget

Public Member Functions

 EditorOverlayWidget (Editor &editor)
 
virtual void draw (DrawingContext &) 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_up (const SDL_KeyboardEvent &key) override
 
virtual bool on_key_down (const SDL_KeyboardEvent &key) override
 
void update_pos ()
 
void delete_markers ()
 
void update_node_iterators ()
 
void on_level_change ()
 
void edit_path (Path *path, GameObject *new_marked_object=nullptr)
 
- 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)
 

Static Public Attributes

static bool render_background = true
 
static bool render_grid = true
 
static bool snap_to_grid = false
 
static int selected_snap_grid_size = 3
 

Detailed Description

A widget that is drawn on top of the current sector and handles mouse input and tool drawing.


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