summaryrefslogtreecommitdiff
path: root/src/c_fl_group.cpp
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-06-17 11:28:39 +1000
committerJed Barber <jjbarber@y7mail.com>2017-06-17 11:28:39 +1000
commitfb37523537cdb69a31dede401a604981ce8b7b9d (patch)
tree9d8f8dc3a00ce27b69aa4b7d7696b49d659fcbe1 /src/c_fl_group.cpp
parent33c3691b571ce4b6a2aa6997b70c3bc5d991ca9d (diff)
Updated coding style, added progress log
Diffstat (limited to 'src/c_fl_group.cpp')
-rw-r--r--src/c_fl_group.cpp53
1 files changed, 20 insertions, 33 deletions
diff --git a/src/c_fl_group.cpp b/src/c_fl_group.cpp
index db3b9b3..2cfb444 100644
--- a/src/c_fl_group.cpp
+++ b/src/c_fl_group.cpp
@@ -25,42 +25,34 @@ class My_Group : public Fl_Group {
h_hook_p handle_hook;
};
-
void My_Group::draw() {
(*draw_hook)(this->user_data());
}
-
void My_Group::real_draw() {
Fl_Group::draw();
}
-
int My_Group::handle(int e) {
return (*handle_hook)(this->user_data(), e);
}
-
int My_Group::real_handle(int e) {
return Fl_Group::handle(e);
}
-
void group_set_draw_hook(GROUP g, void * d) {
reinterpret_cast<My_Group*>(g)->draw_hook = reinterpret_cast<d_hook_p>(d);
}
-
void fl_group_draw(GROUP g) {
reinterpret_cast<My_Group*>(g)->real_draw();
}
-
void group_set_handle_hook(GROUP g, void * h) {
reinterpret_cast<My_Group*>(g)->handle_hook = reinterpret_cast<h_hook_p>(h);
}
-
int fl_group_handle(GROUP g, int e) {
return reinterpret_cast<My_Group*>(g)->real_handle(e);
}
@@ -73,7 +65,6 @@ GROUP new_fl_group(int x, int y, int w, int h, char* label) {
return g;
}
-
void free_fl_group(GROUP g) {
delete reinterpret_cast<My_Group*>(g);
}
@@ -92,57 +83,38 @@ void fl_group_add(GROUP g, WIDGET item) {
reinterpret_cast<Fl_Group*>(g)->add(reinterpret_cast<Fl_Widget*>(item));
}
-
-int fl_group_find(GROUP g, WIDGET item) {
- return reinterpret_cast<Fl_Group*>(g)->find(reinterpret_cast<Fl_Widget*>(item));
-}
-
-
-void fl_group_init_sizes(GROUP g) {
- reinterpret_cast<Fl_Group*>(g)->init_sizes();
-}
-
-
void fl_group_insert(GROUP g, WIDGET item, int place) {
reinterpret_cast<Fl_Group*>(g)->insert(*(reinterpret_cast<Fl_Widget*>(item)), place);
}
-
void fl_group_insert2(GROUP g, WIDGET item, WIDGET before) {
reinterpret_cast<Fl_Group*>(g)->insert(*(reinterpret_cast<Fl_Widget*>(item)), reinterpret_cast<Fl_Widget*>(before));
}
-
void fl_group_remove(GROUP g, WIDGET item) {
reinterpret_cast<Fl_Group*>(g)->remove(reinterpret_cast<Fl_Widget*>(item));
}
-
void fl_group_remove2(GROUP g, int place) {
reinterpret_cast<Fl_Group*>(g)->remove(place);
}
-void * fl_group_get_resizable(GROUP g) {
- return reinterpret_cast<Fl_Group*>(g)->resizable();
-}
-void fl_group_set_resizable(GROUP g, WIDGET item) {
- reinterpret_cast<Fl_Group*>(g)->resizable(reinterpret_cast<Fl_Widget*>(item));
+void * fl_group_child(GROUP g, int place) {
+ return reinterpret_cast<Fl_Group*>(g)->child(place);
}
-
-
+int fl_group_find(GROUP g, WIDGET item) {
+ return reinterpret_cast<Fl_Group*>(g)->find(reinterpret_cast<Fl_Widget*>(item));
+}
int fl_group_children(GROUP g) {
return reinterpret_cast<Fl_Group*>(g)->children();
}
-void * fl_group_child(GROUP g, int place) {
- return reinterpret_cast<Fl_Group*>(g)->child(place);
-}
//unsigned int flt_group_get_clip_children(GROUP g) {
@@ -154,3 +126,18 @@ void * fl_group_child(GROUP g, int place) {
// reinterpret_cast<Fl_Group*>(g)->clip_children(c);
//}
+
+
+
+void * fl_group_get_resizable(GROUP g) {
+ return reinterpret_cast<Fl_Group*>(g)->resizable();
+}
+
+void fl_group_set_resizable(GROUP g, WIDGET item) {
+ reinterpret_cast<Fl_Group*>(g)->resizable(reinterpret_cast<Fl_Widget*>(item));
+}
+
+void fl_group_init_sizes(GROUP g) {
+ reinterpret_cast<Fl_Group*>(g)->init_sizes();
+}
+