Extract canvas object draw and brush panel services
This commit is contained in:
26
src/legacy_brush_panel_services.h
Normal file
26
src/legacy_brush_panel_services.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
class NodePanelBrush;
|
||||
|
||||
namespace pp::panopainter {
|
||||
|
||||
class LegacyBrushPanelServices final {
|
||||
public:
|
||||
explicit LegacyBrushPanelServices(NodePanelBrush& panel) noexcept;
|
||||
|
||||
int find_brush(const std::string& name) const;
|
||||
std::string get_texture_path(int index) const;
|
||||
std::string get_thumb_path(int index) const;
|
||||
bool save();
|
||||
bool restore();
|
||||
void clear();
|
||||
void scan();
|
||||
void reload();
|
||||
|
||||
private:
|
||||
NodePanelBrush& panel_;
|
||||
};
|
||||
|
||||
} // namespace pp::panopainter
|
||||
Reference in New Issue
Block a user