138 {
139
141 if (self) {
142
145
147
149 assert(self->colorView);
150
153
155 assert(self->hueSlider);
156
157 self->hueSlider->delegate.self = self;
159 self->hueSlider->max = 360.0;
161
163 assert(self->hueInput);
164
166 $(self->hueInput->label->text,
setText,
"H");
167
169
171 assert(self->saturationSlider);
172
173 self->saturationSlider->delegate.self = self;
175 self->saturationSlider->max = 1.0;
177
179 assert(self->saturationInput);
180
182 $(self->saturationInput->label->text,
setText,
"S");
183
185
187 assert(self->valueSlider);
188
189 self->valueSlider->delegate.self = self;
191 self->valueSlider->max = 1.0;
193
195 assert(self->valueInput);
196
198 $(self->valueInput->label->text,
setText,
"V");
199
201
203 }
204
205 return self;
206}
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.