RectangleTool class
#include <Jazz2/Editor/Tools/TileTools.h>
Fills a rectangle with the stamp.
Base classes
- class StrokeTool
- Base of the tools that paint tiles.
Constructors, destructors, conversion operators
- RectangleTool(IToolHost& host) explicit
Public functions
- auto GetType() const -> EditorToolType override
- Returns the type.
- void OnPointerDown(const ToolPointer& pointer) override
- Called when the pointer is pressed over the view.
- void OnPointerMove(const ToolPointer& pointer) override
- Called when the pointer moves over the view, pressed or not.
- void OnPointerUp(const ToolPointer& pointer) override
- Called when the pointer is released.
- void Cancel() override
- Cancels what the tool is doing.
- auto IsBusy() const -> bool override
- Returns
trueif the tool is in the middle of something. - void DrawOverlay(Painter& painter, const ToolPointer& hover, bool hoverValid) override
- Draws what the tool shows over the view.
- auto GetHint() const -> StringView override
- Returns a hint of how the tool is used.
- void BuildOptions(ToolOptionsBuilder& builder) override
- Makes the options of the tool shown in the toolbar while it's chosen, none by default.