1 /***** 2 * Balloon.h : XmBalloon Widget public header file 3 * 4 * This file Version $Revision$ 5 * 6 * Creation date: Sun Nov 2 19:18:40 GMT+0100 1997 7 * Last modification: $Date$ 8 * By: $Author$ 9 * Current State: $State$ 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$ 35 *****/ 36 /***** 37 * ChangeLog 38 * $Log$ 39 * Revision 1.1 2011/06/30 16:08:40 rwcox 40 * Cadd 41 * 42 * Revision 1.1 1998/04/04 06:27:16 newt 43 * Initial Revision 44 * 45 *****/ 46 47 #ifndef _Balloon_h_ 48 #define _Balloon_h_ 49 50 /* required includes */ 51 #include <X11/Intrinsic.h> 52 #include <Xm/Xm.h> 53 #include <XmHTML/HTML.h> 54 55 _XFUNCPROTOBEGIN 56 57 /* XmBalloon type defines */ 58 typedef struct _XmBalloonClassRec *XmBalloonWidgetClass; 59 typedef struct _XmBalloonRec *XmBalloonWidget; 60 61 externalref WidgetClass xmBalloonWidgetClass; 62 63 /* XmBalloonWidget subclassing macro */ 64 #ifndef XmIsBalloon 65 #define XmIsBalloon(w) XtIsSubclass(w, xmBalloonWidgetClass) 66 #endif /* XmIsBalloon */ 67 68 /***** 69 * Possible values for XmNcornerStyle 70 * The TFolder widget also has this so we check against it. 71 *****/ 72 #ifndef _XmTabFolder_h 73 enum{ 74 XmCORNER_STRAIGHT = 0, 75 XmCORNER_BEVELED, 76 XmCORNER_SLANT, 77 XmCORNER_ROUND 78 }; 79 #endif 80 81 /***** 82 * Possible values for XmNballoonStyle 83 *****/ 84 enum{ 85 XmBALLOON_SQUARE = 0, 86 XmBALLOON_SHAPED 87 }; 88 89 /******* Public Function Declarations ********/ 90 /* create an XmBalloon Widget */ 91 Widget XmCreateBalloon(Widget parent, String name, ArgList arglist, 92 Cardinal argcount); 93 94 /***** 95 * Popup an XmBalloon Widget. x and y specify the position where the balloon 96 * should popup. They are relative to the upper-left corner of the Balloon's 97 * parent. If both are 0, the balloon is popped up right under the current 98 * pointer's position. 99 *****/ 100 void XmBalloonPopup(Widget w, Position x, Position y, String label); 101 102 /* popdown an XmBalloon Widget */ 103 void XmBalloonPopdown(Widget w); 104 105 _XFUNCPROTOEND 106 107 /* Don't add anything after this endif! */ 108 #endif /* _Balloon_h_ */ 109