Files
ghostgram/submodules/TelegramUI/Components/MediaEditor/Sources/Drawing/DrawingEntity.swift
T

23 lines
543 B
Swift

import Foundation
import UIKit
public protocol DrawingEntity: AnyObject {
var uuid: UUID { get set }
var isAnimated: Bool { get }
var center: CGPoint { get }
var isMedia: Bool { get }
var lineWidth: CGFloat { get set }
var color: DrawingColor { get set }
var scale: CGFloat { get set }
func duplicate(copy: Bool) -> DrawingEntity
var renderImage: UIImage? { get set }
var renderSubEntities: [DrawingEntity]? { get set }
func isEqual(to other: DrawingEntity) -> Bool
}