SaverP.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: SaverP.h /main/4 1995/10/26 15:10:42 rswiston $ */
  24. /* *
  25. * (c) Copyright 1993, 1994 Hewlett-Packard Company *
  26. * (c) Copyright 1993, 1994 International Business Machines Corp. *
  27. * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
  28. * (c) Copyright 1993, 1994 Novell, Inc. *
  29. */
  30. /************************************<+>*************************************
  31. ****************************************************************************
  32. **
  33. ** File: Saver.h
  34. **
  35. ** Description
  36. ** -----------
  37. ** Variables and declarations needed for
  38. ** managing external screen savers
  39. **
  40. ****************************************************************************
  41. ************************************<+>*************************************/
  42. #ifndef _dtsaverp_h
  43. #define _dtsaverp_h
  44. /*************************************<->*************************************
  45. *
  46. * _DtSaverStart()
  47. *
  48. *
  49. * Description:
  50. * -----------
  51. * Store provided array of windows on root window property
  52. * _DT_SAVER_WINDOWS and launch specified screen saver. Screen savers
  53. * will attempt to use these windows as drawables.
  54. *
  55. * Inputs:
  56. * ------
  57. * display - display structure
  58. * drawArea - array of widgets to be drawn upon by screen saver
  59. * count - number of elements in drawArea array
  60. * saverAction - screen saver action to invoke
  61. * wAction - action UI widget
  62. *
  63. * Outputs:
  64. * -------
  65. *
  66. * Return:
  67. * -------
  68. * state - pointer to opaque state structure
  69. *
  70. * Comments:
  71. * --------
  72. * This function uses _DtActionInvoke() to launch an action. As a result,
  73. * the caller is responsible for loading and maintaining the action database
  74. * using the DtDbLoad() function and procedures. The caller
  75. * must call _DtSaverStop() to terminate screen saver
  76. *
  77. *************************************<->***********************************/
  78. extern void * _DtSaverStart(Display *, Widget *, int, char *, Widget);
  79. /*************************************<->*************************************
  80. *
  81. * _DtSaverStop()
  82. *
  83. *
  84. * Description:
  85. * -----------
  86. * Stop an external screen saver started with DtStartSaver(). Deletes
  87. * _DT_SAVER_WINDOWS property from root window.
  88. *
  89. * Inputs:
  90. * ------
  91. * display - display structure
  92. * state - state returned from _DtSaverStart()
  93. *
  94. * Outputs:
  95. * -------
  96. *
  97. * Return:
  98. * -------
  99. *
  100. * Comments:
  101. * --------
  102. *
  103. *************************************<->***********************************/
  104. extern void _DtSaverStop(Display *, void *);
  105. #endif /*_dtsaverp_h*/
  106. /* DON'T ADD ANYTHING AFTER THIS #endif */