summaryrefslogtreecommitdiff
path: root/fluid/Fl_Type.h
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-02-15 16:43:51 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-02-15 16:43:51 +0000
commitfb1b0fab0a422e9ff8807bed12ae09abb4f0d975 (patch)
tree483bbe851b8b5f9c6134ebfd7decda1f530062d1 /fluid/Fl_Type.h
parentea31edb2410308b4f610a027086c7b6f5ee72e1a (diff)
Added new type 'Binary Data' to Fluid. Use this to include an arbitrary file as a byte array into your source code. Changes to load jpegs etc. from program memory will follow.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7084 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Type.h')
-rw-r--r--fluid/Fl_Type.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h
index e80842ab8..b8d860373 100644
--- a/fluid/Fl_Type.h
+++ b/fluid/Fl_Type.h
@@ -213,6 +213,7 @@ public:
};
class Fl_Decl_Type : public Fl_Type {
+protected:
char public_;
char static_;
public:
@@ -227,6 +228,19 @@ public:
int pixmapID() { return 10; }
};
+class Fl_Data_Type : public Fl_Decl_Type {
+ const char *filename_;
+public:
+ Fl_Type *make();
+ void write_code1();
+ void write_code2();
+ void open();
+ virtual const char *type_name() {return "data";}
+ void write_properties();
+ void read_property(const char *);
+ int pixmapID() { return 49; }
+};
+
class Fl_DeclBlock_Type : public Fl_Type {
const char* after;
char public_;