vncoreui / com.venuenext.vncoreui.ui / TextDrawable

TextDrawable

class TextDrawable : ShapeDrawable

Types

Builder

class Builder : IConfigBuilder, IShapeBuilder, IBuilder

IBuilder

interface IBuilder

IConfigBuilder

interface IConfigBuilder

IShapeBuilder

interface IShapeBuilder

Constructors

<init>

TextDrawable(builder: Builder)

Properties

borderPaint

val borderPaint: Paint

borderThickness

val borderThickness: Int

color

val color: Int

context

val context: Context?

fontSize

val fontSize: Int

height

val height: Int

radius

val radius: Float

shape

val shape: RectShape?

text

val text: String?

textPaint

val textPaint: Paint

width

val width: Int

Functions

draw

fun draw(canvas: Canvas): Unit

getIntrinsicHeight

fun getIntrinsicHeight(): Int

getIntrinsicWidth

fun getIntrinsicWidth(): Int

getOpacity

fun getOpacity(): Int

setAlpha

fun setAlpha(alpha: Int): Unit

setColorFilter

fun setColorFilter(cf: ColorFilter?): Unit

Companion Object Functions

builder

fun builder(): IShapeBuilder