# ferroui_controls_color_picker

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-color-picker/

**module** · [`ferroui-controls-color-picker`](/docs/0.5.0/api/ferroui-controls-color-picker/) · v0.5.0

```rust
module ferroui_controls_color_picker
```

ferroui-controls-color-picker

The colour picker library: the drop-down [`ColorPicker`](/docs/0.5.0/api/ferroui-controls-color-picker/struct-colorpicker/), the
[`ColorView`](/docs/0.5.0/api/ferroui-controls-color-picker/struct-colorview/) it presents, the primitives they are built from
(`ColorSpectrum`,
`ColorSlider`,
`ColorPreviewer`), the colour palettes, the
value converters of their control themes and the automation peer of the
spectrum.

The control themes are not part of the base themes: an application
includes the styles of the library for its theme, as upstream:

```xml
<StyleInclude Source="ferres://FerroUI.Controls.ColorPicker/Themes/Fluent/Fluent.xaml" />
```

The theme documents are compiled by the build of the crate (`build.rs`):
[`register_types`](/docs/0.5.0/api/ferroui-controls-color-picker/function-register_types/) registers the loader table of the compiled markup,
which answers a load of a document of the assembly
`FerroUI.Controls.ColorPicker` by its URI, and the build of an application
whose markup is compiled links an include of the styles to their compiled
markup. A compiled document is not an asset of the assembly, as upstream's
compiler removes a compiled resource; with the feature `document-assets`
the documents are embedded as assets too, which is what lets a document
loaded at run time include them (`build.rs` says why). The crate does not
link the run-time XAML loader.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.ColorPicker/lib.rs#L1)

## Contents

- [`automation`](/docs/0.5.0/api/ferroui-controls-color-picker/automation/) — module
- [`converters`](/docs/0.5.0/api/ferroui-controls-color-picker/converters/) — module
- [`primitives`](/docs/0.5.0/api/ferroui-controls-color-picker/primitives/) — module
- [`AlphaComponentPosition`](/docs/0.5.0/api/ferroui-controls-color-picker/enum-alphacomponentposition/) — enum
- [`ColorChangedEventArgs`](/docs/0.5.0/api/ferroui-controls-color-picker/struct-colorchangedeventargs/) — struct
- [`ColorComponent`](/docs/0.5.0/api/ferroui-controls-color-picker/enum-colorcomponent/) — enum
- [`ColorModel`](/docs/0.5.0/api/ferroui-controls-color-picker/enum-colormodel/) — enum
- [`FlatColor`](/docs/0.5.0/api/ferroui-controls-color-picker/enum-flatcolor/) — enum
- [`FlatColorPalette`](/docs/0.5.0/api/ferroui-controls-color-picker/struct-flatcolorpalette/) — struct
- [`FlatHalfColorPalette`](/docs/0.5.0/api/ferroui-controls-color-picker/struct-flathalfcolorpalette/) — struct
- [`FluentColorPalette`](/docs/0.5.0/api/ferroui-controls-color-picker/struct-fluentcolorpalette/) — struct
- [`IColorPalette`](/docs/0.5.0/api/ferroui-controls-color-picker/trait-icolorpalette/) — trait
- [`MaterialColor`](/docs/0.5.0/api/ferroui-controls-color-picker/enum-materialcolor/) — enum
- [`MaterialColorPalette`](/docs/0.5.0/api/ferroui-controls-color-picker/struct-materialcolorpalette/) — struct
- [`MaterialHalfColorPalette`](/docs/0.5.0/api/ferroui-controls-color-picker/struct-materialhalfcolorpalette/) — struct
- [`SixteenColorPalette`](/docs/0.5.0/api/ferroui-controls-color-picker/struct-sixteencolorpalette/) — struct
- [`ColorPicker`](/docs/0.5.0/api/ferroui-controls-color-picker/struct-colorpicker/) — struct
- [`ColorSpectrumComponents`](/docs/0.5.0/api/ferroui-controls-color-picker/enum-colorspectrumcomponents/) — enum
- [`ColorSpectrumShape`](/docs/0.5.0/api/ferroui-controls-color-picker/enum-colorspectrumshape/) — enum
- [`ColorView`](/docs/0.5.0/api/ferroui-controls-color-picker/struct-colorview/) — struct
- [`ColorViewImpl`](/docs/0.5.0/api/ferroui-controls-color-picker/trait-colorviewimpl/) — trait
- [`ColorViewTab`](/docs/0.5.0/api/ferroui-controls-color-picker/enum-colorviewtab/) — enum
- [`HsvComponent`](/docs/0.5.0/api/ferroui-controls-color-picker/enum-hsvcomponent/) — enum
- [`register_types`](/docs/0.5.0/api/ferroui-controls-color-picker/function-register_types/) — function
- [`ASSEMBLY`](/docs/0.5.0/api/ferroui-controls-color-picker/static-assembly/) — static
- [`RgbComponent`](/docs/0.5.0/api/ferroui-controls-color-picker/enum-rgbcomponent/) — enum

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
