wxColourPickerCtrl(3)
π¨ wxColourPickerCtrl(3) β Erlang Module Definition π¨
hey bestie, welcome to the wxColourPickerCtrl(3) manual page! it's giving "let me pick a colour for you" energy and honestly? obsessed. π
π NAME π
wxColourPickerCtrl β this control allows the user to select a colour. periodt.
πΈ DESCRIPTION πΈ
so like, the generic implementation is a button which brings up a wxColourDialog when clicked. native implementation may differ but this is usually a (small) widget which give access to the colour-chooser dialog. it is only available if wxUSE_COLOURPICKERCTRL is set to 1 (the default, no cap). π¦
π Styles π
this class supports the following styles:
wxCLRP_DEFAULT_STYLEβ the default style:0. iconic.wxCLRP_USE_TEXTCTRLβ creates a text control to the left of the picker button which is completely managed by thewxColourPickerCtrland which can be used by the user to specify a colour (seeSetColour). the text control is automatically synchronized with button's value. use functions defined inwxPickerBaseto modify the text control. slay.wxCLRP_SHOW_LABELβ shows the colour in HTML form (AABBCC) as colour button label (instead of no label at all). cute.wxCLRP_SHOW_ALPHAβ allows selecting opacity in the colour-chooser (effective underwxGTKandwxOSX). transparency queen.
see:
wxColourDialogwxColourPickerEvent
this class is derived, and can use functions, from:
wxPickerBasewxControlwxWindowwxEvtHandler
wxWidgets docs: wxColourPickerCtrl
π¦ Events π¦
event types emitted from this class:
command_colourpicker_changed
π DATA TYPES π
wxColourPickerCtrl() :: wx:wx_object().
π FUNCTIONS π
create/4
create(This, Parent, Id, [Option]) -> boolean()
when
This :: wxColourPickerCtrl(),
Parent :: wxWindow:wxWindow(),
Id :: integer(),
Option ::
{col, wx:wx_colour()} |
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()} |
{validator, wx:wx_object()}.
creates a colour picker with the given arguments.
return: true if the control was successfully created or false if creation failed.
destroy/1
destroy(This :: wxColourPickerCtrl()) -> ok.
destroys the object. bye bestie. π
getColour/1
getColour(This) -> wx:wx_colour4()
when This :: wxColourPickerCtrl().
returns the currently selected colour. get that colour, girl. π
new/0
new() -> wxColourPickerCtrl().
new/3
new(Parent, Id, [Option]) -> wxColourPickerCtrl()
when
Parent :: wxWindow:wxWindow(),
Id :: integer(),
Option ::
{col, wx:wx_colour()} |
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()} |
{validator, wx:wx_object()}.
initializes the object and calls create/4 with all the parameters.
setColour/2
setColour(This, Colname) -> ok
when
This :: wxColourPickerCtrl(),
Colname :: unicode:chardata();
(This, Col) -> ok
when
This :: wxColourPickerCtrl(),
Col :: wx:wx_colour().
sets the currently selected colour.
see wxColour::Set() (not implemented in wx).
β οΈ that's literally the whole page, bestie. don't skip a single detail, iykyk.
and that's the vibe! this page was brought to you by Ericsson AB, version wx 2.6, for the wxColourPickerCtrl(3) manual. now go pick a colour and slay! πβ¨π
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms