mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:47:45 +00:00
PixelPaint: Add point_position_to_preferred_cell method to Tool
This method is used to point a position at the preferred pixel of the image. Certain tools may want to specify a different preferred pixel for the same input position.
This commit is contained in:
parent
059a9c71a0
commit
3037f5b183
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ public:
|
|||
virtual void on_tool_activation() { }
|
||||
virtual GUI::Widget* get_properties_widget() { return nullptr; }
|
||||
virtual Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> cursor() { return Gfx::StandardCursor::None; }
|
||||
virtual Gfx::IntPoint point_position_to_preferred_cell(Gfx::FloatPoint const& position) const { return position.to_type<int>(); }
|
||||
|
||||
void clear() { m_editor = nullptr; }
|
||||
void setup(ImageEditor&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue