Set_Geom.sgm 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!-- $XConsortium: Set_Geom.sgm /main/7 1996/09/08 20:15:35 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN308.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN308.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>Set_Geometry</RefEntryTitle>
  13. <ManVolNum>special file</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Symbol Role="Message">Set_Geometry</Symbol></RefName>
  17. <RefPurpose>set a tool's on-screen geometry
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: Set_Geom.sgm /main/7 1996/09/08 20:15:35 rws $-->
  21. <!-- CDE Common Source Format, Version 1.0.0-->
  22. <!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  23. <!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  24. <!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  25. <!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  26. <RefSynopsisDiv>
  27. <Synopsis>Set_Geometry(inout width <Symbol Role="Variable">w</Symbol>,
  28. inout height <Emphasis>h</Emphasis>,
  29. inout xOffset <Symbol Role="Variable">x</Symbol>,
  30. inout yOffset <Symbol Role="Variable">y</Symbol>
  31. [in messageID <Emphasis>commission</Emphasis>]);
  32. </Synopsis>
  33. </RefSynopsisDiv>
  34. <RefSect1>
  35. <Title>DESCRIPTION</Title>
  36. <Para>The
  37. <Symbol Role="Message">Set_Geometry</Symbol> request
  38. sets the on-screen geometry of the optionally specified
  39. window, or of the window primarily associated with the recipient
  40. procid (if no window is specified).
  41. </Para>
  42. <Para>The
  43. <Symbol Role="Variable">w</Symbol>, <Emphasis>h</Emphasis>, <Symbol Role="Variable">x</Symbol> and
  44. <Symbol Role="Variable">y</Symbol> arguments are integer geometry values, in pixels,
  45. representing width, height, x-coordinate and y-coordinate,
  46. respectively.
  47. Negative offset values
  48. are interpreted according to the
  49. <![ %CDE.C.CDE; [<Filename MoreInfo="RefEntry">X11</Filename>(7) man page.
  50. ]]><![ %CDE.C.XO; [&str-Zl;.
  51. ]]>If any of these arguments are unset, that part of the geometry need
  52. not be changed.
  53. The return values are the actual
  54. new values, in case they differ from the requested new values.
  55. </Para>
  56. <Para>The
  57. <Emphasis>commission</Emphasis> argument
  58. is the ID of the ongoing request, if any, that resulted in the creation
  59. of the window in question.
  60. </Para>
  61. </RefSect1>
  62. <RefSect1>
  63. <Title>APPLICATION USAGE</Title>
  64. <Para>The
  65. &cdeman.ttdt.session.join;, and
  66. &cdeman.ttdt.message.accept;, functions can be used by Xt applications to register for,
  67. and transparently process, the
  68. <Symbol Role="Message">Set_Geometry</Symbol> request.
  69. </Para>
  70. </RefSect1>
  71. <RefSect1>
  72. <Title>EXAMPLES</Title>
  73. <Para>The
  74. <Symbol Role="Message">Set_Geometry</Symbol> request can be sent as in the following example:
  75. </Para>
  76. <InformalExample Remap="indent">
  77. <ProgramListing>Tt_message msg = tttk_message_create(0, TT_REQUEST, TT_SESSION,
  78. the_recipient_procid, TTDT_SET_GEOMETRY,
  79. my_callback);
  80. tt_message_iarg_add(msg, TT_INOUT, Tttk_width, 500);
  81. tt_message_iarg_add(msg, TT_INOUT, Tttk_height, 500);
  82. tt_message_arg_add(msg, TT_INOUT, Tttk_xoffset, 0); /* no value */
  83. tt_message_arg_add(msg, TT_INOUT, Tttk_yoffset, 0); /* no value */
  84. tt_message_send(msg);
  85. </ProgramListing>
  86. </InformalExample>
  87. </RefSect1>
  88. <RefSect1>
  89. <Title>SEE ALSO</Title>
  90. <Para>&cdeman.tt.message.arg.add;, &cdeman.tt.message.iarg.add;, &cdeman.tt.message.send;, &cdeman.ttdt.message.accept;, &cdeman.ttdt.session.join;; <Symbol Role="Message">Get_Geometry</Symbol> request.
  91. </Para>
  92. </RefSect1>
  93. </RefEntry>
  94. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->