diff options
Diffstat (limited to 'ganv/Canvas.hpp')
-rw-r--r-- | ganv/Canvas.hpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/ganv/Canvas.hpp b/ganv/Canvas.hpp index e22c691..46c2d5e 100644 --- a/ganv/Canvas.hpp +++ b/ganv/Canvas.hpp @@ -25,8 +25,6 @@ #include "ganv/canvas.h" #include "ganv/wrap.hpp" -GANV_GLIB_WRAP(Canvas) - /** Ganv namespace, everything is defined under this. * * @ingroup Ganv @@ -121,6 +119,10 @@ public: RW_PROPERTY(double, height) RW_PROPERTY(GanvDirection, direction); + void set_port_order(GanvPortOrderFunc port_cmp, void* data) { + ganv_canvas_set_port_order(gobj(), port_cmp, data); + } + Gtk::Layout& widget() { return *Glib::wrap(&_gobj->layout); } @@ -143,4 +145,14 @@ private: } // namespace Ganv +namespace Glib { + +static inline Ganv::Canvas* +wrap(GanvCanvas* canvas) +{ + return (Ganv::Canvas*)ganv_canvas_get_wrapper(canvas); +} + +} // namespace Glib + #endif // GANV_CANVAS_HPP |