summaryrefslogtreecommitdiff
path: root/fluid/Fl_Type.h
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2008-09-17 22:43:15 +0000
committerMatthias Melcher <fltk@matthiasm.com>2008-09-17 22:43:15 +0000
commitc232e9822d348eec68593ba6753b98ae9f85dfdb (patch)
treea4d55f0fd5437ed796031ed0e7979be2282202f3 /fluid/Fl_Type.h
parentd71cd6ec73a11b84899ac9cd342bce3a7d9d2966 (diff)
This is a stab at supporting Doxygen comments from withing Fluid. Just double click on a function, class, or declaration and you will be able to add a comment. Comments welcome.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6291 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Type.h')
-rw-r--r--fluid/Fl_Type.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h
index a3bf02490..d26353863 100644
--- a/fluid/Fl_Type.h
+++ b/fluid/Fl_Type.h
@@ -57,6 +57,7 @@ protected:
const char *callback_;
const char *user_data_;
const char *user_data_type_;
+ const char *comment_;
public: // things that should not be public:
@@ -99,6 +100,8 @@ public:
void user_data(const char *);
const char *user_data_type() const {return user_data_type_;}
void user_data_type(const char *);
+ const char *comment() { return comment_; }
+ void comment(const char *);
virtual Fl_Type* click_test(int,int);
virtual void add_child(Fl_Type*, Fl_Type* beforethis);
@@ -118,6 +121,8 @@ public:
virtual void write_static(); // write static stuff to .c file
virtual void write_code1(); // code and .h before children
virtual void write_code2(); // code and .h after children
+ void write_comment_h(const char *ind=""); // write the commentary text into the header file
+ void write_comment_c(const char *ind=""); // write the commentary text into the source file
// live mode
virtual Fl_Widget *enter_live_mode(int top=0); // build wdgets needed for live mode