home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Basic / OTL-BBU1.DMS / in.adf / Includes / intuition / classes.bb2 < prev    next >
Unknown  |  1994-04-04  |  2.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 00 3b 20 20 24 56 45 | 52 3a 20 63 6c 61 73 73 |;.; $VE|R: class|
|00000010| 65 73 2e 62 62 32 20 34 | 30 2e 30 20 28 30 33 2e |es.bb2 4|0.0 (03.|
|00000020| 30 33 2e 39 34 29 00 3b | 00 00 80 12 22 75 74 69 |03.94).;|...."uti|
|00000030| 6c 69 74 79 2f 68 6f 6f | 6b 73 2e 62 62 32 22 00 |lity/hoo|ks.bb2".|
|00000040| 00 80 12 22 69 6e 74 75 | 69 74 69 6f 6e 2f 63 6c |..."intu|ition/cl|
|00000050| 61 73 73 75 73 72 2e 62 | 62 32 22 00 00 3b 2f 2a |assusr.b|b2"..;/*|
|00000060| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000070| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000080| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 00 3b 2f 2a 2a |********|**/.;/**|
|00000090| 2a 20 22 57 68 69 74 65 | 20 62 6f 78 22 20 61 63 |* "White| box" ac|
|000000a0| 63 65 73 73 20 74 6f 20 | 73 74 72 75 63 74 20 49 |cess to |struct I|
|000000b0| 43 6c 61 73 73 20 2a 2a | 2a 2f 00 3b 2f 2a 2a 2a |Class **|*/.;/***|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 00 00 3b 2f 2a 20 54 |********|/..;/* T|
|000000f0| 68 69 73 20 73 74 72 75 | 63 74 75 72 65 20 69 73 |his stru|cture is|
|00000100| 20 52 45 41 44 2d 4f 4e | 4c 59 2c 20 61 6e 64 20 | READ-ON|LY, and |
|00000110| 61 6c 6c 6f 63 61 74 65 | 64 20 6f 6e 6c 79 20 62 |allocate|d only b|
|00000120| 79 20 49 6e 74 75 69 74 | 69 6f 6e 20 2a 2f 00 80 |y Intuit|ion */..|
|00000130| 01 2e 49 43 6c 61 73 73 | 00 63 6c 5f 44 69 73 70 |..IClass|.cl_Disp|
|00000140| 61 74 63 68 65 72 2e 48 | 6f 6f 6b 00 63 6c 5f 52 |atcher.H|ook.cl_R|
|00000150| 65 73 65 72 76 65 64 2e | 6c 20 3b 2f 2a 20 6d 75 |eserved.|l ;/* mu|
|00000160| 73 74 20 62 65 20 30 20 | 20 2a 2f 00 2a 63 6c 5f |st be 0 | */.*cl_|
|00000170| 53 75 70 65 72 2e 49 43 | 6c 61 73 73 00 63 6c 5f |Super.IC|lass.cl_|
|00000180| 49 44 2e 62 20 3b 43 6c | 61 73 73 49 44 20 28 43 |ID.b ;Cl|assID (C|
|00000190| 6c 61 73 73 49 44 20 3d | 20 74 79 70 65 64 65 66 |lassID =| typedef|
|000001a0| 20 55 42 59 54 45 29 00 | 00 3b 2f 2a 20 77 68 65 | UBYTE).|.;/* whe|
|000001b0| 72 65 20 77 69 74 68 69 | 6e 20 61 6e 20 6f 62 6a |re withi|n an obj|
|000001c0| 65 63 74 20 69 73 20 74 | 68 65 20 69 6e 73 74 61 |ect is t|he insta|
|000001d0| 6e 63 65 20 64 61 74 61 | 20 66 6f 72 20 74 68 69 |nce data| for thi|
|000001e0| 73 20 63 6c 61 73 73 3f | 20 2a 2f 00 63 6c 5f 49 |s class?| */.cl_I|
|000001f0| 6e 73 74 4f 66 66 73 65 | 74 2e 77 00 63 6c 5f 49 |nstOffse|t.w.cl_I|
|00000200| 6e 73 74 53 69 7a 65 2e | 77 00 00 63 6c 5f 55 73 |nstSize.|w..cl_Us|
|00000210| 65 72 44 61 74 61 2e 6c | 20 3b 2f 2a 20 70 65 72 |erData.l| ;/* per|
|00000220| 2d 63 6c 61 73 73 20 64 | 61 74 61 20 6f 66 20 79 |-class d|ata of y|
|00000230| 6f 75 72 20 63 68 6f 69 | 63 65 20 2a 2f 00 63 6c |our choi|ce */.cl|
|00000240| 5f 53 75 62 63 6c 61 73 | 73 43 6f 75 6e 74 2e 6c |_Subclas|sCount.l|
|00000250| 00 3b 2f 2a 20 68 6f 77 | 20 6d 61 6e 79 20 64 69 |.;/* how| many di|
|00000260| 72 65 63 74 20 73 75 62 | 63 6c 61 73 73 65 73 3f |rect sub|classes?|
|00000270| 20 2a 2f 00 63 6c 5f 4f | 62 6a 65 63 74 43 6f 75 | */.cl_O|bjectCou|
|00000280| 6e 74 2e 6c 00 3b 2f 2a | 20 68 6f 77 20 6d 61 6e |nt.l.;/*| how man|
|00000290| 79 20 6f 62 6a 65 63 74 | 73 20 63 72 65 61 74 65 |y object|s create|
|000002a0| 64 20 6f 66 20 74 68 69 | 73 20 63 6c 61 73 73 3f |d of thi|s class?|
|000002b0| 20 2a 2f 00 63 6c 5f 46 | 6c 61 67 73 2e 6c 00 80 | */.cl_F|lags.l..|
|000002c0| 02 20 80 01 00 00 23 43 | 4c 46 5f 49 4e 4c 49 53 |. ....#C|LF_INLIS|
|000002d0| 54 3d 24 30 30 30 30 30 | 30 30 31 3b 2f 2a 20 63 |T=$00000|001;/* c|
|000002e0| 6c 61 73 73 20 69 73 20 | 69 6e 20 70 75 62 6c 69 |lass is |in publi|
|000002f0| 63 20 63 6c 61 73 73 20 | 80 b3 20 2a 2f 00 00 3b |c class |.. */..;|
|00000300| 2f 2a 20 61 64 64 20 6f | 66 66 73 65 74 20 66 6f |/* add o|ffset fo|
|00000310| 72 20 69 6e 73 74 61 6e | 63 65 20 64 61 74 61 20 |r instan|ce data |
|00000320| 74 6f 20 61 6e 20 6f 62 | 6a 65 63 74 20 68 61 6e |to an ob|ject han|
|00000330| 64 6c 65 20 2a 2f 00 3b | 23 49 4e 53 54 5f 44 41 |dle */.;|#INST_DA|
|00000340| 54 41 28 3d 23 63 6c 2c | 23 6f 23 29 28 28 23 56 |TA(=#cl,|#o#)((#V|
|00000350| 4f 49 44 2a 23 29 28 28 | 28 23 55 42 59 54 45 2a |OID*#)((|(#UBYTE*|
|00000360| 23 29 6f 29 2b 63 6c 2d | 3e 63 6c 5f 49 6e 73 74 |#)o)+cl-|>cl_Inst|
|00000370| 4f 66 66 73 65 74 29 29 | 00 00 3b 2f 2a 20 73 69 |Offset))|..;/* si|
|00000380| 7a 65 6f 66 20 74 68 65 | 20 69 6e 73 74 61 6e 63 |zeof the| instanc|
|00000390| 65 20 64 61 74 61 20 66 | 6f 72 20 61 20 67 69 76 |e data f|or a giv|
|000003a0| 65 6e 20 63 6c 61 73 73 | 20 2a 2f 00 3b 23 53 49 |en class| */.;#SI|
|000003b0| 5a 45 4f 46 5f 49 4e 53 | 54 41 4e 43 45 28 3d 23 |ZEOF_INS|TANCE(=#|
|000003c0| 63 6c 23 29 28 28 23 63 | 6c 29 2d 3e 63 6c 5f 49 |cl#)((#c|l)->cl_I|
|000003d0| 6e 73 74 4f 66 66 73 65 | 74 2b 23 28 23 63 6c 29 |nstOffse|t+#(#cl)|
|000003e0| 2d 3e 63 6c 5f 49 6e 73 | 74 53 69 7a 65 23 5c 00 |->cl_Ins|tSize#\.|
|000003f0| 3b 2b 20 73 69 7a 65 6f | 66 20 28 73 74 72 75 63 |;+ sizeo|f (struc|
|00000400| 74 20 5f 4f 62 6a 65 63 | 74 20 29 29 00 00 3b 2f |t _Objec|t ))..;/|
|00000410| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000420| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000430| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000440| 2a 2a 2f 00 3b 2f 2a 2a | 2a 20 22 57 68 69 74 65 |**/.;/**|* "White|
|00000450| 20 62 6f 78 22 20 61 63 | 63 65 73 73 20 74 6f 20 | box" ac|cess to |
|00000460| 73 74 72 75 63 74 20 5f | 4f 62 6a 65 63 74 20 2a |struct _|Object *|
|00000470| 2a 2a 2f 00 3b 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |**/.;/**|********|
|00000480| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000490| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000004a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 00 00 3b 2f 2a 00 3b |********|/..;/*.;|
|000004b0| 20 2a 20 57 65 20 68 61 | 76 65 20 74 68 69 73 2c | * We ha|ve this,|
|000004c0| 20 74 68 65 20 69 6e 73 | 74 61 6e 63 65 20 64 61 | the ins|tance da|
|000004d0| 74 61 20 6f 66 20 74 68 | 65 20 72 6f 6f 74 20 63 |ta of th|e root c|
|000004e0| 6c 61 73 73 2c 20 50 52 | 45 43 45 44 49 4e 47 00 |lass, PR|ECEDING.|
|000004f0| 3b 20 2a 20 74 68 65 20 | 22 6f 62 6a 65 63 74 22 |; * the |"object"|
|00000500| 2e 20 20 54 68 69 73 20 | 69 73 20 73 6f 20 74 68 |. This |is so th|
|00000510| 61 74 20 47 61 64 67 65 | 74 20 6f 62 6a 65 63 74 |at Gadge|t object|
|00000520| 73 20 61 72 65 20 47 61 | 64 67 65 74 20 70 6f 69 |s are Ga|dget poi|
|00000530| 6e 74 65 72 73 2c 00 3b | 20 2a 20 61 6e 64 20 73 |nters,.;| * and s|
|00000540| 6f 20 6f 6e 2e 20 20 49 | 66 20 74 68 69 73 20 73 |o on. I|f this s|
|00000550| 74 72 75 63 74 75 72 65 | 20 67 72 6f 77 73 2c 20 |tructure| grows, |
|00000560| 69 74 20 77 69 6c 6c 20 | 61 6c 77 61 79 73 20 68 |it will |always h|
|00000570| 61 76 65 20 6f 5f 43 6c | 61 73 73 00 3b 20 2a 20 |ave o_Cl|ass.; * |
|00000580| 61 74 20 74 68 65 20 65 | 6e 64 2c 20 73 6f 20 74 |at the e|nd, so t|
|00000590| 68 65 20 6d 61 63 72 6f | 20 4f 43 4c 41 53 53 28 |he macro| OCLASS(|
|000005a0| 6f 29 20 77 69 6c 6c 20 | 61 6c 77 61 79 73 20 68 |o) will |always h|
|000005b0| 61 76 65 20 74 68 65 20 | 73 61 6d 65 00 3b 20 2a |ave the |same.; *|
|000005c0| 20 6f 66 66 73 65 74 20 | 62 61 63 6b 20 66 72 6f | offset |back fro|
|000005d0| 6d 20 74 68 65 20 70 6f | 69 6e 74 65 72 20 72 65 |m the po|inter re|
|000005e0| 74 75 72 6e 65 64 20 66 | 72 6f 6d 20 4e 65 77 4f |turned f|rom NewO|
|000005f0| 62 6a 65 63 74 28 29 2e | 00 3b 20 2a 00 3b 20 2a |bject().|.; *.; *|
|00000600| 20 54 68 69 73 20 64 61 | 74 61 20 73 74 72 75 63 | This da|ta struc|
|00000610| 74 75 72 65 20 69 73 20 | 73 75 62 6a 65 63 74 20 |ture is |subject |
|00000620| 74 6f 20 63 68 61 6e 67 | 65 2e 20 20 44 6f 20 6e |to chang|e. Do n|
|00000630| 6f 74 20 75 73 65 20 74 | 68 65 20 6f 5f 4e 6f 64 |ot use t|he o_Nod|
|00000640| 65 00 3b 20 2a 20 65 6d | 62 65 64 64 65 64 20 73 |e.; * em|bedded s|
|00000650| 74 72 75 63 74 75 72 65 | 2e 00 3b 20 2a 2f 00 00 |tructure|..; */..|
|00000660| 80 01 2e 5f 4f 62 6a 65 | 63 74 00 6f 5f 4e 6f 64 |..._Obje|ct.o_Nod|
|00000670| 65 2e 4d 69 6e 4e 6f 64 | 65 00 2a 6f 5f 43 6c 61 |e.MinNod|e.*o_Cla|
|00000680| 73 73 2e 49 43 6c 61 73 | 73 00 80 02 20 80 01 00 |ss.IClas|s... ...|
|00000690| 00 3b 2f 2a 20 63 6f 6e | 76 65 6e 69 65 6e 74 20 |.;/* con|venient |
|000006a0| 74 79 70 65 63 61 73 74 | 20 2a 2f 00 3b 23 5f 4f |typecast| */.;#_O|
|000006b0| 42 4a 28 3d 23 6f 23 29 | 28 28 23 73 74 72 75 63 |BJ(=#o#)|((#struc|
|000006c0| 74 23 5f 4f 62 6a 65 63 | 74 2a 23 29 28 6f 29 29 |t#_Objec|t*#)(o))|
|000006d0| 00 00 3b 2f 2a 20 67 65 | 74 20 22 70 75 62 6c 69 |..;/* ge|t "publi|
|000006e0| 63 22 20 68 61 6e 64 6c | 65 20 6f 6e 20 62 61 73 |c" handl|e on bas|
|000006f0| 65 63 6c 61 73 73 20 69 | 6e 73 74 61 6e 63 65 20 |eclass i|nstance |
|00000700| 66 72 6f 6d 20 72 65 61 | 6c 20 62 65 67 69 6e 6e |from rea|l beginn|
|00000710| 69 6e 67 20 6f 66 20 6f | 62 6a 20 64 61 74 61 20 |ing of o|bj data |
|00000720| 2a 2f 00 3b 23 42 41 53 | 45 4f 42 4a 45 43 54 28 |*/.;#BAS|EOBJECT(|
|00000730| 3d 23 5f 6f 62 6a 23 29 | 28 23 28 23 4f 62 6a 65 |=#_obj#)|(#(#Obje|
|00000740| 63 74 2a 23 29 28 23 5f | 4f 42 4a 28 5f 6f 62 6a |ct*#)(#_|OBJ(_obj|
|00000750| 29 2b 31 29 23 29 00 00 | 3b 2f 2a 20 67 65 74 20 |)+1)#)..|;/* get |
|00000760| 62 61 63 6b 20 74 6f 20 | 6f 62 6a 65 63 74 20 64 |back to |object d|
|00000770| 61 74 61 20 73 74 72 75 | 63 74 20 66 72 6f 6d 20 |ata stru|ct from |
|00000780| 70 75 62 6c 69 63 20 68 | 61 6e 64 6c 65 20 2a 2f |public h|andle */|
|00000790| 00 3b 23 5f 4f 42 4a 45 | 43 54 28 3d 23 6f 23 29 |.;#_OBJE|CT(=#o#)|
|000007a0| 28 23 5f 4f 42 4a 28 6f | 29 2d 23 31 29 00 00 3b |(#_OBJ(o|)-#1)..;|
|000007b0| 2f 2a 20 67 65 74 20 63 | 6c 61 73 73 20 70 6f 69 |/* get c|lass poi|
|000007c0| 6e 74 65 72 20 66 72 6f | 6d 20 61 6e 20 6f 62 6a |nter fro|m an obj|
|000007d0| 65 63 74 20 68 61 6e 64 | 6c 65 20 2a 2f 00 3b 23 |ect hand|le */.;#|
|000007e0| 4f 43 4c 41 53 53 28 3d | 23 6f 23 29 28 23 28 23 |OCLASS(=|#o#)(#(#|
|000007f0| 5f 4f 42 4a 45 43 54 28 | 6f 29 29 2d 3e 6f 5f 43 |_OBJECT(|o))->o_C|
|00000800| 6c 61 73 73 23 29 00 | |lass#). | |
+--------+-------------------------+-------------------------+--------+--------+