Package ly.img.android.pesdk.kotlin_extension

Types

ColorValue
Link copied to clipboard
typealias ColorValue = Int
Float2
Link copied to clipboard
typealias Float2 = FloatArray
Float3
Link copied to clipboard
typealias Float3 = Float2
Float4
Link copied to clipboard
typealias Float4 = Float3
GlColor
Link copied to clipboard
typealias GlColor = FloatArray
ImageDrawMode
Link copied to clipboard
enum ImageDrawMode : Enum<ImageDrawMode>
Int2
Link copied to clipboard
typealias Int2 = IntArray
IntentHelper
Link copied to clipboard
object IntentHelper
KParcelable
Link copied to clipboard

Created by svennahler on 17.04.18.

interface KParcelable
RectCords
Link copied to clipboard
typealias RectCords = Float4
Size
Link copied to clipboard
typealias Size = Float2
Size2
Link copied to clipboard
typealias Size2 = Float4
SizeInt
Link copied to clipboard
typealias SizeInt = Int2

Functions

binarySearch
Link copied to clipboard
inline fun binarySearch(from: Int, to: Int, expected: Int, searchResult: (Int) -> Int): Int
butMax
Link copied to clipboard
infix fun Double.butMax(max: Double): <ERROR CLASS>
infix fun Float.butMax(max: Float): <ERROR CLASS>
infix fun Int.butMax(max: Int): <ERROR CLASS>
infix fun Long.butMax(max: Long): <ERROR CLASS>
butMin
Link copied to clipboard
infix fun Double.butMin(min: Double): <ERROR CLASS>
infix fun Float.butMin(min: Float): <ERROR CLASS>
infix fun Int.butMin(min: Int): <ERROR CLASS>
infix fun Long.butMin(min: Long): <ERROR CLASS>
ceilToInt
Link copied to clipboard
inline fun Double.ceilToInt(): <ERROR CLASS>
inline fun Float.ceilToInt(): <ERROR CLASS>
ceilToLong
Link copied to clipboard
inline fun Double.ceilToLong(): <ERROR CLASS>
ColorValue
Link copied to clipboard
inline fun ColorValue(value: Long): Int
inline fun ColorValue(alpha: Float, red: Int, green: Int, blue: Int): Int
inline fun ColorValue(alpha: Int, red: Int, green: Int, blue: Int): Int
configure
Link copied to clipboard
inline fun <T> PhotoEditorSettingsList.configure(crossinline block: (T) -> Unit): <ERROR CLASS>
inline fun <T> VideoEditorSettingsList.configure(crossinline block: (T) -> Unit): <ERROR CLASS>
continueWithExceptions
Link copied to clipboard
inline fun <X> continueWithExceptions(block: () -> X): X?
copyFrom
Link copied to clipboard
inline fun FloatArray.copyFrom(from: FloatArray): FloatArray
copyToGlColor
Link copied to clipboard
inline fun Int.copyToGlColor(glColor: FloatArray)
countTrue
Link copied to clipboard
inline fun countTrue(vararg booleans: BooleanArray): Int
createGlColor
Link copied to clipboard
inline fun Int.createGlColor(): FloatArray
createNinePatch
Link copied to clipboard
fun <ERROR CLASS>.createNinePatch(capInsets: <ERROR CLASS>): <ERROR CLASS>
downscaleToMultipleOf
Link copied to clipboard
infix inline fun Double.downscaleToMultipleOf(v: Double): Double
infix inline fun Float.downscaleToMultipleOf(v: Float): Float
infix inline fun Int.downscaleToMultipleOf(v: Int): Int
infix inline fun Long.downscaleToMultipleOf(v: Long): Long
draw
Link copied to clipboard

Created by svennahler on 05.04.18.

fun <ERROR CLASS>.draw(layout: <ERROR CLASS>)
drawImage
Link copied to clipboard
fun <ERROR CLASS>.drawImage(image: <ERROR CLASS>, destination: <ERROR CLASS>, paint: <ERROR CLASS>, mode: ImageDrawMode, capInsets: <ERROR CLASS>?)
Float2
Link copied to clipboard
inline fun Float2(): FloatArray
inline fun Float2(x: Float, y: Float): FloatArray
Float3
Link copied to clipboard
inline fun Float3(): FloatArray
inline fun Float3(x: Float, y: Float, z: Float): FloatArray
Float4
Link copied to clipboard
inline fun Float4(): FloatArray
inline fun Float4(x: Float, y: Float, z: Float, w: Float): FloatArray
GlColor
Link copied to clipboard
inline fun GlColor(red: Int, green: Int, blue: Int, alpha: Float): FloatArray
inline fun GlColor(red: Int, green: Int, blue: Int, alpha: Int): FloatArray
hasEmptySize
Link copied to clipboard
inline fun IntArray.hasEmptySize(): Boolean
hasFlag
Link copied to clipboard
infix inline fun Int.hasFlag(flag: Int): Boolean
infix inline fun Long.hasFlag(flag: Long): Boolean
hasInvertedFlag
Link copied to clipboard
infix inline fun Int.hasInvertedFlag(flag: Int): Boolean
infix inline fun Long.hasInvertedFlag(flag: Long): Boolean
ifNotFinite
Link copied to clipboard
infix inline fun Double.ifNotFinite(value: Double): Double
infix inline fun Float.ifNotFinite(value: Float): Float
isNotFinite
Link copied to clipboard
inline fun Float.isNotFinite(): <ERROR CLASS>
isZero
Link copied to clipboard
fun <ERROR CLASS>.isZero(): Boolean
layerReadLock
Link copied to clipboard
inline fun <ERROR CLASS>.layerReadLock(block: (List<<ERROR CLASS>>) -> Unit)
lineHeigth
Link copied to clipboard
fun <ERROR CLASS>.lineHeigth(): Float
loopAsLongNotNull
Link copied to clipboard
inline fun <T> T.loopAsLongNotNull(crossinline block: (T) -> T?): T
mapPointsBy
Link copied to clipboard
inline fun FloatArray.mapPointsBy(crossinline instructions: (<ERROR CLASS>) -> Unit): FloatArray
mapPointsWith
Link copied to clipboard
inline fun FloatArray.mapPointsWith(transformation: <ERROR CLASS>): FloatArray
mapRectBy
Link copied to clipboard
inline fun <ERROR CLASS>.mapRectBy(crossinline instructions: (<ERROR CLASS>) -> Unit): <ERROR CLASS>
parcelableCreator
Link copied to clipboard
inline fun <T> parcelableCreator(crossinline create: (<ERROR CLASS>) -> T): Any
pow2
Link copied to clipboard
inline fun Double.pow2(): Double
inline fun Float.pow2(): Float
inline fun Int.pow2(): Int
inline fun Long.pow2(): Long
readSomething
Link copied to clipboard
fun <ERROR CLASS>.readSomething(persistentClass: Class<*>?): Any?
RectCords
Link copied to clipboard
inline fun RectCords(): FloatArray
inline fun RectCords(x1: Float, y1: Float, x2: Float, y2: Float, x3: Float, y3: Float, x4: Float, y4: Float): FloatArray
replacedTask
Link copied to clipboard
inline fun replacedTask(group: String, crossinline task: () -> Unit)
requireAssetById
Link copied to clipboard

Created by svennahler on 10.04.18.

fun <T : AbstractAsset> AssetConfig.requireAssetById(classRef: KClass<T>, id: String): T
scaleAll
Link copied to clipboard
inline fun FloatArray.scaleAll(value: Float)
scaleToMultipleOf
Link copied to clipboard
infix inline fun Double.scaleToMultipleOf(v: Double): Double
infix inline fun Float.scaleToMultipleOf(v: Float): Float
infix inline fun Int.scaleToMultipleOf(v: Int): Int
infix inline fun Long.scaleToMultipleOf(v: Long): Long
sequencedTask
Link copied to clipboard
inline fun sequencedTask(group: String, crossinline task: () -> Unit)
set
Link copied to clipboard
inline fun FloatArray.set(argbAndroidColor: Int): FloatArray
inline fun FloatArray.set(x: Float, y: Float): FloatArray
inline fun FloatArray.set(x: Float, y: Float, z: Float): FloatArray
inline fun FloatArray.set(x: Float, y: Float, x2: Float, y2: Float): FloatArray
inline fun FloatArray.set(r: Int, g: Int, b: Int, a: Float): FloatArray
inline fun FloatArray.set(r: Int, g: Int, b: Int, a: Int): FloatArray
inline fun FloatArray.set(x1: Float, y1: Float, x2: Float, y2: Float, x3: Float, y3: Float, x4: Float, y4: Float): FloatArray
setEmptySize
Link copied to clipboard
inline fun IntArray.setEmptySize(): IntArray
setFalseIfTrueAndDo
Link copied to clipboard
infix inline fun AtomicBoolean.setFalseIfTrueAndDo(block: () -> Unit)
setTintColorFilter
Link copied to clipboard
fun <ERROR CLASS>.setTintColorFilter(color: Int)
setTrueIfFalseAndDo
Link copied to clipboard
infix inline fun AtomicBoolean.setTrueIfFalseAndDo(block: () -> Unit)
setValue
Link copied to clipboard
inline fun IntArray.setValue(x: Int, y: Int): IntArray
Size
Link copied to clipboard
inline fun Size(width: Float, height: Float): FloatArray
Size2
Link copied to clipboard
inline fun Size2(firstWidth: Float, firstHeight: Float, secondWidth: Float, secondHeight: Float): FloatArray
SizeInt
Link copied to clipboard
inline fun SizeInt(width: Int, height: Int): IntArray
upscaleToMultipleOf
Link copied to clipboard
infix inline fun Double.upscaleToMultipleOf(v: Double): Double
infix inline fun Float.upscaleToMultipleOf(v: Float): Float
infix inline fun Int.upscaleToMultipleOf(v: Int): Int
infix inline fun Long.upscaleToMultipleOf(v: Long): Long
waitUntilFalse
Link copied to clipboard
inline fun AtomicBoolean.waitUntilFalse()
waitUntilTrue
Link copied to clipboard
inline fun AtomicBoolean.waitUntilTrue()
writeSomething
Link copied to clipboard
fun <ERROR CLASS>.writeSomething(value: Any?, persistentClass: Class<*>?)
yOffset
Link copied to clipboard
fun <ERROR CLASS>.yOffset(): Float

Properties

a
Link copied to clipboard
var FloatArray.a: Float
b
Link copied to clipboard
var FloatArray.b: Float
firstHeight
Link copied to clipboard
var FloatArray.firstHeight: Float
firstWidth
Link copied to clipboard
var FloatArray.firstWidth: Float
g
Link copied to clipboard
var FloatArray.g: Float
height
Link copied to clipboard
var IntArray.height: Int
height
Link copied to clipboard
var FloatArray.height: Float
NO_COLOR
Link copied to clipboard
const val NO_COLOR: Int
r
Link copied to clipboard
var FloatArray.r: Float
secondHeight
Link copied to clipboard
var FloatArray.secondHeight: Float
secondWidth
Link copied to clipboard
var FloatArray.secondWidth: Float
w
Link copied to clipboard
var FloatArray.w: Float
width
Link copied to clipboard
var IntArray.width: Int
width
Link copied to clipboard
var FloatArray.width: Float
x
Link copied to clipboard
var FloatArray.x: Float
x
Link copied to clipboard
var IntArray.x: Int
x1
Link copied to clipboard
var FloatArray.x1: Float
x2
Link copied to clipboard
var FloatArray.x2: Float
x3
Link copied to clipboard
var FloatArray.x3: Float
x4
Link copied to clipboard
var FloatArray.x4: Float
y
Link copied to clipboard
var FloatArray.y: Float
y
Link copied to clipboard
var IntArray.y: Int
y1
Link copied to clipboard
var FloatArray.y1: Float
y2
Link copied to clipboard
var FloatArray.y2: Float
y3
Link copied to clipboard
var FloatArray.y3: Float
y4
Link copied to clipboard
var FloatArray.y4: Float
z
Link copied to clipboard
var FloatArray.z: Float