From 0ac0ec2aa3e1dd344c31b5b1a38eb30de8aaaec2 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 11 Sep 2024 22:29:39 +0200 Subject: FLUID: Eliminating two globals --- fluid/Fl_Type.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'fluid/Fl_Type.h') diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h index 6961e50c7..8d9588e13 100644 --- a/fluid/Fl_Type.h +++ b/fluid/Fl_Type.h @@ -29,6 +29,22 @@ class Fl_Window_Type; class Fd_Project_Reader; class Fd_Project_Writer; +/** + Declare where a new type is placed in the hierarchy. + + Note that a type can also be the start of a hierarchy of types. In that case, + + \see Fl_Type *Fl_..._Type::make(Strategy strategy) calls `add()` + Add single Type: + Fl_Type *add_new_widget_from_user(Fl_Type *inPrototype, Strategy strategy, bool and_open) + Fl_Type *add_new_widget_from_user(const char *inName, Strategy strategy, bool and_open) + Fl_Type *add_new_widget_from_file(const char *inName, Strategy strategy) + Add a hierarchy of Types + void Fl_Type::add(Fl_Type *p, Strategy strategy) + int read_file(const char *filename, int merge, Strategy strategy) + Fl_Type *Fd_Project_Reader::read_children(Fl_Type *p, int merge, Strategy strategy, char skip_options) + int Fd_Project_Reader::read_project(const char *filename, int merge, Strategy strategy) + */ typedef enum { kAddAsLastChild = 0, kAddAfterCurrent -- cgit v1.2.3