Re: g_object_class_install_property
- From: Russell Shaw <rjshaw iprimus com au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: g_object_class_install_property
- Date: Sat, 23 Aug 2003 21:13:16 +1000
Mikoyan wrote:
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.
Hi,
I found this very useful for understanding more about sub-classing,
signals, and properties:
http://ignore-your.tv/software/libgtcpsocket/docs/index.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]