Paste action. More...
#include <mouse_action.hpp>


Public Member Functions | |
| mouse_action_paste (const map_fragment &paste, const CKey &key, common_palette &palette) | |
| bool | has_context_menu () const |
| std::set< map_location > | affected_hexes (editor_display &disp, const map_location &hex) |
| Show an outline of where the paste will go. | |
| editor_action * | click_left (editor_display &disp, int x, int y) |
| Return a paste with offset action. | |
| editor_action * | click_right (editor_display &disp, int x, int y) |
| Right click does nothing for now. | |
| virtual void | set_mouse_overlay (editor_display &disp) |
| Set the mouse overlay for this action. | |
Protected Attributes | |
| const map_fragment & | paste_ |
| Reference to the buffer used for pasting (e.g. | |
Paste action.
No dragging capabilities.
Definition at line 323 of file mouse_action.hpp.
| editor::mouse_action_paste::mouse_action_paste | ( | const map_fragment & | paste, | |
| const CKey & | key, | |||
| common_palette & | palette | |||
| ) | [inline] |
Definition at line 326 of file mouse_action.hpp.
| std::set< map_location > editor::mouse_action_paste::affected_hexes | ( | editor_display & | disp, | |
| const map_location & | hex | |||
| ) | [virtual] |
Show an outline of where the paste will go.
Reimplemented from editor::mouse_action.
Definition at line 352 of file mouse_action.cpp.
| editor_action * editor::mouse_action_paste::click_left | ( | editor_display & | disp, | |
| int | x, | |||
| int | y | |||
| ) | [virtual] |
Return a paste with offset action.
Implements editor::mouse_action.
Definition at line 358 of file mouse_action.cpp.
| editor_action * editor::mouse_action_paste::click_right | ( | editor_display & | disp, | |
| int | x, | |||
| int | y | |||
| ) | [virtual] |
Right click does nothing for now.
Implements editor::mouse_action.
Definition at line 365 of file mouse_action.cpp.
| bool editor::mouse_action_paste::has_context_menu | ( | ) | const [virtual] |
Reimplemented from editor::mouse_action.
Definition at line 347 of file mouse_action.cpp.
| void editor::mouse_action_paste::set_mouse_overlay | ( | editor_display & | disp | ) | [virtual] |
Set the mouse overlay for this action.
Defaults to an empty overlay.
Reimplemented from editor::mouse_action.
Definition at line 370 of file mouse_action.cpp.
const map_fragment& editor::mouse_action_paste::paste_ [protected] |
Reference to the buffer used for pasting (e.g.
the clipboard)
Definition at line 354 of file mouse_action.hpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:32 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |