Set_Icon.sgm 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!-- $XConsortium: Set_Icon.sgm /main/6 1996/09/08 20:15:43 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.MAN309.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN309.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>Set_Iconified</RefEntryTitle>
  13. <ManVolNum>special file</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Symbol Role="Message">Set_Iconified</Symbol></RefName>
  17. <RefPurpose>set a tool's iconic state
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: Set_Icon.sgm /main/6 1996/09/08 20:15:43 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_Iconified(in boolean <Emphasis>iconic</Emphasis>
  28. [in messageID <Emphasis>commission</Emphasis>]);
  29. </Synopsis>
  30. </RefSynopsisDiv>
  31. <RefSect1>
  32. <Title>DESCRIPTION</Title>
  33. <Para>The
  34. <Symbol Role="Message">Set_Iconified</Symbol> request
  35. sets the iconic state of the optionally specified
  36. window, or of the window primarily associated with the handling
  37. procid (if no window is specified).
  38. </Para>
  39. <Para>The
  40. <Emphasis>iconic</Emphasis> argument
  41. is a Boolean value indicating whether the specified window is (to be)
  42. iconified.
  43. </Para>
  44. <Para>The
  45. <Emphasis>commission</Emphasis> argument
  46. is the ID of the ongoing request, if any, that resulted in the creation
  47. of the window(s) in question.
  48. </Para>
  49. </RefSect1>
  50. <RefSect1>
  51. <Title>APPLICATION USAGE</Title>
  52. <Para>The
  53. &cdeman.ttdt.session.join;, and
  54. &cdeman.ttdt.message.accept;, functions can be used by Xt applications to register for,
  55. and transparently process, the
  56. <Symbol Role="Message">Set_Iconified</Symbol> request.
  57. </Para>
  58. <Para>If the handler does not map window-system windows one-to-one to
  59. commissions or procids, then it may interpret ``iconic state'' liberally.
  60. For example, consider a
  61. <Symbol Role="Message">Display</Symbol> request on an
  62. <Literal>ISO_Latin_1</Literal> file, handled by a
  63. <Command>gnuemacs</Command> instance that then devotes an
  64. <Command>emacs</Command> ``window'' to the file.
  65. ``Windows'' in
  66. <Command>gnuemacs</Command> are not separate X11 windows, and are not separately iconifiable.
  67. However, a
  68. <Symbol Role="Message">Set_Iconified</Symbol> request issued with respect to the ongoing
  69. <Symbol Role="Message">Display</Symbol> request could be liberally interpreted by
  70. <Command>gnuemacs</Command> to mean it should
  71. minimize the screen real estate devoted to the operation, perhaps by
  72. ``burying'' the buffer or dividing its window's real estate among
  73. neighboring windows.
  74. And, if the
  75. <Symbol Role="Message">Display</Symbol> request happens to be the only thing
  76. <Command>emacs</Command> is working on at the
  77. moment, it could instead take a literal interpretation, and actually
  78. iconify itself.
  79. </Para>
  80. </RefSect1>
  81. <RefSect1>
  82. <Title>EXAMPLES</Title>
  83. <Para>The
  84. <Symbol Role="Message">Set_Iconified</Symbol> request can be sent as in the following example:
  85. </Para>
  86. <InformalExample Remap="indent">
  87. <ProgramListing>Tt_message msg = tttk_message_create(0, TT_REQUEST, TT_SESSION,
  88. the_recipient_procid, TTDT_SET_ICONIFIED,
  89. my_callback);
  90. tt_message_iarg_add(msg, TT_IN, Tttk_boolean, 1);
  91. tt_message_send(msg);
  92. </ProgramListing>
  93. </InformalExample>
  94. </RefSect1>
  95. <![ %CDE.C.CDE; [
  96. <RefSect1>
  97. <Title>WARNINGS</Title>
  98. <Para><Symbol Role="Message">Set_Iconified</Symbol> can also be sent as a multicast notice, as an
  99. <Emphasis>edict</Emphasis> to all tools in the scope of the message.
  100. The consequences of doing so can be severe and unexpected.
  101. </Para>
  102. </RefSect1>
  103. ]]>
  104. <RefSect1>
  105. <Title>SEE ALSO</Title>
  106. <Para>&cdeman.tt.message.iarg.add;, &cdeman.tt.message.send;, &cdeman.ttdt.message.accept;, &cdeman.ttdt.session.join;; <Symbol Role="Message">Get_Iconified</Symbol> request.
  107. </Para>
  108. </RefSect1>
  109. </RefEntry>
  110. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->