Skip to main content

Module pickers

Module pickers 

Source
Expand description

Native productivity picker-dialog foundation.

The always-compiled, backend-agnostic data vocabulary shared by the ColorDialog and FontDialog families (docs/widget-expansion-roadmap.md sections 12-14): the additive Rgba colour representation, the portable FontDescriptor/FontEffects pair, the serializable dialog preferences (ColorDialogData, FontDialogData) with their validation rules, and the typed PickerError set.

No widget, Ui method, backend call, or native dialog lives here. The shared API (WidgetKind + setters), events, and Mock fixtures land with the colour and font picker work, and the accepted/cancelled answer is the documented Option<T> event payload (None = cancelled) plus typed capability errors, not a separate token type.

Validation stays in the shared tier on purpose: the palette cap and the font size range behave identically on every lane, even where the native dialog cannot restrict itself (the roadmap’s F2 note about font_dialog_size_range).

Structs§

ColorDialogData
Serializable preferences and current state of a colour dialog (C1-C2).
FontDescriptor
A portable font description: family, size, weight, and slant.
FontDialogData
Serializable preferences and current state of a font dialog (F1-F2).
FontEffects
Optional font effects a dialog can offer (capability group F2).
Rgba
A colour with an alpha channel (8 bits per channel).

Enums§

FontWeight
Font weight steps available to the portable font descriptor.
PickerError
Error returned by the shared picker-dialog validation rules.

Constants§

MAX_CUSTOM_COLORS
How many custom palette entries a colour dialog carries (wx parity).

Type Aliases§

PickerResult
Result type for the shared picker-dialog validation rules.