home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / MozillaWm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.1 KB  |  73 lines

  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. /*
  20.  * MozillaWm.h
  21.  *
  22.  * Mozilla Window Manager interface
  23.  *
  24.  * X11 window manager conventions do not support the window manager
  25.  * functionality required by Mozilla JavaScript 1.2 features for NetCaster.
  26.  */
  27.  
  28. #ifndef _MOZILLA_WM_H
  29. #define _MOZILLA_WM_H
  30.  
  31. #include <X11/Xlib.h>
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. /* IMPORTANT - remove this #define when we get a window manager which supports API */
  38. #define MOZILLA_WM_I_AM_A_WINDOW_MANAGER
  39.  
  40.  
  41. /* Window Manager-only API */
  42. #ifdef MOZILLA_WM_I_AM_A_WINDOW_MANAGER
  43. /* set version of Mozilla WM API supported by window manager. */
  44. void MozillaWmSetWmVersion(Screen*,long);
  45. #endif
  46.  
  47. /* general client API */
  48.  
  49. /* get version of Mozilla WM API supported by window manager for client's screen */
  50. long MozillaWmGetWmVersion(Screen*);
  51.  
  52. /* get/set Mozilla WM hint flags on application shell window */
  53. void MozillaWmSetHints(Screen*,Window,unsigned long);
  54. void MozillaWmAddHints(Screen*,Window,unsigned long);
  55. void MozillaWmRemoveHints(Screen*,Window,unsigned long);
  56. unsigned long MozillaWmGetHints(Screen*,Window);
  57.  
  58. /* hint masks */
  59.  
  60. #define MOZILLA_WM_NONE                (0)
  61. #define MOZILLA_WM_ALWAYS_BOTTOM    (1 << 0)
  62. #define MOZILLA_WM_ALWAYS_TOP        (1 << 1)
  63. #define MOZILLA_WM_ZORDER_LOCK        (1 << 2)
  64.  
  65. #define MOZILLA_WM_VERSION_INVALID -1
  66.  
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70.  
  71. #endif /* _MOZILLA_WM_H */
  72.  
  73.