Files
OmaPhoto/src/Document/Distort+Session.h
T
雷电芽衣andClaude c864304695
Release / deb (push) Canceled after 0s
Release / rpm (push) Canceled after 0s
Release / arch (push) Canceled after 0s
Release / publish (push) Canceled after 0s
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>
2026-09-26 00:44:52 -04:00

15 lines
915 B
C++

// Swift's Distort extension: four corners dragged apart.
public:
void beginDistort();
void previewCorners(const Corners &corners);
std::optional<DistortPreview> distortPreview(const ImageLayer &layer) const;
// A layer's effects warped with the pending distortion.
std::optional<DistortWarp::Warped> distortedEffects(const ImageLayer &layer, const QImage &image, double inset) const;
// For a known target: the commit's, once the edit ends.
std::optional<DistortWarp::Warped> distortedEffects(const ImageLayer &layer, const QImage &image, double inset, const DistortTarget &target) const;
private:
std::optional<DistortTarget> distortTarget(const ImageLayer &layer, const TransformEdit &edit, const Corners &shape) const;
void commitDistort(const TransformEdit &edit, const Corners &shape);
void distort(int index, const LayerTransform &transform, const Corners &corners);