Changes to get the full spot width where needed

This commit is contained in:
Dániel Battyányi
2023-08-20 13:59:42 +02:00
parent 6b6200314f
commit 75541d6281
2 changed files with 8 additions and 4 deletions

View File

@@ -740,6 +740,10 @@ class SpotPicker : public Gtk::Grid
{
return _spotHalfWidth;
}
int get_spot_full_width() const
{
return _spotHalfWidth * 2;
}
template <class T_return, class T_obj> void add_button_toggled_event(T_return& returnv, const T_obj function)
{
_spotButton.signal_toggled().connect(sigc::mem_fun(returnv, function));