File: Balloon.h

package info (click to toggle)
xmhtml 1.1.7-18
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 6,576 kB
  • sloc: ansic: 68,174; makefile: 438; sh: 158; perl: 36
file content (105 lines) | stat: -rw-r--r-- 2,783 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/*****
* Balloon.h : XmBalloon Widget public header file
*
* This file Version	$Revision: 1.1 $
*
* Creation date:		Sun Nov  2 19:18:40 GMT+0100 1997
* Last modification: 	$Date: 1998/04/04 06:27:16 $
* By:					$Author: newt $
* Current State:		$State: Exp $
*
* Author:				newt
*
* Copyright (C) 1994-1997 by Ripley Software Development 
* All Rights Reserved
*
* This file is part of the XmHTML Widget Library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*****/
/*****
* $Source: /usr/local/rcs/Newt/XmHTML/RCS/Balloon.h,v $
*****/
/*****
* ChangeLog 
* $Log: Balloon.h,v $
* Revision 1.1  1998/04/04 06:27:16  newt
* Initial Revision
*
*****/ 

#ifndef _Balloon_h_
#define _Balloon_h_

/* required includes */
#include <X11/Intrinsic.h>
#include <Xm/Xm.h>
#include <XmHTML/HTML.h>

_XFUNCPROTOBEGIN

/* XmBalloon type defines */
typedef struct _XmBalloonClassRec *XmBalloonWidgetClass;
typedef struct _XmBalloonRec *XmBalloonWidget;

externalref WidgetClass xmBalloonWidgetClass;

/* XmBalloonWidget subclassing macro */
#ifndef XmIsBalloon
#define XmIsBalloon(w) XtIsSubclass(w, xmBalloonWidgetClass)
#endif /* XmIsBalloon */

/*****
* Possible values for XmNcornerStyle
* The TFolder widget also has this so we check against it.
*****/
#ifndef _XmTabFolder_h
enum{
	XmCORNER_STRAIGHT = 0,
	XmCORNER_BEVELED,
	XmCORNER_SLANT,
	XmCORNER_ROUND
};
#endif

/*****
* Possible values for XmNballoonStyle
*****/
enum{
	XmBALLOON_SQUARE = 0,
	XmBALLOON_SHAPED
};

/******* Public Function Declarations ********/
/* create an XmBalloon Widget */
Widget XmCreateBalloon(Widget parent, String name, ArgList arglist,
	Cardinal argcount);

/*****
* Popup an XmBalloon Widget. x and y specify the position where the balloon
* should popup. They are relative to the upper-left corner of the Balloon's
* parent. If both are 0, the balloon is popped up right under the current
* pointer's position.
*****/
void XmBalloonPopup(Widget w, Position x, Position y, String label);

/* popdown an XmBalloon Widget */
void XmBalloonPopdown(Widget w);

_XFUNCPROTOEND

/* Don't add anything after this endif! */
#endif /* _Balloon_h_ */