mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 20:26:30 +01:00
More missing stuff...
git-svn-id: svn://localhost/ardour2/trunk@2645 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a313924b77
commit
aa6faa86b5
32 changed files with 5856 additions and 0 deletions
32
libs/glibmm2/tests/glibmm_value/glibmm_value.cc
Normal file
32
libs/glibmm2/tests/glibmm_value/glibmm_value.cc
Normal file
|
|
@ -0,0 +1,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> >;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue