Restructure how tool data is stored

This commit is contained in:
Yousef Khadadeh 2025-08-02 20:10:33 +03:00
parent d07eaf4207
commit 90374da228
37 changed files with 790 additions and 801 deletions

View file

@ -3,6 +3,7 @@
#include "../Server/CommandList.hpp"
#include "../MainProgram.hpp"
#include "../DrawData.hpp"
#include "DrawingProgramToolBase.hpp"
#include <include/core/SkAlphaType.h>
#include <include/core/SkCanvas.h>
#include <include/core/SkColor.h>
@ -21,10 +22,14 @@
#include <Helpers/Logger.hpp>
InkDropperTool::InkDropperTool(DrawingProgram& initDrawP):
drawP(initDrawP)
DrawingProgramToolBase(initDrawP)
{
}
DrawingProgramToolType InkDropperTool::get_type() {
return DrawingProgramToolType::INKDROPPER;
}
void InkDropperTool::gui_toolbox() {
Toolbar& t = drawP.world.main.toolbar;
t.gui.push_id("Color select tool");
@ -79,3 +84,6 @@ bool InkDropperTool::prevent_undo_or_redo() {
void InkDropperTool::draw(SkCanvas* canvas, const DrawData& drawData) {
}
void InkDropperTool::reset_tool() {
}