Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 3.48 KB

README.md

File metadata and controls

45 lines (35 loc) · 3.48 KB

libui / uiControl

uiControl

class uiControl : CStructVar

Types

Name Summary
Companion companion object Companion : Type

Constructors

Name Summary
uiControl uiControl(rawPtr: NativePtr)

Properties

Name Summary
Destroy var Destroy: CPointer<CFunction<(CPointer<uiControl>?) -> Unit>>?
Disable var Disable: CPointer<CFunction<(CPointer<uiControl>?) -> Unit>>?
Enable var Enable: CPointer<CFunction<(CPointer<uiControl>?) -> Unit>>?
Enabled var Enabled: CPointer<CFunction<(CPointer<uiControl>?) -> Int>>?
Handle var Handle: CPointer<CFunction<(CPointer<uiControl>?) -> uintptr_t>>?
Hide var Hide: CPointer<CFunction<(CPointer<uiControl>?) -> Unit>>?
OSSignature var OSSignature: uint32_t
Parent var Parent: CPointer<CFunction<(CPointer<uiControl>?) -> CPointer<uiControl>?>>?
SetParent var SetParent: CPointer<CFunction<(CPointer<uiControl>?, CPointer<uiControl>?) -> Unit>>?
Show var Show: CPointer<CFunction<(CPointer<uiControl>?) -> Unit>>?
Signature var Signature: uint32_t
Toplevel var Toplevel: CPointer<CFunction<(CPointer<uiControl>?) -> Int>>?
TypeSignature var TypeSignature: uint32_t
Visible var Visible: CPointer<CFunction<(CPointer<uiControl>?) -> Int>>?

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.