24 Glib::ustring
const &icon,
27 :
Scalar(label, tooltip, icon, mnemonic),
28 _unit_menu(unit_menu),
30 _absolute_is_increment(false),
31 _percentage_is_increment(false)
45 widget->unreference();
60 Glib::ustring
const &icon,
130 if (unit_name.empty()) {
142 spinButton.grab_focus();
143 spinButton.select_region(0, 20);
170 double convertedVal = 0;
174 convertedVal = 0.01 * hundred_converted * value;
176 convertedVal -= hundred_converted;
183 double convertedVal = 0;
193 value += hundred_converted;
194 convertedVal = 100 * value / hundred_converted;
221 double convertedVal = 0;
auto absolute(Geom::Point const &a)
int clamp(int const val)
Clamps an integer value to a value between 0 and 255.
void pack_start(Gtk::Box &box, Gtk::Widget &child, bool const expand, bool const fill, unsigned const padding)
Adds child to box, packed with reference to the start of box.
@ UNIT_TYPE_DIMENSIONLESS
@ HORIZONTAL
The x-dimension (0).
Helpers for using Gtk::Boxes, encapsulating large changes between GTK3 & GTK4.
void remove(std::vector< T > &vec, T const &val)