C (169/178)

From:Allan Odgaard
Date:29 Jul 2000 at 14:52:38
Subject:Re: BOOPSI again & again

On 26-Jul-00, Gabriele Svelto wrote:

> [...] I searched the includes but couldn't find anywhere a struct
> Class { etc... }. Obscure indeed... I didn't understand too how I

It's in "intuition/classes.h" (declared as 'typedef struct IClass {...}
Class' AFAIRC).

intuition/classusr.h is also an interesting include for BOOPSI class
writers.

> could from within the dispatcher get data from the Gadget structure of
> an object, how do I do that? Thanx in advance,

You receive an object and a class pointer in your dispatcher, these can
be used to get the instance data of the object by using the
INST_DATA(cl, obj)-macro.

Gadget data belonging to your superclass should normally be accessed by
invoking Get- & SetAttrs() on your own object, but if you want to be
dirty then I think the object pointer passed to your gadget is
equivalent with the Gadget pointer (if your object is a Gadget) -- The
includes should mention more about this, I haven't tried to make use of
this fact myself...

Regards Allan

--------------------------------------------------------------------<e|-
It's the End Of The Line for My Shipping Broker.
http://click.egroups.com/1/5175/1/_/451227/_/964878846/
--------------------------------------------------------------------|e>-