mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-26 16:36:42 +00:00
Replace image editor.
This commit is contained in:
30
src/org/thoughtcrime/securesms/imageeditor/EditSession.java
Normal file
30
src/org/thoughtcrime/securesms/imageeditor/EditSession.java
Normal file
@@ -0,0 +1,30 @@
|
||||
package org.thoughtcrime.securesms.imageeditor;
|
||||
|
||||
import android.graphics.Matrix;
|
||||
import android.graphics.PointF;
|
||||
|
||||
import org.thoughtcrime.securesms.imageeditor.model.EditorElement;
|
||||
|
||||
/**
|
||||
* Represents an underway edit of the image.
|
||||
* <p>
|
||||
* Accepts new touch positions, new touch points, released touch points and when complete can commit the edit.
|
||||
* <p>
|
||||
* Examples of edit session implementations are, Drag, Draw, Resize:
|
||||
* <p>
|
||||
* {@link ElementDragEditSession} for dragging with a single finger.
|
||||
* {@link ElementScaleEditSession} for resize/dragging with two fingers.
|
||||
* {@link DrawingSession} for drawing with a single finger.
|
||||
*/
|
||||
interface EditSession {
|
||||
|
||||
void movePoint(int p, PointF point);
|
||||
|
||||
EditorElement getSelected();
|
||||
|
||||
EditSession newPoint(Matrix newInverse, PointF point, int p);
|
||||
|
||||
EditSession removePoint(Matrix newInverse, int p);
|
||||
|
||||
void commit();
|
||||
}
|
||||
Reference in New Issue
Block a user