Hello,
On Sat, 2001-11-10 at 15:37, George wrote:
> On Fri, Nov 02, 2001 at 11:58:19PM -0800, Charles Iliya Krempeaux wrote:
> > I know I'm probably just missing this in the documentation, but,
> > how do you create "class functions".
>
> There is no concept of class functions i gob really. I'm not sure it makes
> much sense either. I mean there is also only one class so those should be just
> functions that don't take the first argument, and not methods of an object.
> You can then just get the class pointer in the function itself.
>
> Maybe I'm missing something
Well, for a class function, I mean something like these three functions
from GObject:
void g_object_class_install_property (GObjectClass *oclass,
guint property_id,
GParamSpec *pspec);
GParamSpec* g_object_class_find_property (GObjectClass *oclass,
const gchar *property_name);
GParamSpec** g_object_class_list_properties (GObjectClass *oclass,
guint *n_properties);
(Refer to:
http://developer.gnome.org/doc/API/2.0/gobject/gobject-the-base-object-type.html
for more info on GObject.)
With these three function, instead of having the first parameter being "GObject *", they
deal with the class, and have the first parameter being "GObjectClass *".
This is the type of thing I was refering to.
See ya
Charles Iliya Krempeaux
tnt @ linux.ca
ckrempea @ alumni.sfu.ca
P.S.
Why is there so much SPAM on this list?
Received on Sun Nov 11 2001 - 16:16:43 CST
This archive was generated by hypermail 2.2.0 : Sun Apr 17 2011 - 21:05:02 CDT