#include <X11/Intrinsic.h>
#include <X11/Xfuncproto.h>
Include dependency graph for Converters.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | XtNbackingStore "backingStore" |
#define | XtCBackingStore "BackingStore" |
#define | XtRBackingStore "BackingStore" |
#define | XtEnotUseful "notUseful" |
#define | XtEwhenMapped "whenMapped" |
#define | XtEalways "always" |
#define | XtEdefault "default" |
#define | XtRColorCursor "ColorCursor" |
#define | XtNpointerColor "pointerColor" |
#define | XtNpointerColorBackground "pointerColorBackground" |
#define | XtRGravity "Gravity" |
#define | XtEForget "forget" |
#define | XtENorthWest "northwest" |
#define | XtENorth "north" |
#define | XtENorthEast "northeast" |
#define | XtEWest "west" |
#define | XtECenter "center" |
#define | XtEEast "east" |
#define | XtESouthWest "southwest" |
#define | XtESouth "south" |
#define | XtESouthEast "southeast" |
#define | XtEStatic "static" |
#define | XtEUnmap "unmap" |
#define | XtRJustify "Justify" |
#define | XtEleft "left" |
#define | XtEcenter "center" |
#define | XtEright "right" |
#define | XtEtop "top" |
#define | XtEbottom "bottom" |
#define | XtRLong "Long" |
#define | XtRShapeStyle "ShapeStyle" |
#define | XtERectangle "Rectangle" |
#define | XtEOval "Oval" |
#define | XtEEllipse "Ellipse" |
#define | XtERoundedRectangle "RoundedRectangle" |
#define | XmuShapeRectangle 1 |
#define | XmuShapeOval 2 |
#define | XmuShapeEllipse 3 |
#define | XmuShapeRoundedRectangle 4 |
Typedefs | |
typedef int | XtGravity |
Enumerations | |
enum | XtJustify { XtJustifyLeft, XtJustifyCenter, XtJustifyRight } |
enum | XtOrientation { XtorientHorizontal, XtorientVertical } |
Functions | |
_XFUNCPROTOBEGIN void | XmuCvtFunctionToCallback (XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal) |
void | XmuCvtStringToBackingStore (XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal) |
Boolean | XmuCvtBackingStoreToString (Display *dpy, XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal, XtPointer *converter_data) |
void | XmuCvtStringToCursor (XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal) |
Boolean | XmuCvtStringToColorCursor (Display *dpy, XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal, XtPointer *converter_data) |
void | XmuCvtStringToGravity (XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal) |
Boolean | XmuCvtGravityToString (Display *dpy, XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal, XtPointer *converter_data) |
void | XmuCvtStringToJustify (XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal) |
Boolean | XmuCvtJustifyToString (Display *dpy, XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal, XtPointer *converter_data) |
void | XmuCvtStringToLong (XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal) |
Boolean | XmuCvtLongToString (Display *dpy, XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal, XtPointer *converter_data) |
void | XmuCvtStringToOrientation (XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal) |
Boolean | XmuCvtOrientationToString (Display *dpy, XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal, XtPointer *converter_data) |
void | XmuCvtStringToBitmap (XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal) |
Boolean | XmuCvtStringToShapeStyle (Display *dpy, XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal, XtPointer *converter_data) |
Boolean | XmuCvtShapeStyleToString (Display *dpy, XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal, XtPointer *converter_data) |
Boolean | XmuReshapeWidget (Widget w, int shape_style, int corner_width, int corner_height) |
void | XmuCvtStringToWidget (XrmValue *args, Cardinal *num_args, XrmValuePtr fromVal, XrmValuePtr toVal) |
Boolean | XmuNewCvtStringToWidget (Display *display, XrmValue *args, Cardinal *num_args, XrmValue *fromVal, XrmValue *toVal, XtPointer *converter_data) |
Boolean | XmuCvtWidgetToString (Display *dpy, XrmValue *args, Cardinal *num_args, XrmValue *fromVal, XrmValue *toVal, XtPointer *converter_data) |
#define XmuShapeEllipse 3 |
Definition at line 220 of file Converters.h.
Referenced by XmuCvtShapeStyleToString(), XmuCvtStringToShapeStyle(), and XmuReshapeWidget().
#define XmuShapeOval 2 |
Definition at line 219 of file Converters.h.
Referenced by XmuCvtShapeStyleToString(), XmuCvtStringToShapeStyle(), and XmuReshapeWidget().
#define XmuShapeRectangle 1 |
Definition at line 218 of file Converters.h.
Referenced by XmuCvtShapeStyleToString(), XmuCvtStringToShapeStyle(), and XmuReshapeWidget().
#define XmuShapeRoundedRectangle 4 |
Definition at line 221 of file Converters.h.
Referenced by XmuCvtShapeStyleToString(), XmuCvtStringToShapeStyle(), and XmuReshapeWidget().
#define XtCBackingStore "BackingStore" |
Definition at line 53 of file Converters.h.
#define XtEalways "always" |
Definition at line 57 of file Converters.h.
Referenced by InitializeQuarks(), and XmuCvtBackingStoreToString().
#define XtEbottom "bottom" |
Definition at line 145 of file Converters.h.
#define XtEcenter "center" |
Definition at line 142 of file Converters.h.
Referenced by InitializeQuarks(), and XmuCvtJustifyToString().
#define XtECenter "center" |
Definition at line 108 of file Converters.h.
#define XtEdefault "default" |
Definition at line 58 of file Converters.h.
Referenced by InitializeQuarks(), and XmuCvtBackingStoreToString().
#define XtEEast "east" |
Definition at line 109 of file Converters.h.
#define XtEEllipse "Ellipse" |
Definition at line 215 of file Converters.h.
Referenced by XmuCvtShapeStyleToString(), and XmuCvtStringToShapeStyle().
#define XtEForget "forget" |
Definition at line 103 of file Converters.h.
#define XtEleft "left" |
Definition at line 141 of file Converters.h.
Referenced by InitializeQuarks(), and XmuCvtJustifyToString().
#define XtENorth "north" |
Definition at line 105 of file Converters.h.
#define XtENorthEast "northeast" |
Definition at line 106 of file Converters.h.
#define XtENorthWest "northwest" |
Definition at line 104 of file Converters.h.
#define XtEnotUseful "notUseful" |
Definition at line 55 of file Converters.h.
Referenced by InitializeQuarks(), and XmuCvtBackingStoreToString().
#define XtEOval "Oval" |
Definition at line 214 of file Converters.h.
Referenced by XmuCvtShapeStyleToString(), and XmuCvtStringToShapeStyle().
#define XtERectangle "Rectangle" |
Definition at line 213 of file Converters.h.
Referenced by XmuCvtShapeStyleToString(), and XmuCvtStringToShapeStyle().
#define XtEright "right" |
Definition at line 143 of file Converters.h.
Referenced by InitializeQuarks(), and XmuCvtJustifyToString().
#define XtERoundedRectangle "RoundedRectangle" |
Definition at line 216 of file Converters.h.
Referenced by XmuCvtShapeStyleToString(), and XmuCvtStringToShapeStyle().
#define XtESouth "south" |
Definition at line 111 of file Converters.h.
#define XtESouthEast "southeast" |
Definition at line 112 of file Converters.h.
#define XtESouthWest "southwest" |
Definition at line 110 of file Converters.h.
#define XtEStatic "static" |
Definition at line 113 of file Converters.h.
#define XtEtop "top" |
Definition at line 144 of file Converters.h.
#define XtEUnmap "unmap" |
Definition at line 114 of file Converters.h.
#define XtEWest "west" |
Definition at line 107 of file Converters.h.
#define XtEwhenMapped "whenMapped" |
Definition at line 56 of file Converters.h.
Referenced by InitializeQuarks(), and XmuCvtBackingStoreToString().
#define XtNbackingStore "backingStore" |
Definition at line 52 of file Converters.h.
#define XtNpointerColor "pointerColor" |
#define XtNpointerColorBackground "pointerColorBackground" |
#define XtRBackingStore "BackingStore" |
#define XtRColorCursor "ColorCursor" |
#define XtRGravity "Gravity" |
Definition at line 101 of file Converters.h.
#define XtRJustify "Justify" |
Definition at line 139 of file Converters.h.
Referenced by ClassInitialize(), and XmuCvtStringToJustify().
#define XtRLong "Long" |
#define XtRShapeStyle "ShapeStyle" |
Definition at line 212 of file Converters.h.
Definition at line 98 of file Converters.h.
enum XtJustify |
Definition at line 133 of file Converters.h.
00133 { 00134 XtJustifyLeft, /* justify text to left side of button */ 00135 XtJustifyCenter, /* justify text in center of button */ 00136 XtJustifyRight /* justify text to right side of button */ 00137 } XtJustify;
enum XtOrientation |
Definition at line 182 of file Converters.h.
00182 { 00183 XtorientHorizontal, 00184 XtorientVertical 00185 } XtOrientation;
Boolean XmuCvtBackingStoreToString | ( | Display * | dpy, | |
XrmValue * | args, | |||
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal, | |||
XtPointer * | converter_data | |||
) |
_XFUNCPROTOBEGIN void XmuCvtFunctionToCallback | ( | XrmValue * | args, | |
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal | |||
) |
Definition at line 35 of file FToCback.c.
00037 { 00038 static XtCallbackRec callback[2]; /* K&R: initialized to NULL */ 00039 static XtCallbackList callback_list = callback; 00040 00041 callback[0].callback = *(XtCallbackProc *)fromVal->addr; 00042 00043 toVal->size = sizeof(XtCallbackList); 00044 toVal->addr = (XPointer)&callback_list; 00045 }
Boolean XmuCvtGravityToString | ( | Display * | dpy, | |
XrmValue * | args, | |||
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal, | |||
XtPointer * | converter_data | |||
) |
Boolean XmuCvtJustifyToString | ( | Display * | dpy, | |
XrmValue * | args, | |||
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal, | |||
XtPointer * | converter_data | |||
) |
Boolean XmuCvtLongToString | ( | Display * | dpy, | |
XrmValue * | args, | |||
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal, | |||
XtPointer * | converter_data | |||
) |
Boolean XmuCvtOrientationToString | ( | Display * | dpy, | |
XrmValue * | args, | |||
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal, | |||
XtPointer * | converter_data | |||
) |
Boolean XmuCvtShapeStyleToString | ( | Display * | dpy, | |
XrmValue * | args, | |||
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal, | |||
XtPointer * | converter_data | |||
) |
void XmuCvtStringToBackingStore | ( | XrmValue * | args, | |
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal | |||
) |
Definition at line 70 of file StrToBS.c.
References InitializeQuarks(), int, name, Qalways, Qdefault, QnotUseful, QwhenMapped, XmuNCopyISOLatin1Lowered(), and XtRBackingStore.
00072 { 00073 XrmQuark q; 00074 char name[11]; 00075 static int backingStoreType; 00076 00077 if (*num_args != 0) 00078 XtWarning("String to BackingStore conversion needs no extra arguments"); 00079 00080 InitializeQuarks(); 00081 XmuNCopyISOLatin1Lowered(name, (char *)fromVal->addr, sizeof(name)); 00082 00083 q = XrmStringToQuark (name); 00084 if (q == QnotUseful) 00085 backingStoreType = NotUseful; 00086 else if (q == QwhenMapped) 00087 backingStoreType = WhenMapped; 00088 else if (q == Qalways) 00089 backingStoreType = Always; 00090 else if (q == Qdefault) 00091 backingStoreType = Always + WhenMapped + NotUseful; 00092 else 00093 { 00094 XtStringConversionWarning((char *)fromVal->addr, XtRBackingStore); 00095 return; 00096 } 00097 toVal->size = sizeof(int); 00098 toVal->addr = (XPointer)&backingStoreType; 00099 }
Here is the call graph for this function:
void XmuCvtStringToBitmap | ( | XrmValue * | args, | |
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal | |||
) |
Boolean XmuCvtStringToColorCursor | ( | Display * | dpy, | |
XrmValue * | args, | |||
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal, | |||
XtPointer * | converter_data | |||
) |
void XmuCvtStringToCursor | ( | XrmValue * | args, | |
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal | |||
) |
Referenced by XawVendorShellClassInitialize(), and XmuCvtStringToColorCursor().
Here is the caller graph for this function:
void XmuCvtStringToGravity | ( | XrmValue * | args, | |
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal | |||
) |
void XmuCvtStringToJustify | ( | XrmValue * | args, | |
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal | |||
) |
void XmuCvtStringToLong | ( | XrmValue * | args, | |
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal | |||
) |
void XmuCvtStringToOrientation | ( | XrmValue * | args, | |
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal | |||
) |
Boolean XmuCvtStringToShapeStyle | ( | Display * | dpy, | |
XrmValue * | args, | |||
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal, | |||
XtPointer * | converter_data | |||
) |
void XmuCvtStringToWidget | ( | XrmValue * | args, | |
Cardinal * | num_args, | |||
XrmValuePtr | fromVal, | |||
XrmValuePtr | toVal | |||
) |
Boolean XmuCvtWidgetToString | ( | Display * | dpy, | |
XrmValue * | args, | |||
Cardinal * | num_args, | |||
XrmValue * | fromVal, | |||
XrmValue * | toVal, | |||
XtPointer * | converter_data | |||
) |
Boolean XmuNewCvtStringToWidget | ( | Display * | display, | |
XrmValue * | args, | |||
Cardinal * | num_args, | |||
XrmValue * | fromVal, | |||
XrmValue * | toVal, | |||
XtPointer * | converter_data | |||
) |
Definition at line 139 of file StrToWidg.c.
References addr, i, name, newDone, NULL, and XtRWidget.
Referenced by ClassInit(), and ClassInitialize().
00142 { 00143 Widget *widgetP, parent; 00144 XrmName name = XrmStringToName(fromVal->addr); 00145 int i; 00146 00147 if (*num_args != 1) 00148 XtAppWarningMsg(XtDisplayToApplicationContext(dpy), 00149 "wrongParameters","cvtStringToWidget","xtToolkitError", 00150 "String To Widget conversion needs parent argument", 00151 (String *)NULL, (Cardinal *)NULL); 00152 00153 parent = *(Widget*)args[0].addr; 00154 /* try to match names of normal children */ 00155 if (XtIsComposite(parent)) 00156 { 00157 i = ((CompositeWidget)parent)->composite.num_children; 00158 for (widgetP = ((CompositeWidget)parent)->composite.children; 00159 i; i--, widgetP++) 00160 if ((*widgetP)->core.xrm_name == name) 00161 newDone(Widget, *widgetP); 00162 } 00163 00164 /* try to match names of popup children */ 00165 i = parent->core.num_popups; 00166 for (widgetP = parent->core.popup_list; i; i--, widgetP++) 00167 if ((*widgetP)->core.xrm_name == name) 00168 newDone(Widget, *widgetP); 00169 00170 /* try to match classes of normal children */ 00171 if (XtIsComposite(parent)) 00172 { 00173 i = ((CompositeWidget)parent)->composite.num_children; 00174 for (widgetP = ((CompositeWidget)parent)->composite.children; 00175 i; i--, widgetP++) 00176 if ((*widgetP)->core.widget_class->core_class.xrm_class == name) 00177 newDone(Widget, *widgetP); 00178 } 00179 00180 /* try to match classes of popup children */ 00181 i = parent->core.num_popups; 00182 for (widgetP = parent->core.popup_list; i; i--, widgetP++) 00183 if ((*widgetP)->core.widget_class->core_class.xrm_class == name) 00184 newDone(Widget, *widgetP); 00185 00186 XtDisplayStringConversionWarning(dpy, (String)fromVal->addr, XtRWidget); 00187 return (False); 00188 }
Here is the caller graph for this function:
Definition at line 48 of file ShapeWidg.c.
References ShapeEllipseOrRoundedRectangle(), ShapeError(), ShapeOval(), ShapeRectangle(), XmuShapeEllipse, XmuShapeOval, XmuShapeRectangle, and XmuShapeRoundedRectangle.
Referenced by ShapeButton().
00050 { 00051 switch (shape_style) 00052 { 00053 case XmuShapeRectangle: 00054 ShapeRectangle(w); 00055 break; 00056 case XmuShapeOval: 00057 ShapeOval(w); 00058 break; 00059 case XmuShapeEllipse: 00060 case XmuShapeRoundedRectangle: 00061 ShapeEllipseOrRoundedRectangle(w, shape_style == XmuShapeEllipse, 00062 corner_width, corner_height); 00063 break; 00064 default: 00065 ShapeError(w); 00066 return (False); 00067 } 00068 return (True); 00069 }
Here is the call graph for this function:
Here is the caller graph for this function: