Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcm / dtcm / deskset.h
1 /*******************************************************************************
2 **
3 **  deskset.h
4 **
5 **  static char sccsid[] = "@(#)deskset.h 1.6 94/12/22 Copyr 1991 Sun Microsystems, Inc.";
6 **
7 **  $XConsortium: deskset.h /main/3 1995/11/03 10:22:50 rswiston $
8 **
9 **  RESTRICTED CONFIDENTIAL INFORMATION:
10 **
11 **  The information in this document is subject to special
12 **  restrictions in a confidential disclosure agreement between
13 **  HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
14 **  document outside HP, IBM, Sun, USL, SCO, or Univel without
15 **  Sun's specific written approval.  This document and all copies
16 **  and derivative works thereof must be returned or destroyed at
17 **  Sun's request.
18 **
19 **  Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
20 **
21 *******************************************************************************/
22
23 /*                                                                      *
24  * (c) Copyright 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  */
29
30 #ifndef _DESKSET_H
31 #define _DESKSET_H
32  
33 #include <X11/Xlib.h>
34 #include <X11/Intrinsic.h>
35 #include "ansi_c.h"
36
37 /*
38 **  Location ops for ds_position_popup().
39 */
40 typedef enum {
41         DS_POPUP_RIGHT,       /* Place popup to right of baseframe */
42         DS_POPUP_LEFT,        /* Place popup to left of baseframe */
43         DS_POPUP_ABOVE,       /* Place popup above baseframe */
44         DS_POPUP_BELOW,       /* Place popup below baseframe */
45         DS_POPUP_LOR,         /* Place popup to right or left of baseframe */
46         DS_POPUP_AOB,         /* Place popup above or below baseframe */
47         DS_POPUP_CENTERED     /* Center popup within baseframe */
48 } ds_location_op;
49
50 /*
51 **  Function declarations.
52 */
53 extern int              ds_force_popup_on_screen P((Widget, int*, int*)) ;
54 extern void             ds_get_screen_size      P((Widget, int*, int*)) ;
55 extern int              ds_position_popup       P((Widget, Widget,
56                                                         ds_location_op)) ;
57 extern char             *ds_relname             P(());
58
59 #endif