- : BC_FSlider(x, y, 0, 150, 150, SHAPE_FLOG_MIN, SHAPE_FLOG_MAX,
- !client->config.feather ? SHAPE_FLOG_MIN :
- log(client->config.feather)/M_LN2)
+ : BC_TumbleTextBox(window,
+ bclip(client->config.feather, SHAPE_FMIN, SHAPE_FMAX),
+ SHAPE_FMIN, SHAPE_FMAX, x, y, 64, 3)
+{
+ this->client = client;
+ this->window = window;
+}
+
+int ShapeWipeFeather::handle_event()
+{
+ float v = atof(get_text());
+ bclamp(v, SHAPE_FMIN, SHAPE_FMAX);
+ client->config.feather = v;
+ float sv = log(v)/M_LN2;
+ window->shape_fslider->update(sv);
+ client->send_configure_change();
+ return 1;
+}
+
+ShapeWipeFSlider::ShapeWipeFSlider(ShapeWipeMain *client,
+ ShapeWipeWindow *window, int x, int y, int w)
+ : BC_FSlider(x, y, 0, w, w, SHAPE_FLOG_MIN, SHAPE_FLOG_MAX,
+ log(bclip(client->config.feather, SHAPE_FMIN, SHAPE_FMAX))/M_LN2)