App:Library:LVGL:docs:Widgets:Color picker (lv cpicker)
https://docs.lvgl.io/latest/en/html/widgets/cpicker.html
Color picker (lv_cpicker)
Overview
英文 | 自動翻訳 |
---|---|
As its name implies Color picker allows to select color.
The Hue, Saturation and Value of the color can be selected after each other.
Besides, double click will reset the current parameter. |
カラーピッカーは、その名の通り、色を選択するためのツールです。
色相、彩度、明度を順番に選択することができます。
また、ダブルクリックすると、現在のパラメータがリセットされます。 |
Parts and Styles
英文 | 自動翻訳 |
---|---|
The Color picker's main part is called LV_CPICKER_PART_BG .
In circular form it uses scale_width to set the the width of the circle and pad_inner for padding between the circle and the inner preview circle. In rectangle mode radius can be used to apply a radius on the rectangle.
It uses all the rectangle like style properties and padding to make it larger than the width of the circle or rectangle background. |
カラー ピッカーの主要部分は、LV_CPICKER_PART_BG と呼ばれます。
円形では、scale_width を使用して円の幅を設定し、pad_inner を円と内側のプレビュー円の間のパディングに設定します。 長方形モードでは、radius を使用して長方形に半径を適用できます。
スタイルプロパティとパディングのようなすべての長方形を使用して、円または長方形の背景の幅よりも大きくします。 |
Usage
Type
英文 | 自動翻訳 |
---|---|
The type of the Color picker can be changed with lv_cpicker_set_type(cpicker, LV_CPICKER_TYPE_RECT/DISC)
|
カラーピッカーのタイプは lv_cpicker_set_type(cpicker, LV_CPICKER_TYPE_RECT/DISC) で変更できます |
Set color
英文 | 自動翻訳 |
---|---|
The colro can be set manually with lv_cpicker_set_hue/saturation/value(cpicker, x) or all at once with lv_cpicker_set_hsv(cpicker, hsv) or lv_cpicker_set_color(cpicker, rgb)
|
colro は、lv_cpicker_set_hue/saturation/value(cpicker, x) で手動で設定するか、lv_cpicker_set_hsv(cpicker, hsv) または lv_cpicker_set_color(cpicker, rgb) で一度に設定できます。 |
Color mode
英文 | 自動翻訳 |
---|---|
The current color moed can be manually selected with lv_cpicker_set_color_mode(cpicker, LV_CPICKER_COLOR_MODE_HUE/SATURATION/VALUE) .
|
現在の色モードは lv_cpicker_set_color_mode(cpicker, LV_CPICKER_COLOR_MODE_HUE/SATURATION/VALUE) で手動で選択することができます。
|
Knob color
英文 | 自動翻訳 |
---|---|
lv_cpicker_set_knob_colored(cpicker, true) make the knob to automatically show the selected color as background color.
|
lv_cpicker_set_knob_colored(cpicker, true) ノブが選択した色を背景色として自動的に表示するようにします。 |
Events
英文 | 自動翻訳 |
---|---|
Only the Generic events are sent by the object type.
|
Generic eventsのみがオブジェクトタイプによって送信されます。
|
Keys
英文 | 自動翻訳 |
---|---|
|
|