WmIconBox.h 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 OPEN SOFTWARE FOUNDATION, INC.
  25. * ALL RIGHTS RESERVED
  26. */
  27. /*
  28. * Motif Release 1.2
  29. */
  30. /*
  31. * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
  32. extern void AddIconBoxForWorkspace (WmWorkspaceData *pWS);
  33. extern void AddNewBox (WmWorkspaceData *pWS, IconBoxData *pIBD);
  34. extern void ChangeActiveIconboxIconText (Widget icon, caddr_t dummy,
  35. XFocusChangeEvent *event);
  36. extern void CheckIconBoxResize (ClientData *pCD, unsigned int changedValues,
  37. int newWidth, int newHeight);
  38. extern Boolean CheckIconBoxSize (IconBoxData *pIBD);
  39. extern void DeleteIconFromBox (IconBoxData *pIBD, ClientData *pCD);
  40. extern void DeleteIconInfo (IconBoxData *pIBD, ClientData *pCD);
  41. extern void DestroyIconBox (WmWorkspaceData *pWS);
  42. extern Boolean ExpandVirtualSpace (IconBoxData *pIBD, int newWidth,
  43. int newHeight);
  44. extern Boolean ExtendIconList (IconBoxData *pIBD, int incr);
  45. extern void FindNewPosition (Cardinal *newPosition, IconPlacementData *pIPD,
  46. int newPlace);
  47. extern MenuItem *GetIconBoxMenuItems (WmScreenData *pSD);
  48. extern void GetIconBoxIconRootXY (ClientData *pCD, int *pX, int *pY);
  49. extern void HandleIconBoxButtonMotion (Widget icon, caddr_t client_data,
  50. XEvent *pev);
  51. extern void HandleIconBoxIconKeyPress (Widget icon, caddr_t dummy,
  52. XKeyEvent *keyEvent);
  53. extern void IconScrollVisibleCallback (Widget w, caddr_t client_data,
  54. XmAnyCallbackStruct *call_data);
  55. extern void IconActivateCallback (Widget w, caddr_t client_data,
  56. XmAnyCallbackStruct *call_data);
  57. extern void IconBoxPopUp (WmWorkspaceData *pWS, Boolean up);
  58. extern Boolean IconBoxShowing (WmWorkspaceData *pWS);
  59. extern Boolean IconVisible (ClientData *pCD);
  60. extern IconInfo *InsertIconInfo (IconBoxData *pIBD, ClientData *pCD,
  61. Widget theWidget);
  62. extern Boolean InsertIconIntoBox (IconBoxData *pIBD, ClientData *pCD);
  63. extern void InitIconBox (WmScreenData *pSD);
  64. extern void InitializeClientData (ClientData *pCD, IconBoxData *pIBD);
  65. extern void InitializeIconBoxData (WmWorkspaceData *pWS, IconBoxData *pIBD);
  66. extern Cardinal InsertPosition (Widget w);
  67. extern void MakeBulletinBoard (WmWorkspaceData *pWS, IconBoxData *pIBD);
  68. extern void MakeFadeIconGC (WmScreenData *pSD);
  69. extern Boolean MakeIconBox (WmWorkspaceData *pWS, ClientData *pCD);
  70. extern void MakeScrolledWindow (WmWorkspaceData *pWS, IconBoxData *pIBD);
  71. extern void MakeShell (WmWorkspaceData *pWS, IconBoxData *pIBD);
  72. extern void MakeShrinkWrapIconsGC (WmScreenData *pSD, Pixmap bgPixmap);
  73. extern void MapIconBoxes (WmWorkspaceData *pWS);
  74. extern void PackIconBox (IconBoxData *pIBD, Boolean packVert,
  75. Boolean packHorz, int passedInWidth,
  76. int passedInHeight);
  77. extern void RealignIconList (IconBoxData *pIBD, int newCols, int newRows);
  78. extern void RealizeIconBox (WmWorkspaceData *pWS, IconBoxData *pIBD,
  79. ClientData *pCD);
  80. extern void ReorderIconBoxIcons (ClientData *pCD, IconBoxData *pIBD,
  81. Widget theIcon, int newX, int newY);
  82. extern void ResetArrowButtonIncrements (ClientData *pCD);
  83. extern void ResetIconBoxMaxSize (ClientData *pCD, Widget bBoardWidget);
  84. extern void SetGeometry (WmWorkspaceData *pWS, ClientData *pCD,
  85. IconBoxData *pIBD);
  86. extern void SetGranularity (WmWorkspaceData *pWS, ClientData *pCD,
  87. IconBoxData *pIBD);
  88. extern void SetIconBoxInfo (WmWorkspaceData *pWS, ClientData *pCD);
  89. extern void SetNewBounds (IconBoxData *pIBD);
  90. extern void ShowClientIconState (ClientData *pCD, int newState);
  91. extern void UnmapIconBoxes (WmWorkspaceData *pWS);
  92. extern void UpdateIncrements (Widget sWidget, IconBoxData *pIBD,
  93. XConfigureEvent *event);
  94. extern String WmXmStringToString (XmString xmString);