Re: Help with Clutter::Scriptable
- From: Chris Kühl <blixtra gmail com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: Help with Clutter::Scriptable
- Date: Fri, 25 Feb 2011 16:00:36 +0100
On Fri, Feb 25, 2011 at 2:50 PM, Murray Cumming <murrayc murrayc com> wrote:
>>
>> Being that the JSON objects are using C-types it's not clear to me yet
>> how to script a custom actor using cluttermm. I'll look at this more
>> deeply tomorrow.
>
> You can define a custom GType when deriving in C++. You must call the
> virtual base constructor (weirdness ahoy) in your initializer list:
> http://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/custom/custom_widget/mywidget.cc#n26
>
> Then you can presumably just mention that GType name in your JSON
> script.
>
> If it helps, you can add regular GObject properties by just using
> Glib:property_proxy<> as a member variable.
Thanks Murray. I'll take a look at this and see what I come up with.
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]