Re: Implementing GInterfaces purely from C++?
- From: Philip Langdale <plangdale vmware com>
- To: gtkmm-list mail gnome org
- Subject: Re: Implementing GInterfaces purely from C++?
- Date: Fri, 01 Feb 2008 18:14:22 -0800
Philip Langdale wrote:
>
> Is there a way I can make this work without doing my implementation in C
> and then wrapping it - that would be pretty crummy as my underlying data
> store is a C++ object.
Predictably, I found it right after sending the email.
As I understand it, it should be:
class Foo : virtual public Glib::ObjectBase,
public Glib::Object,
public Gtk::TreeModel
{
Foo() : Glib::ObjectBase("FooType") {}
};
This yields a custom type with the interface implemented.
--phil
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]