WmFunction.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC.
  25. * ALL RIGHTS RESERVED
  26. */
  27. /*
  28. * Motif Release 1.2.3
  29. */
  30. /*
  31. * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
  32. extern Boolean F_Action (String actionName, ClientData *pCD, XEvent *event);
  33. extern Boolean F_Beep (String args, ClientData *pCD, XEvent *event);
  34. extern Boolean F_Lower (String args, ClientData *pCD, XEvent *event);
  35. extern void Do_Lower (ClientData *pCD, ClientListEntry *pStackEntry, int flags);
  36. extern Boolean F_Circle_Down (String args, ClientData *pCD, XEvent *event);
  37. extern Boolean F_Circle_Up (String args, ClientData *pCD, XEvent *event);
  38. extern Boolean F_Focus_Color (String args, ClientData *pCD, XEvent *event);
  39. extern Boolean F_Exec (String args, ClientData *pCD, XEvent *event);
  40. extern Boolean F_Quit_Mwm (String args, ClientData *pCD, XEvent *event);
  41. extern void Do_Quit_Mwm (Boolean diedOnRestart);
  42. extern Boolean F_Focus_Key (String args, ClientData *pCD, XEvent *event);
  43. extern void Do_Focus_Key (ClientData *pCD, Time focusTime, long flags);
  44. extern Boolean F_Goto_Workspace (String args, ClientData *pCD, XEvent *event);
  45. extern Boolean F_Help (String args, ClientData *pCD, XEvent *event);
  46. extern Boolean F_Help_Mode (String args, ClientData *pCD, XEvent *event);
  47. extern Boolean F_Next_Key (String args, ClientData *pCD, XEvent *event);
  48. extern Boolean F_Prev_Cmap (String args, ClientData *pCD, XEvent *event);
  49. extern Boolean F_Prev_Key (String args, ClientData *pCD, XEvent *event);
  50. extern Boolean F_Pass_Key (String args, ClientData *pCD, XEvent *event);
  51. extern Boolean F_Marquee_Selection (String args, ClientData *pCD, XEvent *event);
  52. extern Boolean F_Maximize (String args, ClientData *pCD, XEvent *event);
  53. extern Boolean F_Menu (String args, ClientData *pCD, XEvent *event);
  54. extern Boolean F_Minimize (String args, ClientData *pCD, XEvent *event);
  55. extern Boolean F_Move (String args, ClientData *pCD, XEvent *event);
  56. extern Boolean F_Next_Cmap (String args, ClientData *pCD, XEvent *event);
  57. extern Boolean F_Nop (String args, ClientData *pCD, XEvent *event);
  58. extern Boolean F_Normalize (String args, ClientData *pCD, XEvent *event);
  59. extern Boolean F_Normalize_And_Raise (String args, ClientData *pCD,
  60. XEvent *event);
  61. extern Boolean F_Pack_Icons (String args, ClientData *pCD, XEvent *event);
  62. extern Boolean F_Post_SMenu (String args, ClientData *pCD, XEvent *event);
  63. extern Boolean F_Post_FpMenu (String args, ClientData *pCD, XEvent *event);
  64. extern Boolean F_Push_Recall (String args, ClientData *pCD, XEvent *event);
  65. extern Boolean F_Kill (String args, ClientData *pCD, XEvent *event);
  66. extern Boolean F_Refresh (String args, ClientData *pCD, XEvent *event);
  67. extern Boolean F_Resize (String args, ClientData *pCD, XEvent *event);
  68. extern Boolean F_Restart (String args, ClientData *pCD, XEvent *event);
  69. extern Boolean F_Restore (String args, ClientData *pCD, XEvent *event);
  70. extern Boolean F_Restore_And_Raise (String args, ClientData *pCD,
  71. XEvent *event);
  72. extern void Do_Restart (Boolean dummy);
  73. extern void RestartWm (long startupFlags);
  74. extern void DeFrameClient (ClientData *pCD);
  75. extern Boolean F_Send (String args, ClientData *pCD, XEvent *event);
  76. extern Boolean F_Send_Msg (String args, ClientData *pCD, XEvent *event);
  77. extern Boolean F_Separator (String args, ClientData *pCD, XEvent *event);
  78. extern Boolean F_Raise (String args, ClientData *pCD, XEvent *event);
  79. extern void Do_Raise (ClientData *pCD, ClientListEntry *pStackEntry, int flags);
  80. extern Boolean F_Raise_Lower (String args, ClientData *pCD, XEvent *event);
  81. extern Boolean F_Refresh_Win (String args, ClientData *pCD, XEvent *event);
  82. extern Boolean F_Set_Behavior (String args, ClientData *pCD, XEvent *event);
  83. extern Boolean F_Set_Context (String args, ClientData *pCD, XEvent *event);
  84. extern void Do_Set_Behavior (Boolean dummy);
  85. extern Boolean F_Title (String args, ClientData *pCD, XEvent *event);
  86. extern Boolean F_Screen (String args, ClientData *pCD, XEvent *event);
  87. extern Boolean F_Toggle_Front_Panel (String args, ClientData *pCD,
  88. XEvent *event);
  89. extern Boolean F_Version (String args, ClientData *pCD, XEvent *event);
  90. extern Boolean F_Next_Workspace (String args, ClientData *pCD, XEvent *event);
  91. extern Boolean F_Prev_Workspace (String args, ClientData *pCD, XEvent *event);
  92. extern Boolean F_Workspace_Presence (String args, ClientData *pCD,
  93. XEvent *event);
  94. #if defined(DEBUG)
  95. extern Boolean F_ZZ_Debug (String, ClientData *, XEvent *);
  96. #endif /* DEBUG */
  97. extern Time GetFunctionTimestamp (XButtonEvent *pEvent);
  98. extern void ReBorderClient (ClientData *pCD, Boolean reMapClient);
  99. extern void ClearDirtyStackEntry (ClientData *pCD); /* Fix for 5325 */
  100. typedef struct _WmPushRecallArg {
  101. int ixReg;
  102. WmFunction wmFunc;
  103. void *pArgs;
  104. } WmPushRecallArg;