141 lines
3.8 KiB
C
141 lines
3.8 KiB
C
/*
|
|
* CDE - Common Desktop Environment
|
|
*
|
|
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
*
|
|
* These libraries and programs are free software; you can
|
|
* redistribute them and/or modify them under the terms of the GNU
|
|
* Lesser General Public License as published by the Free Software
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* These libraries and programs are distributed in the hope that
|
|
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
* PURPOSE. See the GNU Lesser General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with these libraries and programs; if not, write
|
|
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
* Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
/* $XConsortium: Icon.h /main/4 1995/10/26 09:32:37 rswiston $ */
|
|
/**---------------------------------------------------------------------
|
|
***
|
|
*** file: Icon.h
|
|
***
|
|
*** project: MotifPlus Widgets
|
|
***
|
|
*** description: Public include file for DtIcon gadget class.
|
|
***
|
|
***
|
|
*** (c) Copyright 1990 by Hewlett-Packard Company.
|
|
***
|
|
***
|
|
***-------------------------------------------------------------------*/
|
|
|
|
|
|
#ifndef _DtIcon_h
|
|
#define _DtIcon_h
|
|
|
|
#include <Xm/Xm.h>
|
|
#include <Dt/DtStrDefs.h>
|
|
|
|
#ifndef DtIsIcon
|
|
#define DtIsIcon(w) XtIsSubclass(w, dtIconGadgetClass)
|
|
#endif /* DtIsIcon */
|
|
|
|
typedef struct _DtIconClassRec * DtIconGadgetClass;
|
|
typedef struct _DtIconRec * DtIconGadget;
|
|
typedef struct _DtIconCacheObjRec * DtIconCacheObject;
|
|
|
|
|
|
extern Widget _DtCreateIcon(
|
|
Widget parent,
|
|
String name,
|
|
ArgList arglist,
|
|
Cardinal argcount) ;
|
|
extern Boolean _DtIconGetState(
|
|
Widget w) ;
|
|
extern void _DtIconSetState(
|
|
Widget w,
|
|
Boolean state,
|
|
Boolean notify) ;
|
|
extern Drawable _DtIconDraw(
|
|
Widget widget,
|
|
Drawable drawable,
|
|
Position x,
|
|
Position y,
|
|
Boolean fill) ;
|
|
extern Widget _DtDuplicateIcon(
|
|
Widget parent,
|
|
Widget widget,
|
|
XmString string,
|
|
String pixmap,
|
|
XtPointer user_data,
|
|
Boolean underline) ;
|
|
extern Boolean _DtIconSelectInTitle(
|
|
Widget widget,
|
|
Position pt_x,
|
|
Position pt_y) ;
|
|
extern XRectangle * _DtIconGetTextExtent(
|
|
Widget widget) ;
|
|
extern void _DtIconGetIconRects(
|
|
DtIconGadget g,
|
|
unsigned char *flags,
|
|
XRectangle *rect1,
|
|
XRectangle *rect2) ;
|
|
|
|
|
|
|
|
extern WidgetClass dtIconGadgetClass;
|
|
|
|
|
|
#define XmCR_SELECT XmCR_SINGLE_SELECT
|
|
#define XmCR_DROP 50
|
|
#define XmCR_POPUP 51
|
|
#define XmCR_HIGHLIGHT 52
|
|
#define XmCR_UNHIGHLIGHT 53
|
|
#define XmCR_SHADOW 54
|
|
|
|
typedef struct
|
|
{
|
|
int reason;
|
|
XEvent * event;
|
|
Boolean set;
|
|
} DtIconCallbackStruct;
|
|
|
|
|
|
#define XmPIXMAP_TOP 0
|
|
#define XmPIXMAP_BOTTOM 1
|
|
#define XmPIXMAP_LEFT 2
|
|
#define XmPIXMAP_RIGHT 3
|
|
#define XmPIXMAP_MIDDLE 4
|
|
|
|
#define XmSTRING_BOTTOM 0
|
|
#define XmSTRING_TOP 1
|
|
#define XmSTRING_RIGHT 2
|
|
#define XmSTRING_LEFT 3
|
|
|
|
#define XmICON_LABEL 0
|
|
#define XmICON_BUTTON 1
|
|
#define XmICON_TOGGLE 2
|
|
#define XmICON_DRAG 3
|
|
|
|
#define XmFILL_NONE 0
|
|
#define XmFILL_PARENT 1
|
|
#define XmFILL_SELF 2
|
|
#define XmFILL_TRANSPARENT 3
|
|
|
|
#define XmPIXMAP_RECT 0x01
|
|
#define XmLABEL_RECT 0x02
|
|
|
|
#define DtRECTANGLE 0
|
|
#define DtNON_RECTANGLE 1
|
|
|
|
|
|
#endif /* _XmIcon_h */
|
|
|
|
/* DON'T ADD ANYTHING AFTER THIS #endif */
|