Remove duplicate free.
[nedit.git] / Xlt / BubbleButtonP.h
blobd96b753c480b1d5a9ad5bf66b1f9bb43da231ff5
1 /**
3 * $Id: BubbleButtonP.h,v 1.5 2005/12/01 14:31:43 tringali Exp $
5 * Copyright (C) 1996 Free Software Foundation, Inc.
6 * Copyright © 1999-2001 by the LessTif developers.
8 * This file is part of the GNU LessTif Extension Library.
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public
21 * License along with this library; if not, write to the Free
22 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 **/
25 #ifndef _BUBBLEBUTTONP_H
26 #define _BUBBLEBUTTONP_H
28 #include "BubbleButton.h"
29 #include <Xm/PushBP.h>
31 typedef struct {
32 XtIntervalId Timer;
33 int Delay;
34 Widget BubbleLabel;
35 XmString BubbleString;
36 Boolean show_bubble;
37 XmString MouseOverString;
38 Pixmap MouseOverPixmap;
39 XtIntervalId DurationTimer;
40 int Duration;
41 Boolean Swapped;
42 Widget slider;
43 Boolean slidingBubble;
44 Boolean autoParkBubble;
45 } XltBubbleButtonPart;
47 #define BubbleButton_Timer(w) (((XltBubbleButtonWidget)w)->bubble_button.Timer)
48 #define BubbleButton_Delay(w) (((XltBubbleButtonWidget)w)->bubble_button.Delay)
49 #define BubbleButton_Label(w) (((XltBubbleButtonWidget)w)->bubble_button.BubbleLabel)
50 #define BubbleButton_BubbleString(w) (((XltBubbleButtonWidget)w)->bubble_button.BubbleString)
51 #define BubbleButton_ShowBubble(w) (((XltBubbleButtonWidget)w)->bubble_button.show_bubble)
52 #define BubbleButton_MouseOverString(w) (((XltBubbleButtonWidget)w)->bubble_button.MouseOverString)
53 #define BubbleButton_MouseOverPixmap(w) (((XltBubbleButtonWidget)w)->bubble_button.MouseOverPixmap)
54 #define BubbleButton_DurationTimer(w) (((XltBubbleButtonWidget)w)->bubble_button.DurationTimer)
55 #define BubbleButton_Duration(w) (((XltBubbleButtonWidget)w)->bubble_button.Duration)
56 #define BubbleButton_Swapped(w) (((XltBubbleButtonWidget)w)->bubble_button.Swapped)
57 #define BubbleButton_Slider(w) (((XltBubbleButtonWidget)w)->bubble_button.slider)
58 #define BubbleButton_SlidingBubble(w) (((XltBubbleButtonWidget)w)->bubble_button.slidingBubble)
59 #define BubbleButton_AutoParkBubble(w) (((XltBubbleButtonWidget)w)->bubble_button.autoParkBubble)
61 #define BubbleButtonClass_LeaveTime(w) (((XltBubbleButtonWidgetClass)XtClass(w))->bubble_button_class.leave_time)
63 typedef struct _XltBubbleButtonRec {
64 CorePart core;
65 XmPrimitivePart primitive;
66 XmLabelPart label;
67 XmPushButtonPart pushbutton;
68 XltBubbleButtonPart bubble_button;
69 } XltBubbleButtonRec;
71 typedef struct {
72 Time leave_time;
73 XtPointer extension;
74 } XltBubbleButtonClassPart;
76 typedef struct _XltBubbleButtonClassRec {
77 CoreClassPart core_class;
78 XmPrimitiveClassPart primitive_class;
79 XmLabelClassPart label_class;
80 XmPushButtonClassPart pushbutton_class;
81 XltBubbleButtonClassPart bubble_button_class;
82 } XltBubbleButtonClassRec;
84 extern XltBubbleButtonClassRec xrwsBubbleButtonClassRec;
85 #endif