SaverGet.sgm 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!-- $XConsortium: SaverGet.sgm /main/5 1996/08/30 13:12:14 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.MAN50.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN50.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtSaverGetWindows</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtSaverGetWindows</Function></RefName>
  17. <RefPurpose>get the list of windows for drawing by a screen saver application
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- CDE Common Source Format, Version 1.0.0-->
  21. <!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  22. <!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  23. <!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  24. <!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  25. <RefSynopsisDiv>
  26. <FuncSynopsis Remap="ANSI">
  27. <FuncSynopsisInfo>#include &lt;Dt/Saver.h>
  28. </FuncSynopsisInfo>
  29. <FuncDef>Boolean <Function>DtSaverGetWindows</Function></FuncDef>
  30. <ParamDef>Display *<Parameter>display</Parameter></ParamDef>
  31. <ParamDef>Window **<Parameter>window</Parameter></ParamDef>
  32. <ParamDef>int *<Parameter>count</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtSaverGetWindows</Function> function returns a list of windows on which a screen saver
  39. application should draw when invoked by &str-XZ;.
  40. </Para>
  41. <Para>The
  42. <Symbol Role="Variable">display</Symbol> argument is the X display.
  43. The
  44. <Symbol Role="Variable">window</Symbol> argument is the address of
  45. a pointer to receive the pointer to a list of windows.
  46. The
  47. <Symbol Role="Variable">count</Symbol> argument is the address of an integer to receive the
  48. number of elements in the list of windows returned in
  49. <Symbol Role="Variable">window</Symbol>.</Para>
  50. </RefSect1>
  51. <RefSect1>
  52. <Title>RETURN VALUE</Title>
  53. <Para>Upon successful completion, the
  54. <Function>DtSaverGetWindows</Function> function returns True;
  55. otherwise, it returns False.
  56. </Para>
  57. </RefSect1>
  58. <RefSect1>
  59. <Title>APPLICATION USAGE</Title>
  60. <Para>If the
  61. <Function>DtSaverGetWindows</Function> function is not successful, failure may be due to a memory
  62. allocation error or that the screen
  63. saver application was not invoked from &str-XZ;.
  64. </Para>
  65. <Para>The application must use
  66. <Function>XtFree</Function>(3) to free data returned in <Emphasis>*window</Emphasis>.
  67. </Para>
  68. </RefSect1>
  69. <RefSect1>
  70. <Title>SEE ALSO</Title>
  71. <Para>&cdeman.Dt.Saver.h;; <![ %CDE.C.CDE; [<Function>XtFree</Function>(3). ]]><![ %CDE.C.XO; [<Function>XtFree</Function>(3) in the &str-Zt;.
  72. ]]></Para>
  73. </RefSect1>
  74. </RefEntry>
  75. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->