kyrie / com.github.alexjlockwood.kyrie / KyrieDrawable / Builder

Builder

class Builder

Builder class used to create a KyrieDrawable.

Functions

alpha

fun alpha(initialAlpha: Float): KyrieDrawable.Builder
fun alpha(vararg animations: Animation<*, Float>): KyrieDrawable.Builder
fun alpha(animations: List<Animation<*, Float>>): KyrieDrawable.Builder

autoMirrored

fun autoMirrored(isAutoMirrored: Boolean): KyrieDrawable.Builder

build

fun build(): KyrieDrawable

child

fun child(node: Node): KyrieDrawable.Builder
fun child(builder: Node.Builder<*>): KyrieDrawable.Builder

dimensions

fun dimensions(width: Int, height: Int): KyrieDrawable.Builder

height

fun height(height: Int): KyrieDrawable.Builder

tint

fun tint(tint: Int): KyrieDrawable.Builder

tintList

fun tintList(tintList: ColorStateList?): KyrieDrawable.Builder

tintMode

fun tintMode(tintMode: Mode): KyrieDrawable.Builder

viewport

fun viewport(viewportWidth: Float, viewportHeight: Float): KyrieDrawable.Builder

viewportHeight

fun viewportHeight(viewportHeight: Float): KyrieDrawable.Builder

viewportWidth

fun viewportWidth(viewportWidth: Float): KyrieDrawable.Builder

width

fun width(width: Int): KyrieDrawable.Builder

Extension Functions

circle

fun KyrieDrawable.Builder.circle(init: CircleNode.Builder.() -> Unit): Unit

clipPath

fun KyrieDrawable.Builder.clipPath(init: ClipPathNode.Builder.() -> Unit): Unit

ellipse

fun KyrieDrawable.Builder.ellipse(init: EllipseNode.Builder.() -> Unit): Unit

group

fun KyrieDrawable.Builder.group(init: GroupNode.Builder.() -> Unit): Unit

line

fun KyrieDrawable.Builder.line(init: LineNode.Builder.() -> Unit): Unit

path

fun KyrieDrawable.Builder.path(init: PathNode.Builder.() -> Unit): Unit

rectangle

fun KyrieDrawable.Builder.rectangle(init: RectangleNode.Builder.() -> Unit): Unit