Logo FS-Skia-UI

CustomControlDefinition<'msg> Type

The author-supplied definition of a custom control: measure/render/layout/hit-test/event callbacks plus optional `Accessibility` and `Diagnostics`, keyed by `Id`.

Record fields

Record Field Description

Accessibility

Full Usage: Accessibility

Field type: AccessibilityMetadata option
Field type: AccessibilityMetadata option

Clip

Full Usage: Clip

Field type: (float * float * float * float) option
Field type: (float * float * float * float) option

Diagnostics

Full Usage: Diagnostics

Field type: ControlDiagnostic list
Field type: ControlDiagnostic list

Draw

Full Usage: Draw

Field type: unit -> Scene
Field type: unit -> Scene

Effects

Full Usage: Effects

Field type: string list
Field type: string list

Event

Full Usage: Event

Field type: ControlEvent -> 'msg option
Field type: ControlEvent -> 'msg option

HitTest

Full Usage: HitTest

Field type: float -> float -> bool
Field type: float -> float -> bool

Id

Full Usage: Id

Field type: ControlId
Field type: ControlId

Layout

Full Usage: Layout

Field type: unit -> LayoutNode
Field type: unit -> LayoutNode

Measure

Full Usage: Measure

Field type: unit -> float * float
Field type: unit -> float * float

Render

Full Usage: Render

Field type: unit -> Scene
Field type: unit -> Scene

Type something to start searching.