WmWrkspace.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. /*
  24. * (c) Copyright 1987,1988,1989,1990,1992,1993,1994 HEWLETT-PACKARD COMPANY
  25. * (c) Copyright 1993, 1994 International Business Machines Corp.
  26. * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  27. * (c) Copyright 1993, 1994 Novell, Inc.
  28. * ALL RIGHTS RESERVED
  29. */
  30. /******** Public Function Declarations ********/
  31. extern void ChangeToWorkspace(
  32. WmWorkspaceData *pNewWS) ;
  33. extern void ChangeWorkspaceTitle( WmWorkspaceData *pWS, char * pchTitle);
  34. extern Boolean DuplicateWorkspaceName (
  35. WmScreenData *pSD,
  36. unsigned char *name,
  37. int num);
  38. extern void UpdateWorkspacePresenceProperty(
  39. ClientData *pCD) ;
  40. extern WmWorkspaceData * CreateWorkspace(
  41. WmScreenData *pSD,
  42. unsigned char *name) ;
  43. extern void DeleteWorkspace(
  44. WmWorkspaceData *pWS) ;
  45. extern Boolean GetClientWorkspaceInfo(
  46. ClientData *pCD,
  47. long manageFlags) ;
  48. extern Boolean WorkspaceIsInCommand(
  49. Display *dpy,
  50. ClientData *pCD,
  51. WorkspaceID **ppIDs,
  52. unsigned int *pNumIDs) ;
  53. extern Boolean ConvertNamesToIDs(
  54. WmScreenData *pSD,
  55. unsigned char *pchIn,
  56. WorkspaceID **ppAtoms,
  57. unsigned int *pNumAtoms) ;
  58. extern void CheckForPutInAllRequest(
  59. ClientData *pCD,
  60. Atom *pIDs,
  61. unsigned int numIDs) ;
  62. extern Boolean FindWsNameInCommand(
  63. int argc,
  64. char *argv[],
  65. unsigned char **ppch) ;
  66. extern void PutClientIntoWorkspace(
  67. WmWorkspaceData *pWS,
  68. ClientData *pCD) ;
  69. extern void TakeClientOutOfWorkspace(
  70. WmWorkspaceData *pWS,
  71. ClientData *pCD) ;
  72. extern WmWorkspaceData * GetWorkspaceData(
  73. WmScreenData *pSD,
  74. WorkspaceID wsID) ;
  75. extern unsigned char * GenerateWorkspaceName(
  76. WmScreenData *pSD,
  77. int wsnum) ;
  78. extern Boolean InWindowList(
  79. Window w,
  80. Window wl[],
  81. int num) ;
  82. extern Boolean ClientInWorkspace(
  83. WmWorkspaceData *pWS,
  84. ClientData *pCD) ;
  85. extern WsClientData * GetWsClientData(
  86. WmWorkspaceData *pWS,
  87. ClientData *pCD) ;
  88. extern void SetClientWsIndex(
  89. ClientData *pCD) ;
  90. void ProcessDtWmHints (ClientData *pCD) ;
  91. extern Boolean ProcessWorkspaceHints(
  92. ClientData *pCD) ;
  93. extern void ProcessWorkspaceHintList(
  94. ClientData *pCD,
  95. WorkspaceID *pIDs,
  96. unsigned int numIDs) ;
  97. extern void RemoveSingleClientFromWorkspaces(
  98. ClientData *pCD,
  99. WorkspaceID *pIDs,
  100. unsigned int numIDs) ;
  101. extern void RemoveSubtreeFromWorkspaces(
  102. ClientData *pCD,
  103. WorkspaceID *pIDs,
  104. unsigned int numIDs) ;
  105. extern WorkspaceID * GetListOfOccupiedWorkspaces(
  106. ClientData *pCD,
  107. int *numIDs) ;
  108. extern void HonorAbsentMapBehavior(
  109. ClientData *pCD) ;
  110. extern void RemoveClientFromWorkspaces(
  111. ClientData *pCD,
  112. WorkspaceID *pIDs,
  113. unsigned int numIDs) ;
  114. extern void AddSingleClientToWorkspaces(
  115. ClientData *pCD,
  116. WorkspaceID *pIDs,
  117. unsigned int numIDs) ;
  118. extern void AddSubtreeToWorkspaces(
  119. ClientData *pCD,
  120. WorkspaceID *pIDs,
  121. unsigned int numIDs) ;
  122. extern void AddClientToWorkspaces(
  123. ClientData *pCD,
  124. WorkspaceID *pIDs,
  125. unsigned int numIDs) ;
  126. extern void AddClientToWsList(
  127. WmWorkspaceData *pWS,
  128. ClientData *pCD) ;
  129. extern void RemoveClientFromWsList(
  130. WmWorkspaceData *pWS,
  131. ClientData *pCD) ;
  132. extern Boolean F_CreateWorkspace(
  133. String args,
  134. ClientData *pCD,
  135. XEvent *event) ;
  136. extern Boolean F_DeleteWorkspace(
  137. String args,
  138. ClientData *pCD,
  139. XEvent *event) ;
  140. extern Boolean F_GotoWorkspace(
  141. String args,
  142. ClientData *pCD,
  143. XEvent *event) ;
  144. extern Boolean F_AddToAllWorkspaces(
  145. String args,
  146. ClientData *pCD,
  147. XEvent *event) ;
  148. extern Boolean F_Remove(
  149. String args,
  150. ClientData *pCD,
  151. XEvent *event) ;
  152. extern int GetCurrentWorkspaceIndex(
  153. WmScreenData *pSD) ;
  154. extern void InsureIconForWorkspace(
  155. WmWorkspaceData *pWS,
  156. ClientData *pCD) ;
  157. extern Boolean GetLeaderPresence(
  158. ClientData *pCD,
  159. WorkspaceID **ppIDs,
  160. unsigned int *pnumIDs) ;
  161. extern Boolean GetMyOwnPresence(
  162. ClientData *pCD,
  163. WorkspaceID **ppIDs,
  164. unsigned int *pnumIDs) ;
  165. extern void ReserveIdListSpace(
  166. int numIDs) ;
  167. extern void SaveWorkspaceResources(
  168. WmWorkspaceData *pWS,
  169. unsigned long flags) ;
  170. extern void SaveResources(
  171. WmScreenData *pSD) ;
  172. extern void AddStringToResourceData(
  173. char *string,
  174. char **pdata,
  175. int *plen) ;
  176. extern void SetCurrentWorkspaceButton(
  177. WmScreenData *pSD);
  178. extern void SetFrontPanelTitle(
  179. WmScreenData *pSD);
  180. /******** End Public Function Declarations ********/