vncoreui / com.venuenext.vncoreui.ui / TextDrawable / Builder

Builder

class Builder : IConfigBuilder, IShapeBuilder, IBuilder

Constructors

<init>

Builder()

Properties

borderThickness

var borderThickness: Int

color

var color: Int

context

var context: Context?

font

var font: Typeface?

fontSize

var fontSize: Int

height

var height: Int

isBold

var isBold: Boolean

radius

var radius: Float

shape

var shape: RectShape?

text

var text: String?

textColor

var textColor: Int

toUpperCase

var toUpperCase: Boolean

width

var width: Int

Functions

beginConfig

fun beginConfig(): IConfigBuilder

bold

fun bold(): IConfigBuilder

build

fun build(context: Context, text: String, color: Int): TextDrawable

buildRect

fun buildRect(context: Context, text: String, color: Int): TextDrawable

buildRound

fun buildRound(context: Context, text: String, color: Int): TextDrawable

buildRoundRect

fun buildRoundRect(context: Context, text: String, color: Int, radius: Int): TextDrawable

endConfig

fun endConfig(): IShapeBuilder

fontSize

fun fontSize(size: Int): IConfigBuilder

height

fun height(height: Int): IConfigBuilder

rect

fun rect(): IBuilder

round

fun round(): IBuilder

roundRect

fun roundRect(radius: Int): IBuilder

textColor

fun textColor(color: Int): IConfigBuilder

toUpperCase

fun toUpperCase(): IConfigBuilder

useFont

fun useFont(font: Typeface): IConfigBuilder

width

fun width(width: Int): IConfigBuilder

withBorder

fun withBorder(thickness: Int): IConfigBuilder