summaryrefslogtreecommitdiff
path: root/fluid/Fl_Grid_Type.h
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-10-20 19:00:42 +0200
committerMatthias Melcher <github@matthiasm.com>2023-10-20 19:00:52 +0200
commit9817536cfd4a9ea8d9bb5ef41580a5ba3d254911 (patch)
treec2f313d24dad7a95742f4673907863c65fd771b2 /fluid/Fl_Grid_Type.h
parent757b5c12273cc1b4de8007b7c3f8536b699d2600 (diff)
FLUID: basic Fl_Grid support
* no settings for children yet * ne good interactive editing for children
Diffstat (limited to 'fluid/Fl_Grid_Type.h')
-rw-r--r--fluid/Fl_Grid_Type.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/fluid/Fl_Grid_Type.h b/fluid/Fl_Grid_Type.h
new file mode 100644
index 000000000..e817a94b0
--- /dev/null
+++ b/fluid/Fl_Grid_Type.h
@@ -0,0 +1,47 @@
+//
+// Fl_Grid type header file for the Fast Light Tool Kit (FLTK).
+//
+// Copyright 2023 by Bill Spitzak and others.
+//
+// This library is free software. Distribution and use rights are outlined in
+// the file "COPYING" which should have been included with this file. If this
+// file is missing or damaged, see the license at:
+//
+// https://www.fltk.org/COPYING.php
+//
+// Please see the following page on how to report bugs and issues:
+//
+// https://www.fltk.org/bugs.php
+//
+
+#ifndef _FLUID_FL_GRID_TYPE_H
+#define _FLUID_FL_GRID_TYPE_H
+
+#include "Fl_Group_Type.h"
+
+// ---- Fl_Grid_Type --------------------------------------------------- MARK: -
+
+extern const char grid_type_name[];
+
+class Fl_Grid_Type : public Fl_Group_Type
+{
+ typedef Fl_Group_Type super;
+public:
+ Fl_Grid_Type();
+ const char *type_name() FL_OVERRIDE {return grid_type_name;}
+ const char *alt_type_name() FL_OVERRIDE {return "fltk::GridGroup";}
+ Fl_Widget_Type *_make() FL_OVERRIDE { return new Fl_Grid_Type(); }
+ Fl_Widget *widget(int X,int Y,int W,int H) FL_OVERRIDE;
+ ID id() const FL_OVERRIDE { return ID_Grid; }
+ bool is_a(ID inID) const FL_OVERRIDE { return (inID==ID_Grid) ? true : super::is_a(inID); }
+ void write_properties(Fd_Project_Writer &f) FL_OVERRIDE;
+ void read_property(Fd_Project_Reader &f, const char *) FL_OVERRIDE;
+ void copy_properties() FL_OVERRIDE;
+ void write_code1(Fd_Code_Writer& f) FL_OVERRIDE;
+ void write_code2(Fd_Code_Writer& f) FL_OVERRIDE;
+ void add_child(Fl_Type*, Fl_Type*) FL_OVERRIDE;
+ void move_child(Fl_Type*, Fl_Type*) FL_OVERRIDE;
+ void remove_child(Fl_Type*) FL_OVERRIDE;
+};
+
+#endif // _FLUID_FL_GRID_TYPE_H