Re: g_object_class_install_property
- From: Mikoyan <miko2 pandora be>
- To: Russell Shaw <rjshaw iprimus com au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: g_object_class_install_property
- Date: 23 Aug 2003 12:45:47 +0200
On Fri, 2003-08-22 at 19:05, Russell Shaw wrote:
Hi,
Hello
What are "properties" relative to normal members that you
add in the header file declaration of your own object?
Are "properties" just a way of adding members to your
class at run-time?
I'm quite new to the subject too, but Properties have a number
of advantages. Often you create properties for your datamembers,
(for each datamember you create a property). That way, the object
properties/datamembers can be queried at runtime, wich may be
usefull for e.g. gui builders, plugins, etc.
In that case, g_object_class_install_property is used in your
class init function.
But adding properties to a class structure at run time is indeed
possible too.
I also believe (but i'm not certain), that Properties can
be easily mapped to other languages and are usefull is such
a context.
If properties are usefull for you, is something you have to
decide.
void g_object_class_install_property (GObjectClass *oclass,
guint property_id,
GParamSpec *pspec);
http://developer.gnome.org/doc/API/2.0/gobject/gobject-The-Base-Object-Type.html#g-object-class-install-property
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]