home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Basic / OTL-BBU1.DMS / in.adf / Includes / intuition / cghooks.bb2 next >
Unknown  |  1994-04-04  |  1.7 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 67 68 6f 6f |;.; $VE|R: cghoo|
|00000010| 6b 73 2e 62 62 32 20 34 | 30 2e 30 20 28 30 32 2e |ks.bb2 4|0.0 (02.|
|00000020| 30 33 2e 39 34 29 00 3b | 00 00 80 12 22 65 78 65 |03.94).;|...."exe|
|00000030| 63 2f 74 79 70 65 73 2e | 62 62 32 22 00 00 80 12 |c/types.|bb2"....|
|00000040| 22 69 6e 74 75 69 74 69 | 6f 6e 2f 69 6e 74 75 69 |"intuiti|on/intui|
|00000050| 74 69 6f 6e 2e 62 62 32 | 22 00 00 3b 2f 2a 00 3b |tion.bb2|"..;/*.;|
|00000060| 20 2a 20 50 61 63 6b 61 | 67 65 20 6f 66 20 69 6e | * Packa|ge of in|
|00000070| 66 6f 72 6d 61 74 69 6f | 6e 20 70 61 73 73 65 64 |formatio|n passed|
|00000080| 20 74 6f 20 63 75 73 74 | 6f 6d 20 61 6e 64 20 27 | to cust|om and '|
|00000090| 62 6f 6f 70 73 69 27 00 | 3b 20 2a 20 67 61 64 67 |boopsi'.|; * gadg|
|000000a0| 65 74 20 22 68 6f 6f 6b | 22 20 66 75 6e 63 74 69 |et "hook|" functi|
|000000b0| 6f 6e 73 2e 20 20 54 68 | 69 73 20 73 74 72 75 63 |ons. Th|is struc|
|000000c0| 74 75 72 65 20 69 73 20 | 52 45 41 44 20 4f 4e 4c |ture is |READ ONL|
|000000d0| 59 2e 00 3b 20 2a 2f 00 | 00 80 01 2e 67 69 5f 50 |Y..; */.|....gi_P|
|000000e0| 65 6e 73 00 44 65 74 61 | 69 6c 50 65 6e 2e 62 00 |ens.Deta|ilPen.b.|
|000000f0| 42 6c 6f 63 6b 50 65 6e | 2e 62 00 80 02 20 80 01 |BlockPen|.b... ..|
|00000100| 00 00 80 01 2e 47 61 64 | 67 65 74 49 6e 66 6f 00 |.....Gad|getInfo.|
|00000110| 00 2a 67 69 5f 53 63 72 | 65 65 6e 2e 53 63 72 65 |.*gi_Scr|een.Scre|
|00000120| 65 6e 00 2a 67 69 5f 57 | 69 6e 64 6f 77 2e 57 69 |en.*gi_W|indow.Wi|
|00000130| 6e 64 6f 77 3b 2f 2a 20 | 6e 75 6c 6c 20 66 6f 72 |ndow;/* |null for|
|00000140| 20 73 63 72 65 65 6e 20 | 67 61 64 67 65 74 73 20 | screen |gadgets |
|00000150| 2a 2f 00 2a 67 69 5f 52 | 65 71 75 65 73 74 65 72 |*/.*gi_R|equester|
|00000160| 2e 52 65 71 75 65 73 74 | 65 72 3b 2f 2a 20 6e 75 |.Request|er;/* nu|
|00000170| 6c 6c 20 69 66 20 6e 6f | 74 20 47 54 59 50 5f 52 |ll if no|t GTYP_R|
|00000180| 45 51 47 41 44 47 45 54 | 20 2a 2f 00 00 3b 2f 2a |EQGADGET| */..;/*|
|00000190| 20 72 65 6e 64 65 72 69 | 6e 67 20 69 6e 66 6f 72 | renderi|ng infor|
|000001a0| 6d 61 74 69 6f 6e 3a 00 | 3b 20 20 20 20 20 2a 20 |mation:.|; * |
|000001b0| 64 6f 6e 27 74 20 75 73 | 65 20 74 68 65 73 65 20 |don't us|e these |
|000001c0| 77 69 74 68 6f 75 74 20 | 63 6c 6f 6e 69 6e 67 2f |without |cloning/|
|000001d0| 6c 6f 63 6b 69 6e 67 2e | 00 3b 20 20 20 20 20 2a |locking.|.; *|
|000001e0| 20 4f 66 66 69 63 69 61 | 6c 20 77 61 79 20 69 73 | Officia|l way is|
|000001f0| 20 74 6f 20 63 61 6c 6c | 20 4f 62 74 61 69 6e 52 | to call| ObtainR|
|00000200| 50 6f 72 74 28 29 00 3b | 20 20 20 20 20 2a 2f 00 |Port().;| */.|
|00000210| 2a 67 69 5f 52 61 73 74 | 50 6f 72 74 2e 52 61 73 |*gi_Rast|Port.Ras|
|00000220| 74 50 6f 72 74 00 2a 67 | 69 5f 4c 61 79 65 72 2e |tPort.*g|i_Layer.|
|00000230| 4c 61 79 65 72 00 00 3b | 2f 2a 20 63 6f 70 79 20 |Layer..;|/* copy |
|00000240| 6f 66 20 64 69 6d 65 6e | 73 69 6f 6e 73 20 6f 66 |of dimen|sions of|
|00000250| 20 73 63 72 65 65 6e 2f | 77 69 6e 64 6f 77 2f 67 | screen/|window/g|
|00000260| 30 30 2f 72 65 71 28 2f | 67 72 6f 75 70 29 00 3b |00/req(/|group).;|
|00000270| 20 20 20 20 20 2a 20 74 | 68 61 74 20 67 61 64 67 | * t|hat gadg|
|00000280| 65 74 20 72 65 73 69 64 | 65 73 20 69 6e 2e 20 4c |et resid|es in. L|
|00000290| 65 66 74 2f 54 6f 70 20 | 6f 66 20 74 68 69 73 20 |eft/Top |of this |
|000002a0| 62 6f 78 20 69 73 00 3b | 20 20 20 20 20 2a 20 6f |box is.;| * o|
|000002b0| 66 66 73 65 74 20 66 72 | 6f 6d 20 77 69 6e 64 6f |ffset fr|om windo|
|000002c0| 77 20 6d 6f 75 73 65 20 | 63 6f 6f 72 64 69 6e 61 |w mouse |coordina|
|000002d0| 74 65 73 20 74 6f 20 67 | 61 64 67 65 74 20 63 6f |tes to g|adget co|
|000002e0| 6f 72 64 69 6e 61 74 65 | 73 00 3b 20 20 20 20 20 |ordinate|s.; |
|000002f0| 2a 20 20 20 73 63 72 65 | 65 6e 20 67 61 64 67 65 |* scre|en gadge|
|00000300| 74 73 3a 20 20 20 20 20 | 30 2c 30 20 28 66 72 6f |ts: |0,0 (fro|
|00000310| 6d 20 73 63 72 65 65 6e | 20 63 6f 6f 72 64 73 29 |m screen| coords)|
|00000320| 00 3b 20 20 20 20 20 2a | 20 77 69 6e 64 6f 77 20 |.; *| window |
|00000330| 67 61 64 67 65 74 73 20 | 28 6e 6f 20 67 30 30 29 |gadgets |(no g00)|
|00000340| 3a 20 20 30 2c 30 00 3b | 20 20 20 20 20 2a 20 47 |: 0,0.;| * G|
|00000350| 54 59 50 5f 47 5a 5a 47 | 41 44 47 45 54 73 20 28 |TYP_GZZG|ADGETs (|
|00000360| 62 6f 72 64 65 72 6c 61 | 79 65 72 29 3a 20 20 20 |borderla|yer): |
|00000370| 20 30 2c 30 00 3b 20 20 | 20 20 20 2a 20 47 5a 5a | 0,0.; | * GZZ|
|00000380| 20 69 6e 6e 65 72 6c 61 | 79 65 72 20 67 61 64 67 | innerla|yer gadg|
|00000390| 65 74 3a 20 20 20 20 62 | 6f 72 64 65 72 6c 65 66 |et: b|orderlef|
|000003a0| 74 2c 20 62 6f 72 64 65 | 72 74 6f 70 00 3b 20 20 |t, borde|rtop.; |
|000003b0| 20 20 20 2a 20 52 65 71 | 75 65 73 74 65 72 20 67 | * Req|uester g|
|000003c0| 61 64 67 65 74 73 3a 20 | 20 20 20 72 65 71 6c 65 |adgets: | reqle|
|000003d0| 66 74 2c 20 72 65 71 74 | 6f 70 00 3b 20 20 20 20 |ft, reqt|op.; |
|000003e0| 20 2a 2f 00 67 69 5f 44 | 6f 6d 61 69 6e 2e 49 42 | */.gi_D|omain.IB|
|000003f0| 6f 78 00 00 3b 2f 2a 20 | 74 68 65 73 65 20 61 72 |ox..;/* |these ar|
|00000400| 65 20 74 68 65 20 70 65 | 6e 73 20 66 6f 72 20 74 |e the pe|ns for t|
|00000410| 68 65 20 77 69 6e 64 6f | 77 20 6f 72 20 73 63 72 |he windo|w or scr|
|00000420| 65 65 6e 20 2a 2f 00 67 | 69 5f 50 65 6e 73 2e 67 |een */.g|i_Pens.g|
|00000430| 69 5f 50 65 6e 73 00 00 | 3b 2f 2a 20 74 68 65 20 |i_Pens..|;/* the |
|00000440| 44 65 74 61 69 6c 20 61 | 6e 64 20 42 6c 6f 63 6b |Detail a|nd Block|
|00000450| 20 70 65 6e 73 20 69 6e | 20 67 69 5f 44 72 49 6e | pens in| gi_DrIn|
|00000460| 66 6f 2d 3e 64 72 69 5f | 50 65 6e 73 5b 5d 20 61 |fo->dri_|Pens[] a|
|00000470| 72 65 00 3b 20 20 20 20 | 20 2a 20 66 6f 72 20 74 |re.; | * for t|
|00000480| 68 65 20 73 63 72 65 65 | 6e 2e 20 55 73 65 20 74 |he scree|n. Use t|
|00000490| 68 65 20 61 62 6f 76 65 | 20 66 6f 72 20 77 69 6e |he above| for win|
|000004a0| 64 6f 77 2d 73 65 6e 73 | 69 74 69 76 65 00 3b 20 |dow-sens|itive.; |
|000004b0| 20 20 20 20 2a 20 63 6f | 6c 6f 72 73 2e 00 3b 20 | * co|lors..; |
|000004c0| 20 20 20 20 2a 2f 00 2a | 67 69 5f 44 72 49 6e 66 | */.*|gi_DrInf|
|000004d0| 6f 2e 44 72 61 77 49 6e | 66 6f 00 00 3b 2f 2a 20 |o.DrawIn|fo..;/* |
|000004e0| 72 65 73 65 72 76 65 64 | 20 73 70 61 63 65 3a 20 |reserved| space: |
|000004f0| 74 68 69 73 20 73 74 72 | 75 63 74 75 72 65 20 69 |this str|ucture i|
|00000500| 73 20 65 78 74 65 6e 73 | 69 62 6c 65 00 3b 20 20 |s extens|ible.; |
|00000510| 20 20 20 2a 20 61 6e 79 | 77 61 79 2c 20 62 75 74 | * any|way, but|
|00000520| 20 75 73 69 6e 67 20 74 | 68 65 73 65 20 73 61 76 | using t|hese sav|
|00000530| 65 73 20 73 6f 6d 65 20 | 72 65 63 6f 6d 70 69 6c |es some |recompil|
|00000540| 61 74 69 6f 6e 00 3b 20 | 20 20 20 20 2a 2f 00 67 |ation.; | */.g|
|00000550| 69 5f 52 65 73 65 72 76 | 65 64 2e 6c 5b 36 5d 00 |i_Reserv|ed.l[6].|
|00000560| 80 02 20 80 01 00 00 3b | 2f 2a 2a 2a 20 73 79 73 |.. ....;|/*** sys|
|00000570| 74 65 6d 20 70 72 69 76 | 61 74 65 20 64 61 74 61 |tem priv|ate data|
|00000580| 20 73 74 72 75 63 74 75 | 72 65 20 66 6f 72 20 6e | structu|re for n|
|00000590| 6f 77 20 2a 2a 2a 2f 00 | 3b 2f 2a 20 70 72 6f 70 |ow ***/.|;/* prop|
|000005a0| 20 67 61 64 67 65 74 20 | 65 78 74 72 61 20 69 6e | gadget |extra in|
|000005b0| 66 6f 20 2a 2f 00 80 01 | 2e 50 47 58 00 70 67 78 |fo */...|.PGX.pgx|
|000005c0| 5f 43 6f 6e 74 61 69 6e | 65 72 2e 49 42 6f 78 00 |_Contain|er.IBox.|
|000005d0| 70 67 78 5f 4e 65 77 4b | 6e 6f 62 2e 49 42 6f 78 |pgx_NewK|nob.IBox|
|000005e0| 00 80 02 20 80 01 00 00 | 3b 2f 2a 20 74 68 69 73 |... ....|;/* this|
|000005f0| 20 63 61 73 74 73 20 4d | 75 74 75 61 6c 45 78 63 | casts M|utualExc|
|00000600| 6c 75 64 65 20 66 6f 72 | 20 65 61 73 79 20 61 73 |lude for| easy as|
|00000610| 73 69 67 6e 6d 65 6e 74 | 20 6f 66 20 61 20 68 6f |signment| of a ho|
|00000620| 6f 6b 00 3b 20 2a 20 70 | 6f 69 6e 74 65 72 20 74 |ok.; * p|ointer t|
|00000630| 6f 20 74 68 65 20 75 6e | 75 73 65 64 20 4d 75 74 |o the un|used Mut|
|00000640| 75 61 6c 45 78 63 6c 75 | 64 65 20 66 69 65 6c 64 |ualExclu|de field|
|00000650| 20 6f 66 20 61 20 63 75 | 73 74 6f 6d 20 67 61 64 | of a cu|stom gad|
|00000660| 67 65 74 00 3b 20 2a 2f | 00 3b 23 43 55 53 54 4f |get.; */|.;#CUSTO|
|00000670| 4d 5f 48 4f 4f 4b 28 3d | 23 67 61 64 67 65 74 23 |M_HOOK(=|#gadget#|
|00000680| 29 28 23 28 23 73 74 72 | 75 63 74 23 48 6f 6f 6b |)(#(#str|uct#Hook|
|00000690| 2a 23 29 28 23 67 61 64 | 67 65 74 29 2d 3e 4d 75 |*#)(#gad|get)->Mu|
|000006a0| 74 75 61 6c 45 78 63 6c | 75 64 65 29 00 |tualExcl|ude). |
+--------+-------------------------+-------------------------+--------+--------+