Boopsi Object structure
Source position: intuition.pas line 2642
type T_Object = record |
||
o_Node: TMinNode; |
|
|
o_Class: PIClass; |
|
Class pointer |
end; |
We have this, the instance data of the root class, PRECEDING the 'object'. This is so that Gadget objects are Gadget pointers, and so on. If this structure grows, it will always have o_Class at the end, so the macro OCLASS(o) will always have the same offset back from the pointer returned from NewObject().