blob: b3bf759aee1aeabea2b16b760f48fdd5e16e5930 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include <glibmm.h>
struct Foo
{
int bar;
};
namespace Gtk
{
class Widget;
}
void some_method()
{
// custom copyable
Glib::Value<Foo> value_foo;
// custom pointer
Glib::Value<Foo*> value_foo_pointer;
Glib::Value<const Foo*> value_foo_const_pointer;
// Glib::Object pointer
Glib::Value<Gtk::Widget*> value_widget_pointer;
Glib::Value<const Gtk::Widget*> value_widget_const_pointer;
}
// Glib::Object RefPtr<>
//template Glib::Value< Glib::RefPtr<Gdk::Pixbuf> >;
//template Glib::Value< Glib::RefPtr<const Gdk::Pixbuf> >;
|