TextInBoundsDrawer

Created by svennahler on 14.06.17.

open class TextInBoundsDrawer

Constructors

TextInBoundsDrawer
Link copied to clipboard
open fun TextInBoundsDrawer()
TextInBoundsDrawer
Link copied to clipboard
open fun TextInBoundsDrawer(paint: TextPaint)

Types

WorkerSafe
Link copied to clipboard
open class WorkerSafe

Functions

draw
Link copied to clipboard
open fun draw(canvas: Canvas)
getEditTextFilterEmoji
Link copied to clipboard
open fun getEditTextFilterEmoji(): InputFilter
getHeight
Link copied to clipboard
open fun getHeight(): Float
getLineHeight
Link copied to clipboard
open fun getLineHeight(): Float
getRealBounds
Link copied to clipboard
open fun getRealBounds(rect: MultiRect): MultiRect
getTextPadding
Link copied to clipboard
open fun getTextPadding(): Float
getUnsafeLineHeight
Link copied to clipboard
open fun getUnsafeLineHeight(): Float
invalidate
Link copied to clipboard
open fun invalidate(setFixSize: Boolean)
isInWordBreakAllowed
Link copied to clipboard
open fun isInWordBreakAllowed(): Boolean
isUseRealWidth
Link copied to clipboard
open fun isUseRealWidth(): Boolean
obtainRealRectWithBounds
Link copied to clipboard
open fun obtainRealRectWithBounds(): MultiRect
pushStateToWorker
Link copied to clipboard
open fun pushStateToWorker()
resetBoundsToFitSize
Link copied to clipboard
open fun resetBoundsToFitSize(): Int
open fun resetBoundsToFitSize(max: Int): Int
searchAndSetAspectFit
Link copied to clipboard
open fun searchAndSetAspectFit(aspect: Float)
setInWordBreakAllowed
Link copied to clipboard
open fun setInWordBreakAllowed(allowInWordBreak: Boolean)
textContainsEmoji
Link copied to clipboard
open fun textContainsEmoji(source: String): Boolean

Properties

DEFAULT_RENDER_FONT_SIZE
Link copied to clipboard
val DEFAULT_RENDER_FONT_SIZE: Float
fontMetrics
Link copied to clipboard
private open val fontMetrics: FontMetrics
paint
Link copied to clipboard
private open var paint: TextPaint
text
Link copied to clipboard
private open var text: String
useRealWidth
Link copied to clipboard
private open var useRealWidth: Boolean
width
Link copied to clipboard
private open var width: Int
workerSafe
Link copied to clipboard
private open val workerSafe: TextInBoundsDrawer.WorkerSafe