OmaPhoto 1.0.0: the Linux port of Compositor
A layered image editor for Linux and Omarchy, ported from Compositor (github.com/robbietilton/Compositor), whose Swift source is its specification. It reads and writes Compositor's .comp projects. Packages for Ubuntu, Fedora and Arch come from the release workflow; scripts/install/ holds one install script per distribution family, and flake.nix serves NixOS. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
commit
c864304695
564 files changed
+100804
No files matched your search
@@ -0,0 +1,24 @@
|
||||
// Swift's EditorSession+Brush extension: a stroke from press to commit.
|
||||
public:
|
||||
bool canPaint() const;
|
||||
std::unique_ptr<BrushStroke> makeRasterEdit(const ImageLayer &layer, const BrushSettings &settings = BrushSettings()) const;
|
||||
void beginBrush(QPointF point);
|
||||
void continueBrush(QPointF point);
|
||||
// Where a Shift-click's line starts; nil on another target.
|
||||
std::optional<QPointF> shiftLineStart() const;
|
||||
void cancelBrush();
|
||||
// Mouse-up's own call; false while busy.
|
||||
bool finishBrushImmediately();
|
||||
void finishBrush();
|
||||
void commitPaintSnapshot(const BrushStroke &stroke);
|
||||
// Off the UI thread; `done` follows the step or refusal.
|
||||
void commitRasterEdit(std::shared_ptr<const BrushStroke> stroke, const QString &name, std::function<void()> alsoApply = {},
|
||||
std::function<void()> done = {});
|
||||
bool usesOpacityKeys() const;
|
||||
// Digits set 10%…100%; two quick ones, an exact value.
|
||||
void typeOpacityDigit(int digit, std::optional<double> time = std::nullopt);
|
||||
void changeBrushHardness(bool increase);
|
||||
void changeBrushSize(bool increase);
|
||||
|
||||
private:
|
||||
void finishRasterCommit();
|
||||
Reference in new issue
Block a user