summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-10-22 01:50:06 +0200
committerMatthias Melcher <github@matthiasm.com>2023-10-22 01:51:53 +0200
commitb4fd7037ac37286146165b89282e6ab893e63a78 (patch)
tree6b66afcd3ec3dc86305e984eafa16ae8ab8cff59 /FL
parentd102e466d6a1047279dab57bcb13a74a7fddbe7f (diff)
FLUID: more Fl_Grid settings
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Grid.H8
1 files changed, 8 insertions, 0 deletions
diff --git a/FL/Fl_Grid.H b/FL/Fl_Grid.H
index fbcc1ce1f..7abfa6362 100644
--- a/FL/Fl_Grid.H
+++ b/FL/Fl_Grid.H
@@ -185,6 +185,9 @@ public:
void align(Fl_Grid_Align align) { align_ = align; }
Fl_Grid_Align align() const { return align_; }
+
+ void minimum_size(int w, int h) { if (w>=0) w_ = w; if (h>=0) h_ = h; }
+ void minimum_size(int *w, int *h) { if (w) *w = w_; if (h) *h = h_; }
}; // class Cell
private:
@@ -286,12 +289,15 @@ public:
void col_width(int col, int value);
void col_width(const int *value, size_t size);
+ int col_width(int col) const;
void col_weight(int col, int value);
void col_weight(const int *value, size_t size);
+ int col_weight(int col) const;
void col_gap(int col, int value);
void col_gap(const int *value, size_t size);
+ int col_gap(int col) const;
void row_height(int row, int value);
void row_height(const int *value, size_t size);
@@ -299,9 +305,11 @@ public:
void row_weight(int row, int value);
void row_weight(const int *value, size_t size);
+ int row_weight(int row) const;
void row_gap(int row, int value);
void row_gap(const int *value, size_t size);
+ int row_gap(int row) const;
/**
Enable or disable drawing of the grid helper lines for visualization.