summaryrefslogtreecommitdiff
path: root/fluid/nodes/Button_Node.cxx
diff options
context:
space:
mode:
authormaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 03:20:53 +0500
committermaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 03:20:53 +0500
commitddba971ebb304512ba9e0a01b77ec71b59b977b6 (patch)
tree7e681b80b442ec86f19a3e19aa42770198946d35 /fluid/nodes/Button_Node.cxx
parentc19f34db2f4a64326d03cee7edae095051660f65 (diff)
wip
Diffstat (limited to 'fluid/nodes/Button_Node.cxx')
-rw-r--r--fluid/nodes/Button_Node.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/fluid/nodes/Button_Node.cxx b/fluid/nodes/Button_Node.cxx
index d989c527c..877c5588d 100644
--- a/fluid/nodes/Button_Node.cxx
+++ b/fluid/nodes/Button_Node.cxx
@@ -57,7 +57,7 @@ Fl_Menu_Item *Button_Node::subtypes() {
}
void Button_Node::ideal_size(int &w, int &h) {
- auto layout = Fluid.proj.layout;
+ fld::app::Layout_Preset *layout = Fluid.proj.layout;
h = layout->labelsize + 8;
w = layout->labelsize * 4 + 8;
fld::app::Snap_Action::better_size(w, h);
@@ -95,7 +95,7 @@ void Button_Node::copy_properties() {
// ---- Return Button ----
void Return_Button_Node::ideal_size(int &w, int &h) {
- auto layout = Fluid.proj.layout;
+ fld::app::Layout_Preset *layout = Fluid.proj.layout;
h = layout->labelsize + 8;
w = layout->labelsize * 4 + 8 + h; // make room for the symbol
fld::app::Snap_Action::better_size(w, h);
@@ -120,7 +120,7 @@ Repeat_Button_Node Repeat_Button_Node::prototype;
// ---- Light Button ----
void Light_Button_Node::ideal_size(int &w, int &h) {
- auto layout = Fluid.proj.layout;
+ fld::app::Layout_Preset *layout = Fluid.proj.layout;
h = layout->labelsize + 8;
w = layout->labelsize * 4 + 8 + layout->labelsize; // make room for the light
fld::app::Snap_Action::better_size(w, h);
@@ -136,7 +136,7 @@ Light_Button_Node Light_Button_Node::prototype;
// ---- Check Button ----
void Check_Button_Node::ideal_size(int &w, int &h) {
- auto layout = Fluid.proj.layout;
+ fld::app::Layout_Preset *layout = Fluid.proj.layout;
h = layout->labelsize + 8;
w = layout->labelsize * 4 + 8 + layout->labelsize; // make room for the symbol
fld::app::Snap_Action::better_size(w, h);
@@ -152,7 +152,7 @@ Check_Button_Node Check_Button_Node::prototype;
// ---- Round Button ----
void Round_Button_Node::ideal_size(int &w, int &h) {
- auto layout = Fluid.proj.layout;
+ fld::app::Layout_Preset *layout = Fluid.proj.layout;
h = layout->labelsize + 8;
w = layout->labelsize * 4 + 8 + layout->labelsize; // make room for the symbol
fld::app::Snap_Action::better_size(w, h);