136 {
137
139 if (self) {
140
143
145
147 assert(self->colorView);
148
151
153 assert(self->hueSlider);
154
155 self->hueSlider->delegate.self = self;
157 self->hueSlider->max = 360.0;
159
161 assert(self->hueInput);
162
164 $(self->hueInput->label->text,
setText,
"H");
165
167
169 assert(self->saturationSlider);
170
171 self->saturationSlider->delegate.self = self;
173 self->saturationSlider->max = 1.0;
175
177 assert(self->saturationInput);
178
180 $(self->saturationInput->label->text,
setText,
"S");
181
183
185 assert(self->valueSlider);
186
187 self->valueSlider->delegate.self = self;
189 self->valueSlider->max = 1.0;
191
193 assert(self->valueInput);
194
196 $(self->valueInput->label->text,
setText,
"V");
197
199
201 }
202
203 return self;
204}
static void didSetComponent(Slider *slider, double value)
SliderDelegate callback for color component modification.
static void addSubview(View *self, View *subview)
static void setLabelFormat(ProgressBar *self, const char *labelFormat)
static void setText(Text *self, const char *text)
static void addClassName(View *self, const char *className)
Controls are Views which capture and respond to events.
StackView * stackView
The StackView.
A Control allowing users to drag a handle to select a numeric value.
StackViews are containers that manage the arrangement of their subviews.