1 /*****
2 * Balloon.h : XmBalloon Widget public header file
3 *
4 * This file Version	$Revision: 1.1 $
5 *
6 * Creation date:		Sun Nov  2 19:18:40 GMT+0100 1997
7 * Last modification: 	$Date: 1998/04/04 06:27:16 $
8 * By:					$Author: newt $
9 * Current State:		$State: Exp $
10 *
11 * Author:				newt
12 *
13 * Copyright (C) 1994-1997 by Ripley Software Development
14 * All Rights Reserved
15 *
16 * This file is part of the XmHTML Widget Library.
17 *
18 * This library is free software; you can redistribute it and/or
19 * modify it under the terms of the GNU Library General Public
20 * License as published by the Free Software Foundation; either
21 * version 2 of the License, or (at your option) any later version.
22 *
23 * This library is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
26 * Library General Public License for more details.
27 *
28 * You should have received a copy of the GNU Library General Public
29 * License along with this library; if not, write to the Free
30 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 *
32 *****/
33 /*****
34 * $Source: /usr/local/rcs/Newt/XmHTML/RCS/Balloon.h,v $
35 *****/
36 /*****
37 * ChangeLog
38 * $Log: Balloon.h,v $
39 * Revision 1.1  1998/04/04 06:27:16  newt
40 * Initial Revision
41 *
42 *****/
43 
44 #ifndef _Balloon_h_
45 #define _Balloon_h_
46 
47 /* required includes */
48 #include <X11/Intrinsic.h>
49 #include <Xm/Xm.h>
50 #include <XmHTML/HTML.h>
51 
52 _XFUNCPROTOBEGIN
53 
54 /* XmBalloon type defines */
55 typedef struct _XmBalloonClassRec *XmBalloonWidgetClass;
56 typedef struct _XmBalloonRec *XmBalloonWidget;
57 
58 externalref WidgetClass xmBalloonWidgetClass;
59 
60 /* XmBalloonWidget subclassing macro */
61 #ifndef XmIsBalloon
62 #define XmIsBalloon(w) XtIsSubclass(w, xmBalloonWidgetClass)
63 #endif /* XmIsBalloon */
64 
65 /*****
66 * Possible values for XmNcornerStyle
67 * The TFolder widget also has this so we check against it.
68 *****/
69 #ifndef _XmTabFolder_h
70 enum{
71 	XmCORNER_STRAIGHT = 0,
72 	XmCORNER_BEVELED,
73 	XmCORNER_SLANT,
74 	XmCORNER_ROUND
75 };
76 #endif
77 
78 /*****
79 * Possible values for XmNballoonStyle
80 *****/
81 enum{
82 	XmBALLOON_SQUARE = 0,
83 	XmBALLOON_SHAPED
84 };
85 
86 /******* Public Function Declarations ********/
87 /* create an XmBalloon Widget */
88 Widget XmCreateBalloon(Widget parent, String name, ArgList arglist,
89 	Cardinal argcount);
90 
91 /*****
92 * Popup an XmBalloon Widget. x and y specify the position where the balloon
93 * should popup. They are relative to the upper-left corner of the Balloon's
94 * parent. If both are 0, the balloon is popped up right under the current
95 * pointer's position.
96 *****/
97 void XmBalloonPopup(Widget w, Position x, Position y, String label);
98 
99 /* popdown an XmBalloon Widget */
100 void XmBalloonPopdown(Widget w);
101 
102 _XFUNCPROTOEND
103 
104 /* Don't add anything after this endif! */
105 #endif /* _Balloon_h_ */
106