EdGetSiz.sgm 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!-- $XConsortium: EdGetSiz.sgm /main/6 1996/09/08 20:03:21 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.XCSA.MAN28.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN28.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtEditorGetSizeHints</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtEditorGetSizeHints</Function></RefName>
  17. <RefPurpose>retrieve sizing information from a DtEditor widget
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- CDE Common Source Format, Version 1.0.0-->
  21. <!-- *************************************************************************-->
  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. <!-- ************************************************************************-->
  27. <RefSynopsisDiv>
  28. <FuncSynopsis Remap="ANSI">
  29. <FuncSynopsisInfo>#include &lt;Dt/Editor.h>
  30. </FuncSynopsisInfo>
  31. <FuncDef>void <Function>DtEditorGetSizeHints</Function></FuncDef>
  32. <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
  33. <ParamDef>XSizeHints *<Parameter>pHints</Parameter></ParamDef>
  34. </FuncSynopsis>
  35. </RefSynopsisDiv>
  36. <RefSect1>
  37. <Title>DESCRIPTION</Title>
  38. <Para>The
  39. <Function>DtEditorGetSizeHints</Function> function retrieves the current sizing information from
  40. a DtEditor widget, allowing the application to compute appropriate size hints
  41. for the window manager.
  42. </Para>
  43. <Para>The
  44. <Symbol Role="Variable">widget</Symbol> argument specifies the DtEditor widget ID.
  45. </Para>
  46. <Para>The
  47. <Emphasis>pHints</Emphasis> argument is a pointer to an
  48. <StructName Role="typedef">XSizeHints</StructName> structure into which the current sizing information is placed.
  49. The fields in this structure do not have to contain any
  50. values when it is passed in.
  51. </Para>
  52. <Para>Upon successful completion, the
  53. <Function>DtEditorGetSizeHints</Function> function fills in the following fields of the
  54. <StructName Role="typedef">XSizeHints</StructName> structure: minimum width (
  55. <Emphasis>min_width</Emphasis>) and height (
  56. <Emphasis>min_height</Emphasis>); width (
  57. <Emphasis>width_inc</Emphasis>) and height (
  58. <Emphasis>height_inc</Emphasis>) increment; and base width (
  59. <Emphasis>base_width</Emphasis>) and height (
  60. <Emphasis>base_height</Emphasis>); otherwise, the structure is unchanged.
  61. The Flags field is set to:
  62. </Para>
  63. <InformalExample Remap="indent">
  64. <ProgramListing>PMinSize | PResizeInc | PBaseSize
  65. </ProgramListing>
  66. </InformalExample>
  67. </RefSect1>
  68. <RefSect1>
  69. <Title>RETURN VALUE</Title>
  70. <Para>The
  71. <Function>DtEditorGetSizeHints</Function> function returns no value.
  72. </Para>
  73. </RefSect1>
  74. <RefSect1>
  75. <Title>EXAMPLES</Title>
  76. <Para>The following code segment sets the resize increment and minimum window
  77. size properties for the application.
  78. </Para>
  79. <InformalExample Remap="indent">
  80. <ProgramListing>Widget editor,
  81. application_shell;
  82. Display display;
  83. XSizeHints size_hints;
  84. long supplied_return;
  85. XGetWMSizeHints(display, XtWindow(application_shell),
  86. &amp;size_hints, &amp;supplied_return, XA_WM_NORMAL_HINTS);
  87. DtEditorGetSizeHints(editor, &amp;size_hints);
  88. XSetWMSizeHints(display, XtWindow(application_shell),
  89. &amp;size_hints, XA_WM_NORMAL_HINTS);
  90. </ProgramListing>
  91. </InformalExample>
  92. </RefSect1>
  93. <RefSect1>
  94. <Title>SEE ALSO</Title>
  95. <Para>&cdeman.Dt.Editor.h;, &cdeman.DtEditor;.</Para>
  96. </RefSect1>
  97. </RefEntry>
  98. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->