UNIXworkcode

1 /** 2 * 3 * $Id: BubbleButtonP.h,v 1.5 2005/12/01 14:31:43 tringali Exp $ 4 * 5 * Copyright (C) 1996 Free Software Foundation, Inc. 6 * Copyright © 1999-2001 by the LessTif developers. 7 * 8 * This file is part of the GNU LessTif Extension Library. 9 * 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. 14 * 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. 19 * 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. 23 * 24 **/ 25 #ifndef _BUBBLEBUTTONP_H 26 #define _BUBBLEBUTTONP_H 27 28 #include "BubbleButton.h" 29 #include <Xm/PushBP.h> 30 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; 46 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) 60 61 #define BubbleButtonClass_LeaveTime(w) (((XltBubbleButtonWidgetClass)XtClass(w))->bubble_button_class.leave_time) 62 63 typedef struct _XltBubbleButtonRec { 64 CorePart core; 65 XmPrimitivePart primitive; 66 XmLabelPart label; 67 XmPushButtonPart pushbutton; 68 XltBubbleButtonPart bubble_button; 69 } XltBubbleButtonRec; 70 71 typedef struct { 72 Time leave_time; 73 XtPointer extension; 74 } XltBubbleButtonClassPart; 75 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; 83 84 extern XltBubbleButtonClassRec xrwsBubbleButtonClassRec; 85 #endif 86