17#include <gtkmm/label.h>
18#include <gtkmm/scale.h>
26 Glib::ustring
const &icon,
32Scalar::Scalar(Glib::ustring
const &
label, Glib::ustring
const &tooltip,
34 Glib::ustring
const &icon,
36 :
Scalar{
label, tooltip, {}, digits, icon, mnemonic}
41 Glib::RefPtr<Gtk::Adjustment>
const &adjust,
43 Glib::ustring
const &icon,
46 setProgrammatically(false)
103 spin_button.set_numeric(
false);
112 double digits = std::pow(10.0, spin_button.get_digits());
113 double val = std::round(spin_button.get_value() * digits) / digits;
114 spin_button.set_text(Glib::ustring::format(val));
155 scale->set_draw_value(
false);
166 label->set_visible(
false);
172 widget->set_hexpand();
174 widget->unreference();
void pack_end(Gtk::Box &box, Gtk::Widget &child, bool const expand, bool const fill, unsigned const padding)
Adds child to box, packed with reference to the end of box.
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.
Helpers for using Gtk::Boxes, encapsulating large changes between GTK3 & GTK4.
void remove(std::vector< T > &vec, T const &val)