119 {
120
122 if (self) {
123
126
128
130 assert(self->colorView);
131
134
136 assert(self->hueSlider);
137
138 self->hueSlider->delegate.self = self;
139 self->hueSlider->delegate.didSetValue =
didSetHue;
140 self->hueSlider->max = 360.0;
142
144 assert(self->hueInput);
145
147 $(self->hueInput->label->text,
setText,
"H");
148
150
152 }
153
154 return self;
155}
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.