DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: X

⟦456009601⟧

    Length: 2720 (0xaa0)
    Names: »XTranslateCoordinates.3X«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat3/XTranslateCoordinates.3X« 

Default Hex Dump

0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f   ┆   _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74   ┆ u_ a_ l           Library Funct┆
0x040…060 69 6f 6e 73 08 58 54 72 61 6e 73 6c 61 74 65 43 6f 6f 72 64 69 6e 61 74 65 73 28 33 58 29 0a 0a   ┆ions XTranslateCoordinates(3X)  ┆
0x060…080 0a 0a 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20   ┆  N N N NA A A AM M M ME E E E  ┆
0x080…0a0 20 20 20 20 58 54 72 61 6e 73 6c 61 74 65 43 6f 6f 72 64 69 6e 61 74 65 73 20 2d 20 74 72 61 6e   ┆    XTranslateCoordinates - tran┆
0x0a0…0c0 73 6c 61 74 65 20 77 69 6e 64 6f 77 20 63 6f 6f 72 64 69 6e 61 74 65 73 0a 0a 53 08 53 08 53 08   ┆slate window coordinates  S S S ┆
0x0c0…0e0 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58   ┆SY Y Y YN N N NT T T TA A A AX X┆
0x0e0…100 08 58 08 58 0a 20 20 20 20 20 42 6f 6f 6c 20 58 54 72 61 6e 73 6c 61 74 65 43 6f 6f 72 64 69 6e   ┆ X X      Bool XTranslateCoordin┆
0x100…120 61 74 65 73 28 5f 08 64 5f 08 69 5f 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 2c 20 5f 08 73 5f   ┆ates(_ d_ i_ s_ p_ l_ a_ y, _ s_┆
0x120…140 08 72 5f 08 63 5f 5f 08 77 2c 20 5f 08 64 5f 08 65 5f 08 73 5f 08 74 5f 5f 08 77 2c 20 5f 08 73   ┆ r_ c__ w, _ d_ e_ s_ t__ w, _ s┆
0x140…160 5f 08 72 5f 08 63 5f 5f 08 78 2c 0a 20 20 20 20 20 5f 08 73 5f 08 72 5f 08 63 5f 5f 08 79 2c 20   ┆_ r_ c__ x,      _ s_ r_ c__ y, ┆
0x160…180 5f 08 64 5f 08 65 5f 08 73 5f 08 74 5f 5f 08 78 5f 5f 08 72 5f 08 65 5f 08 74 5f 08 75 5f 08 72   ┆_ d_ e_ s_ t__ x__ r_ e_ t_ u_ r┆
0x180…1a0 5f 08 6e 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆_ n,                            ┆
0x1a0…1c0 20 20 20 20 20 20 5f 08 64 5f 08 65 5f 08 73 5f 08 74 5f 5f 08 79 5f 5f 08 72 5f 08 65 5f 08 74   ┆      _ d_ e_ s_ t__ y__ r_ e_ t┆
0x1c0…1e0 5f 08 75 5f 08 72 5f 08 6e 2c 20 5f 08 63 5f 08 68 5f 08 69 5f 08 6c 5f 08 64 5f 5f 08 72 5f 08   ┆_ u_ r_ n, _ c_ h_ i_ l_ d__ r_ ┆
0x1e0…200 65 5f 08 74 5f 08 75 5f 08 72 5f 08 6e 29 0a 20 20 20 20 20 20 20 20 20 20 20 44 69 73 70 6c 61   ┆e_ t_ u_ r_ n)            Displa┆
0x200…220 79 20 2a 5f 08 64 5f 08 69 5f 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 3b 0a 20 20 20 20 20 20   ┆y *_ d_ i_ s_ p_ l_ a_ y;       ┆
0x220…240 20 20 20 20 20 57 69 6e 64 6f 77 20 5f 08 73 5f 08 72 5f 08 63 5f 5f 08 77 2c 20 5f 08 64 5f 08   ┆     Window _ s_ r_ c__ w, _ d_ ┆
0x240…260 65 5f 08 73 5f 08 74 5f 5f 08 77 3b 0a 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 5f 08 73 5f   ┆e_ s_ t__ w;            int _ s_┆
0x260…280 08 72 5f 08 63 5f 5f 08 78 2c 20 5f 08 73 5f 08 72 5f 08 63 5f 5f 08 79 3b 0a 20 20 20 20 20 20   ┆ r_ c__ x, _ s_ r_ c__ y;       ┆
0x280…2a0 20 20 20 20 20 69 6e 74 20 2a 5f 08 64 5f 08 65 5f 08 73 5f 08 74 5f 5f 08 78 5f 5f 08 72 5f 08   ┆     int *_ d_ e_ s_ t__ x__ r_ ┆
0x2a0…2c0 65 5f 08 74 5f 08 75 5f 08 72 5f 08 6e 2c 20 2a 5f 08 64 5f 08 65 5f 08 73 5f 08 74 5f 5f 08 79   ┆e_ t_ u_ r_ n, *_ d_ e_ s_ t__ y┆
0x2c0…2e0 5f 5f 08 72 5f 08 65 5f 08 74 5f 08 75 5f 08 72 5f 08 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20   ┆__ r_ e_ t_ u_ r_ n;            ┆
0x2e0…300 57 69 6e 64 6f 77 20 2a 5f 08 63 5f 08 68 5f 08 69 5f 08 6c 5f 08 64 5f 5f 08 72 5f 08 65 5f 08   ┆Window *_ c_ h_ i_ l_ d__ r_ e_ ┆
0x300…320 74 5f 08 75 5f 08 72 5f 08 6e 3b 0a 0a 41 08 41 08 41 08 41 52 08 52 08 52 08 52 47 08 47 08 47   ┆t_ u_ r_ n;  A A A AR R R RG G G┆
0x320…340 08 47 55 08 55 08 55 08 55 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 4e 08 4e 08 4e 08 4e 54 08   ┆ GU U U UM M M ME E E EN N N NT ┆
0x340…360 54 08 54 08 54 53 08 53 08 53 08 53 0a 20 20 20 20 20 5f 08 63 5f 08 68 5f 08 69 5f 08 6c 5f 08   ┆T T TS S S S      _ c_ h_ i_ l_ ┆
0x360…380 64 5f 5f 08 72 5f 08 65 5f 08 74 5f 08 75 5f 08 72 5f 08 6e 0a 20 20 20 20 20 20 20 20 20 20 20   ┆d__ r_ e_ t_ u_ r_ n            ┆
0x380…3a0 20 20 20 20 52 65 74 75 72 6e 73 20 74 68 65 20 63 68 69 6c 64 20 69 66 20 74 68 65 20 63 6f 6f   ┆    Returns the child if the coo┆
0x3a0…3c0 72 64 69 6e 61 74 65 73 20 61 72 65 20 63 6f 6e 74 61 69 6e 65 64 0a 20 20 20 20 20 20 20 20 20   ┆rdinates are contained          ┆
0x3c0…3e0 20 20 20 20 20 20 69 6e 20 61 20 6d 61 70 70 65 64 20 63 68 69 6c 64 20 6f 66 20 74 68 65 20 64   ┆      in a mapped child of the d┆
0x3e0…400 65 73 74 69 6e 61 74 69 6f 6e 20 77 69 6e 64 6f 77 2e 0a 0a 20 20 20 20 20 5f 08 64 5f 08 65 5f   ┆estination window.       _ d_ e_┆
0x400…420 08 73 5f 08 74 5f 5f 08 77 20 20 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 64 65 73 74 69   ┆ s_ t__ w    Specifies the desti┆
0x420…440 6e 61 74 69 6f 6e 20 77 69 6e 64 6f 77 2e 0a 0a 20 20 20 20 20 5f 08 64 5f 08 65 5f 08 73 5f 08   ┆nation window.       _ d_ e_ s_ ┆
0x440…460 74 5f 5f 08 78 5f 5f 08 72 5f 08 65 5f 08 74 5f 08 75 5f 08 72 5f 08 6e 0a 20 20 20 20 20 5f 08   ┆t__ x__ r_ e_ t_ u_ r_ n      _ ┆
0x460…480 64 5f 08 65 5f 08 73 5f 08 74 5f 5f 08 79 5f 5f 08 72 5f 08 65 5f 08 74 5f 08 75 5f 08 72 5f 08   ┆d_ e_ s_ t__ y__ r_ e_ t_ u_ r_ ┆
0x480…4a0 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 74 75 72 6e 20 74 68 65 20 78 20 61 6e   ┆n                Return the x an┆
0x4a0…4c0 64 20 79 20 63 6f 6f 72 64 69 6e 61 74 65 73 20 77 69 74 68 69 6e 20 74 68 65 20 64 65 73 74 69   ┆d y coordinates within the desti┆
0x4c0…4e0 6e 61 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 69 6f 6e 20 77 69 6e 64 6f 77 2e 0a   ┆na-                tion window. ┆
0x4e0…500 0a 20 20 20 20 20 5f 08 64 5f 08 69 5f 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 20 20 20 53 70   ┆      _ d_ i_ s_ p_ l_ a_ y   Sp┆
0x500…520 65 63 69 66 69 65 73 20 74 68 65 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 74 6f 20 74 68 65 20 58 20   ┆ecifies the connection to the X ┆
0x520…540 73 65 72 76 65 72 2e 0a 0a 20 20 20 20 20 5f 08 73 5f 08 72 5f 08 63 5f 5f 08 77 20 20 20 20 20   ┆server.       _ s_ r_ c__ w     ┆
0x540…560 53 70 65 63 69 66 69 65 73 20 74 68 65 20 73 6f 75 72 63 65 20 77 69 6e 64 6f 77 2e 0a 0a 20 20   ┆Specifies the source window.    ┆
0x560…580 20 20 20 5f 08 73 5f 08 72 5f 08 63 5f 5f 08 78 0a 20 20 20 20 20 5f 08 73 5f 08 72 5f 08 63 5f   ┆   _ s_ r_ c__ x      _ s_ r_ c_┆
0x580…5a0 5f 08 79 20 20 20 20 20 53 70 65 63 69 66 79 20 74 68 65 20 78 20 61 6e 64 20 79 20 63 6f 6f 72   ┆_ y     Specify the x and y coor┆
0x5a0…5c0 64 69 6e 61 74 65 73 20 77 69 74 68 69 6e 20 74 68 65 20 73 6f 75 72 63 65 0a 20 20 20 20 20 20   ┆dinates within the source       ┆
0x5c0…5e0 20 20 20 20 20 20 20 20 20 77 69 6e 64 6f 77 2e 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45   ┆         window.  D D D DE E E E┆
0x5e0…600 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08   ┆S S S SC C C CR R R RI I I IP P ┆
0x600…620 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a   ┆P PT T T TI I I IO O O ON N N N ┆
0x620…640 20 20 20 20 20 54 68 65 20 5f 08 58 5f 08 54 5f 08 72 5f 08 61 5f 08 6e 5f 08 73 5f 08 6c 5f 08   ┆     The _ X_ T_ r_ a_ n_ s_ l_ ┆
0x640…660 61 5f 08 74 5f 08 65 5f 08 43 5f 08 6f 5f 08 6f 5f 08 72 5f 08 64 5f 08 69 5f 08 6e 5f 08 61 5f   ┆a_ t_ e_ C_ o_ o_ r_ d_ i_ n_ a_┆
0x660…680 08 74 5f 08 65 5f 08 73 20 66 75 6e 63 74 69 6f 6e 20 74 61 6b 65 73 20 74 68 65 20 73 72 63 5f   ┆ t_ e_ s function takes the src_┆
0x680…6a0 78 20 61 6e 64 20 73 72 63 5f 79 0a 20 20 20 20 20 63 6f 6f 72 64 69 6e 61 74 65 73 20 72 65 6c   ┆x and src_y      coordinates rel┆
0x6a0…6c0 61 74 69 76 65 20 74 6f 20 74 68 65 20 73 6f 75 72 63 65 20 77 69 6e 64 6f 77 27 73 20 6f 72 69   ┆ative to the source window's ori┆
0x6c0…6e0 67 69 6e 20 61 6e 64 0a 20 20 20 20 20 72 65 74 75 72 6e 73 20 74 68 65 73 65 20 63 6f 6f 72 64   ┆gin and      returns these coord┆
0x6e0…700 69 6e 61 74 65 73 20 74 6f 20 64 65 73 74 5f 78 5f 72 65 74 75 72 6e 20 61 6e 64 20 64 65 73 74   ┆inates to dest_x_return and dest┆
0x700…720 5f 79 5f 72 65 74 75 72 6e 0a 20 20 20 20 20 72 65 6c 61 74 69 76 65 20 74 6f 20 74 68 65 20 64   ┆_y_return      relative to the d┆
0x720…740 65 73 74 69 6e 61 74 69 6f 6e 20 77 69 6e 64 6f 77 27 73 20 6f 72 69 67 69 6e 2e 20 20 49 66 20   ┆estination window's origin.  If ┆
0x740…760 5f 08 58 5f 08 54 5f 08 72 5f 08 61 5f 08 6e 5f 08 73 5f 08 6c 5f 08 61 5f 08 2d 0a 20 20 20 20   ┆_ X_ T_ r_ a_ n_ s_ l_ a_ -     ┆
0x760…780 20 5f 08 74 5f 08 65 5f 08 43 5f 08 6f 5f 08 6f 5f 08 72 5f 08 64 5f 08 69 5f 08 6e 5f 08 61 5f   ┆ _ t_ e_ C_ o_ o_ r_ d_ i_ n_ a_┆
0x780…7a0 08 74 5f 08 65 5f 08 73 20 72 65 74 75 72 6e 73 20 7a 65 72 6f 2c 20 73 72 63 5f 77 20 61 6e 64   ┆ t_ e_ s returns zero, src_w and┆
0x7a0…7c0 20 64 65 73 74 5f 77 20 61 72 65 20 6f 6e 20 64 69 66 2d 0a 20 20 20 20 20 66 65 72 65 6e 74 20   ┆ dest_w are on dif-      ferent ┆
0x7c0…7e0 73 63 72 65 65 6e 73 2c 20 61 6e 64 20 64 65 73 74 5f 78 5f 72 65 74 75 72 6e 20 61 6e 64 20 64   ┆screens, and dest_x_return and d┆
0x7e0…800 65 73 74 5f 79 5f 72 65 74 75 72 6e 20 61 72 65 0a 20 20 20 20 20 7a 65 72 6f 2e 20 20 49 66 20   ┆est_y_return are      zero.  If ┆
0x800…820 74 68 65 20 63 6f 6f 72 64 69 6e 61 74 65 73 20 61 72 65 20 63 6f 6e 74 61 69 6e 65 64 20 69 6e   ┆the coordinates are contained in┆
0x820…840 20 61 20 6d 61 70 70 65 64 20 63 68 69 6c 64 20 6f 66 0a 20 20 20 20 20 64 65 73 74 5f 77 2c 20   ┆ a mapped child of      dest_w, ┆
0x840…860 74 68 61 74 20 63 68 69 6c 64 20 69 73 20 72 65 74 75 72 6e 65 64 20 74 6f 20 63 68 69 6c 64 5f   ┆that child is returned to child_┆
0x860…880 72 65 74 75 72 6e 2e 20 20 4f 74 68 65 72 77 69 73 65 2c 0a 20 20 20 20 20 63 68 69 6c 64 5f 72   ┆return.  Otherwise,      child_r┆
0x880…8a0 65 74 75 72 6e 20 69 73 20 73 65 74 20 74 6f 20 5f 08 4e 5f 08 6f 5f 08 6e 5f 08 65 2e 0a 0a 20   ┆eturn is set to _ N_ o_ n_ e.   ┆
0x8a0…8c0 20 20 20 20 5f 08 58 5f 08 54 5f 08 72 5f 08 61 5f 08 6e 5f 08 73 5f 08 6c 5f 08 61 5f 08 74 5f   ┆    _ X_ T_ r_ a_ n_ s_ l_ a_ t_┆
0x8c0…8e0 08 65 5f 08 43 5f 08 6f 5f 08 6f 5f 08 72 5f 08 64 5f 08 69 5f 08 6e 5f 08 61 5f 08 74 5f 08 65   ┆ e_ C_ o_ o_ r_ d_ i_ n_ a_ t_ e┆
0x8e0…900 5f 08 73 20 63 61 6e 20 67 65 6e 65 72 61 74 65 20 61 20 5f 08 42 5f 08 61 5f 08 64 5f 08 57 5f   ┆_ s can generate a _ B_ a_ d_ W_┆
0x900…920 08 69 5f 08 6e 5f 08 64 5f 08 6f 5f 08 77 20 65 72 72 6f 72 2e 0a 0a 44 08 44 08 44 08 44 49 08   ┆ i_ n_ d_ o_ w error.  D D D DI ┆
0x920…940 49 08 49 08 49 41 08 41 08 41 08 41 47 08 47 08 47 08 47 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08   ┆I I IA A A AG G G GN N N NO O O ┆
0x940…960 4f 53 08 53 08 53 08 53 54 08 54 08 54 08 54 49 08 49 08 49 08 49 43 08 43 08 43 08 43 53 08 53   ┆OS S S ST T T TI I I IC C C CS S┆
0x960…980 08 53 08 53 0a 20 20 20 20 20 5f 08 42 5f 08 61 5f 08 64 5f 08 57 5f 08 69 5f 08 6e 5f 08 64 5f   ┆ S S      _ B_ a_ d_ W_ i_ n_ d_┆
0x980…9a0 08 6f 5f 08 77 20 41 20 76 61 6c 75 65 20 66 6f 72 20 61 20 57 69 6e 64 6f 77 20 61 72 67 75 6d   ┆ o_ w A value for a Window argum┆
0x9a0…9c0 65 6e 74 20 64 6f 65 73 20 6e 6f 74 20 6e 61 6d 65 20 61 0a 20 20 20 20 20 20 20 20 20 20 20 20   ┆ent does not name a             ┆
0x9c0…9e0 20 20 20 64 65 66 69 6e 65 64 20 57 69 6e 64 6f 77 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45   ┆   defined Window.  S S S SE E E┆
0x9e0…a00 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f   ┆ EE E E E A A A AL L L LS S S SO┆
0xa00…a20 08 4f 08 4f 08 4f 0a 20 20 20 20 20 5f 08 58 5f 08 6c 5f 08 69 5f 08 62 20 2d 20 5f 08 43 20 5f   ┆ O O O      _ X_ l_ i_ b - _ C _┆
0xa20…a40 08 4c 5f 08 61 5f 08 6e 5f 08 67 5f 08 75 5f 08 61 5f 08 67 5f 08 65 20 5f 08 58 20 5f 08 49 5f   ┆ L_ a_ n_ g_ u_ a_ g_ e _ X _ I_┆
0xa40…a60 08 6e 5f 08 74 5f 08 65 5f 08 72 5f 08 66 5f 08 61 5f 08 63 5f 08 65 0a 0a 41 75 67 75 73 74 20   ┆ n_ t_ e_ r_ f_ a_ c_ e  August ┆
0xa60…a80 31 39 39 31 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆1991                            ┆
0xa80…aa0 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a   ┆ TX Programmer's Reference      ┆