Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 2.71 KB

File metadata and controls

38 lines (28 loc) · 2.71 KB

libui / uiDrawStrokeParams

uiDrawStrokeParams

class uiDrawStrokeParams : CStructVar

Types

Name Summary
Companion companion object Companion : Type

Constructors

Name Summary
uiDrawStrokeParams uiDrawStrokeParams(rawPtr: NativePtr)

Properties

Name Summary
Cap var Cap: uiDrawLineCap
DashPhase var DashPhase: Double
Dashes var Dashes: CPointer<DoubleVar>?
Join var Join: uiDrawLineJoin
MiterLimit var MiterLimit: Double
NumDashes var NumDashes: size_t
Thickness var Thickness: Double

Extension functions

Name Summary
fill fun DrawContext.fill(mode: uiDrawFillMode, brush: Brush, block: Path.() -> Unit)
fun DrawContext.fill(brush: Brush, block: Path.() -> Unit)
Draw a path filled with a color.
stroke fun DrawContext.stroke(mode: uiDrawFillMode, brush: Brush, stroke: Stroke, block: Path.() -> Unit)
fun DrawContext.stroke(brush: Brush, stroke: Stroke, block: Path.() -> Unit)
Draw a path in the context.
text fun DrawContext.text(string: AttributedString, defaultFont: Font, width: Double, align: uiDrawTextAlign, x: Double, y: Double)
draws formatted text with the top-left point at (x, y).
transform fun DrawContext.transform(block: Matrix.() -> Unit)
Apply a different transform matrix to the context.