| 1 |
/* @(#)UxLibP.h 17.1 (ESO-IPG) 01/25/02 17:26:00 */ |
| 2 |
/*--------------------------------------------------------------------- |
| 3 |
* $Date: 2003-06-04 14:49:18 $ $Revision: 1.1.1.1 $ |
| 4 |
*--------------------------------------------------------------------- |
| 5 |
* |
| 6 |
* |
| 7 |
* Copyright (c) 1992, Visual Edge Software Ltd. |
| 8 |
* |
| 9 |
* ALL RIGHTS RESERVED. Permission to use, copy, modify, and |
| 10 |
* distribute this software and its documentation for any purpose |
| 11 |
* and without fee is hereby granted, provided that the above |
| 12 |
* copyright notice appear in all copies and that both that |
| 13 |
* copyright notice and this permission notice appear in supporting |
| 14 |
* documentation, and that the name of Visual Edge Software not be |
| 15 |
* used in advertising or publicity pertaining to distribution of |
| 16 |
* the software without specific, written prior permission. The year |
| 17 |
* included in the notice is the year of the creation of the work. |
| 18 |
*-------------------------------------------------------------------*/ |
| 19 |
/*------------------------------------------------------------------------ |
| 20 |
* Internal definitions for the UIM/X runtime library. |
| 21 |
*------------------------------------------------------------------------*/ |
| 22 |
|
| 23 |
#ifndef _UXLIBP_INCLUDED |
| 24 |
#define _UXLIBP_INCLUDED |
| 25 |
|
| 26 |
typedef struct ShadowWidget |
| 27 |
{ |
| 28 |
struct ShadowWidget *Self; /* For safety checks */ |
| 29 |
struct ShadowWidget *Parent; |
| 30 |
|
| 31 |
char * Name; |
| 32 |
WidgetClass WClass; |
| 33 |
Widget ItsWidget; /* Set by UxCreateWidget */ |
| 34 |
void * Context; /* The context structure ptr */ |
| 35 |
|
| 36 |
ArgList Values; /* Converted resources */ |
| 37 |
int NumValues; /* Number of resources listed */ |
| 38 |
|
| 39 |
int UpdateFlag; /* For Delayed Update */ |
| 40 |
WidgetClass DefaultShell; /* For implicit shells */ |
| 41 |
int Flags; /* See masks below. */ |
| 42 |
int IfClassCode; /* For method extensions */ |
| 43 |
|
| 44 |
char* Accelerators; /* Can't do reverse conversion, */ |
| 45 |
char* Translations; /* so we save the original strings */ |
| 46 |
|
| 47 |
} UxShadowWidget_t; |
| 48 |
|
| 49 |
|
| 50 |
int UxSwidgetSetProp UXPROTO((swidget, char*, XtArgVal)); |
| 51 |
XtArgVal UxSwidgetGetProp UXPROTO((swidget, char*)); |
| 52 |
|
| 53 |
/* |
| 54 |
* The flag masks. These must be different powers of two. |
| 55 |
*/ |
| 56 |
#define UXWIN_GROUP_FLAG 1 |
| 57 |
#define UXCREATE_UNMANAGED_FLAG 2 |
| 58 |
#define UXDIALOG_FLAG 4 |
| 59 |
|
| 60 |
/* |
| 61 |
* sugar |
| 62 |
*/ |
| 63 |
#define tree_num_children(w) (((CompositeWidget)(w))->composite.num_children) |
| 64 |
#define tree_children(w) (((CompositeWidget)(w))->composite.children) |
| 65 |
#define tree_num_popups(w) ((w)->core.num_popups) |
| 66 |
#define tree_popups(w) ((w)->core.popup_list) |
| 67 |
|
| 68 |
#define x_used(o) UxSwidgetPropSet(o,XtNx) |
| 69 |
#define y_used(o) UxSwidgetPropSet(o,XtNy) |
| 70 |
#define allowShellResize_used(o) UxSwidgetPropSet(o,XtNallowShellResize) |
| 71 |
|
| 72 |
/* |
| 73 |
* private functions in the library |
| 74 |
*/ |
| 75 |
void UxAddAccelerators UXPROTO((swidget, String )); |
| 76 |
void UxAddTranslations UXPROTO(( swidget, String )); |
| 77 |
void UxFlushQueue UXPROTO(( void )); |
| 78 |
void UxFreeSwidget UXPROTO(( swidget )); |
| 79 |
int UxNeedsParentShell UXPROTO((swidget)); |
| 80 |
int UxSwidgetGetFlag UXPROTO((swidget, int)); |
| 81 |
void UxSwidgetSetFlag UXPROTO((swidget, int)); |
| 82 |
void UxSwidgetUnsetFlag UXPROTO((swidget, int)); |
| 83 |
Widget UxWindowToWidget UXPROTO((Window)); |
| 84 |
|
| 85 |
extern char *UxDefaultShellType; |
| 86 |
extern char *UxUserShell; |
| 87 |
|
| 88 |
#endif /* _UXLIBP_INCLUDED */ |