117 {
118
120 if (self) {
121
124
126
128 assert(self->colorView);
129
132
134 assert(self->hueSlider);
135
136 self->hueSlider->delegate.self = self;
137 self->hueSlider->delegate.didSetValue =
didSetHue;
138 self->hueSlider->max = 360.0;
140
142 assert(self->hueInput);
143
145 $(self->hueInput->label->text,
setText,
"H");
146
148
150 }
151
152 return self;
153}
static void didSetHue(Slider *slider, double value)
SliderDelegate callback for hue 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.