/* @(#)wmgr.h 20.24 93/06/28 SMI */ #ifndef xview_wmgr_DEFINED #define xview_wmgr_DEFINED 1 #include #include /* * (c) Copyright 1989 Sun Microsystems, Inc. Sun design patents * pending in the U.S. and foreign countries. See LEGAL_NOTICE * file for terms of the license. */ /* * This header file describes the interface to a window management mechanism. * A menu interface to these functions is also provided. * Typically, a tool window is responsible for window management. */ #define WMGR_ICONIC WUF_WMGR1 /* Indicates window is iconic in user flags of window */ #define WMGR_SUBFRAME WUF_WMGR3 /* Indicates window is a sub-frame in user flags of window */ #define WMGR_SETPOS -1 /* Indicates "use default" in wmgr_figure*rect calls */ /* for XGetProperty call, indicate no deleting the existing property after * a get */ #define WMGR_NO_DELETE FALSE typedef enum { WM_None, WM_N, WM_NE, WM_E, WM_SE, WM_S, WM_SW, WM_W, WM_NW } WM_Direction; /* * Basic window management operations. * Move and stretch require user interaction. */ EXTERN_FUNCTION (void wmgr_open, (Frame frame_public)); EXTERN_FUNCTION (void wmgr_close, (Frame frame_public)); EXTERN_FUNCTION (void wmgr_top, (Frame frame)); EXTERN_FUNCTION (void wmgr_bottom, (Frame frame)); /* * Exported by wmgr_rect.c: */ EXTERN_FUNCTION (void wmgr_completechangerect, (Xv_opaque window, Rect *newrect, Rect *origrect, int parentprleft, int parentprtop)); EXTERN_FUNCTION (void wmgr_refreshwindow, (Xv_opaque window)); /* * Exported by wmgr_state.c: */ EXTERN_FUNCTION (void wmgr_changelevel, (Xv_object window, int parent, int top)); /* * Fork programname with otherargs. Place its normal rect at normalrect. * Place its icon rect at iconrect. Iconicflag indicates the original * state of the tool. Positioning/state information are only hints. * The tool can ignore them. * * NOTE: This function prototype exists only for backwards compatibility reasons. * In wmgr_menu.c, it is marked Pkg_private. It's use is highly discouraged. */ EXTERN_FUNCTION (int wmgr_forktool, (char *programname, char *otherargs, Rect *rectnormal, Rect *recticon, int iconic)); #endif