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 SelectionClipboard extension: Copy, Copy Merged, Paste.
|
||||
public:
|
||||
// Ctrl+X: copy, then clear the selected pixels.
|
||||
void cutSelection(std::function<void()> done = {});
|
||||
// A copy above the layer, then placed; never a folder.
|
||||
void duplicateActiveLayer();
|
||||
bool duplicateLayer(QUuid id, std::optional<QUuid> parent, std::optional<QUuid> above = std::nullopt, bool atBottom = false);
|
||||
std::optional<QRectF> selectionCopyRegion() const;
|
||||
bool canCopyPixels() const;
|
||||
std::optional<CopiedPixels> renderSelectedPixels(const ImageLayer &layer, bool mask) const;
|
||||
bool canCopyMerged() const;
|
||||
std::optional<CopiedPixels> renderMergedPixels() const;
|
||||
void copyMergedSelection();
|
||||
void copySelection();
|
||||
bool canPaste() const;
|
||||
void paste();
|
||||
void layerViaCopy();
|
||||
// A shape or text style is tied to its asset.
|
||||
void addPixelLayer(const QImage &image, QPointF origin, const QString &name, const QString &editName, bool dropsSelection = true,
|
||||
const std::optional<LayerShapeStyle> &shape = std::nullopt, const std::optional<LayerTextStyle> &text = std::nullopt);
|
||||
QString nextLayerName() const;
|
||||
|
||||
private:
|
||||
void store(const CopiedPixels &copied);
|
||||
Reference in new issue
Block a user