summaryrefslogtreecommitdiff
path: root/fluid/Fl_Type.h
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-08-30 21:57:23 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-08-30 21:57:23 +0000
commit09783875e44acb5c306ed578999c8c4f2bcce40a (patch)
tree7cc6ea6800fe89daedc73a139564ac5e9635c2ca /fluid/Fl_Type.h
parentaa897faeb38d238f8a82f0205d9e74feb87639c1 (diff)
FLUD: This fixes the problem that the children of a Widget_Class_Type are positioned with absolute coordintes. The patch adds another button to the FLUID interface named 'Relative' to the right of the widget position. It is only visible if a Widget_Class_Type is selected. If checked, code will be added that creates an Fl_Group at 0, 0 and later repositions it and all its children into the final position.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4554 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Type.h')
-rw-r--r--fluid/Fl_Type.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h
index d50ccaf02..9f8f98d2b 100644
--- a/fluid/Fl_Type.h
+++ b/fluid/Fl_Type.h
@@ -520,8 +520,16 @@ public:
class Fl_Widget_Class_Type : private Fl_Window_Type {
public:
+ Fl_Widget_Class_Type() {
+ write_public_state = 0;
+ wc_relative = 0;
+ }
// state variables for output:
char write_public_state; // true when public: has been printed
+ char wc_relative; // if true, reposition all child widgets in an Fl_Group
+
+ virtual void write_properties();
+ virtual void read_property(const char *);
void write_code1();
void write_code2();