16c321187Smrg/* 20cc2eac3Smrg 36c321187SmrgCopyright 1988, 1998 The Open Group 46c321187Smrg 56c321187SmrgPermission to use, copy, modify, distribute, and sell this software and its 66c321187Smrgdocumentation for any purpose is hereby granted without fee, provided that 76c321187Smrgthe above copyright notice appear in all copies and that both that 86c321187Smrgcopyright notice and this permission notice appear in supporting 96c321187Smrgdocumentation. 106c321187Smrg 116c321187SmrgThe above copyright notice and this permission notice shall be included in 126c321187Smrgall copies or substantial portions of the Software. 136c321187Smrg 146c321187SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 156c321187SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 166c321187SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 176c321187SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 186c321187SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 196c321187SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 206c321187Smrg 216c321187SmrgExcept as contained in this notice, the name of The Open Group shall not be 226c321187Smrgused in advertising or otherwise to promote the sale, use or other dealings 236c321187Smrgin this Software without prior written authorization from The Open Group. 246c321187Smrg 256c321187Smrg*/ 266c321187Smrg 276c321187Smrg/* 286c321187Smrg * The interfaces described by this header file are for miscellaneous utilities 296c321187Smrg * and are not part of the Xlib standard. 306c321187Smrg */ 316c321187Smrg 326c321187Smrg#ifndef _XMU_STRCONVERT_H_ 336c321187Smrg#define _XMU_STRCONVERT_H_ 346c321187Smrg 356c321187Smrg#include <X11/Intrinsic.h> 366c321187Smrg#include <X11/Xfuncproto.h> 376c321187Smrg 386c321187Smrg_XFUNCPROTOBEGIN 396c321187Smrg 406c321187Smrgvoid XmuCvtFunctionToCallback 416c321187Smrg( 426c321187Smrg XrmValue *args, 436c321187Smrg Cardinal *num_args, 446c321187Smrg XrmValuePtr fromVal, 456c321187Smrg XrmValuePtr toVal 466c321187Smrg ); 476c321187Smrg 486c321187Smrg#define XtNbackingStore "backingStore" 496c321187Smrg#define XtCBackingStore "BackingStore" 506c321187Smrg#define XtRBackingStore "BackingStore" 516c321187Smrg#define XtEnotUseful "notUseful" 526c321187Smrg#define XtEwhenMapped "whenMapped" 536c321187Smrg#define XtEalways "always" 546c321187Smrg#define XtEdefault "default" 556c321187Smrgvoid XmuCvtStringToBackingStore 566c321187Smrg( 576c321187Smrg XrmValue *args, 586c321187Smrg Cardinal *num_args, 596c321187Smrg XrmValuePtr fromVal, 606c321187Smrg XrmValuePtr toVal 616c321187Smrg ); 626c321187Smrg 636c321187SmrgBoolean XmuCvtBackingStoreToString 646c321187Smrg( 656c321187Smrg Display *dpy, 666c321187Smrg XrmValue *args, 676c321187Smrg Cardinal *num_args, 686c321187Smrg XrmValuePtr fromVal, 696c321187Smrg XrmValuePtr toVal, 706c321187Smrg XtPointer *converter_data 716c321187Smrg ); 726c321187Smrg 736c321187Smrgvoid XmuCvtStringToCursor 746c321187Smrg( 756c321187Smrg XrmValue *args, 766c321187Smrg Cardinal *num_args, 776c321187Smrg XrmValuePtr fromVal, 786c321187Smrg XrmValuePtr toVal 796c321187Smrg ); 806c321187Smrg 816c321187Smrg#define XtRColorCursor "ColorCursor" 826c321187Smrg#define XtNpointerColor "pointerColor" 836c321187Smrg#define XtNpointerColorBackground "pointerColorBackground" 846c321187SmrgBoolean XmuCvtStringToColorCursor 856c321187Smrg( 866c321187Smrg Display *dpy, 876c321187Smrg XrmValue *args, 886c321187Smrg Cardinal *num_args, 896c321187Smrg XrmValuePtr fromVal, 906c321187Smrg XrmValuePtr toVal, 916c321187Smrg XtPointer *converter_data 926c321187Smrg ); 936c321187Smrg 946c321187Smrgtypedef int XtGravity; 956c321187Smrg 966c321187Smrg#ifndef XtRGravity 976c321187Smrg#define XtRGravity "Gravity" 986c321187Smrg#endif 996c321187Smrg#define XtEForget "forget" 1006c321187Smrg#define XtENorthWest "northwest" 1016c321187Smrg#define XtENorth "north" 1026c321187Smrg#define XtENorthEast "northeast" 1036c321187Smrg#define XtEWest "west" 1046c321187Smrg#define XtECenter "center" 1056c321187Smrg#define XtEEast "east" 1066c321187Smrg#define XtESouthWest "southwest" 1076c321187Smrg#define XtESouth "south" 1086c321187Smrg#define XtESouthEast "southeast" 1096c321187Smrg#define XtEStatic "static" 1106c321187Smrg#define XtEUnmap "unmap" 1116c321187Smrgvoid XmuCvtStringToGravity 1126c321187Smrg( 1136c321187Smrg XrmValue *args, 1146c321187Smrg Cardinal *num_args, 1156c321187Smrg XrmValuePtr fromVal, 1166c321187Smrg XrmValuePtr toVal 1176c321187Smrg ); 1186c321187Smrg 1196c321187SmrgBoolean XmuCvtGravityToString 1206c321187Smrg( 1216c321187Smrg Display *dpy, 1226c321187Smrg XrmValue *args, 1236c321187Smrg Cardinal *num_args, 1246c321187Smrg XrmValuePtr fromVal, 1256c321187Smrg XrmValuePtr toVal, 1266c321187Smrg XtPointer *converter_data 1276c321187Smrg ); 1286c321187Smrg 1296c321187Smrgtypedef enum { 1306c321187Smrg XtJustifyLeft, /* justify text to left side of button */ 1316c321187Smrg XtJustifyCenter, /* justify text in center of button */ 1326c321187Smrg XtJustifyRight /* justify text to right side of button */ 1336c321187Smrg} XtJustify; 1346c321187Smrg#ifndef XtRJustify 1356c321187Smrg#define XtRJustify "Justify" 1366c321187Smrg#endif 1376c321187Smrg#define XtEleft "left" 1386c321187Smrg#define XtEcenter "center" 1396c321187Smrg#define XtEright "right" 1406c321187Smrg#define XtEtop "top" 1416c321187Smrg#define XtEbottom "bottom" 1426c321187Smrgvoid XmuCvtStringToJustify 1436c321187Smrg( 1446c321187Smrg XrmValue *args, 1456c321187Smrg Cardinal *num_args, 1466c321187Smrg XrmValuePtr fromVal, 1476c321187Smrg XrmValuePtr toVal 1486c321187Smrg ); 1496c321187Smrg 1506c321187SmrgBoolean XmuCvtJustifyToString 1516c321187Smrg( 1526c321187Smrg Display *dpy, 1536c321187Smrg XrmValue *args, 1546c321187Smrg Cardinal *num_args, 1556c321187Smrg XrmValuePtr fromVal, 1566c321187Smrg XrmValuePtr toVal, 1576c321187Smrg XtPointer *converter_data 1586c321187Smrg ); 1596c321187Smrg 1606c321187Smrg#define XtRLong "Long" 1616c321187Smrgvoid XmuCvtStringToLong 1626c321187Smrg( 1636c321187Smrg XrmValue *args, 1646c321187Smrg Cardinal *num_args, 1656c321187Smrg XrmValuePtr fromVal, 1666c321187Smrg XrmValuePtr toVal 1676c321187Smrg ); 1686c321187SmrgBoolean XmuCvtLongToString 1696c321187Smrg( 1706c321187Smrg Display *dpy, 1716c321187Smrg XrmValue *args, 1726c321187Smrg Cardinal *num_args, 1736c321187Smrg XrmValuePtr fromVal, 1746c321187Smrg XrmValuePtr toVal, 1756c321187Smrg XtPointer *converter_data 1766c321187Smrg ); 1776c321187Smrg 1786c321187Smrgtypedef enum { 1796c321187Smrg XtorientHorizontal, 1806c321187Smrg XtorientVertical 1816c321187Smrg} XtOrientation; 1826c321187Smrgvoid XmuCvtStringToOrientation 1836c321187Smrg( 1846c321187Smrg XrmValue *args, 1856c321187Smrg Cardinal *num_args, 1866c321187Smrg XrmValuePtr fromVal, 1876c321187Smrg XrmValuePtr toVal 1886c321187Smrg ); 1896c321187Smrg 1906c321187SmrgBoolean XmuCvtOrientationToString 1916c321187Smrg( 1926c321187Smrg Display *dpy, 1936c321187Smrg XrmValue *args, 1946c321187Smrg Cardinal *num_args, 1956c321187Smrg XrmValuePtr fromVal, 1966c321187Smrg XrmValuePtr toVal, 1976c321187Smrg XtPointer *converter_data 1986c321187Smrg ); 1996c321187Smrg 2006c321187Smrgvoid XmuCvtStringToBitmap 2016c321187Smrg( 2026c321187Smrg XrmValue *args, 2036c321187Smrg Cardinal *num_args, 2046c321187Smrg XrmValuePtr fromVal, 2056c321187Smrg XrmValuePtr toVal 2066c321187Smrg ); 2076c321187Smrg 2086c321187Smrg#define XtRShapeStyle "ShapeStyle" 2096c321187Smrg#define XtERectangle "Rectangle" 2106c321187Smrg#define XtEOval "Oval" 2116c321187Smrg#define XtEEllipse "Ellipse" 2126c321187Smrg#define XtERoundedRectangle "RoundedRectangle" 2136c321187Smrg 2146c321187Smrg#define XmuShapeRectangle 1 2156c321187Smrg#define XmuShapeOval 2 2166c321187Smrg#define XmuShapeEllipse 3 2176c321187Smrg#define XmuShapeRoundedRectangle 4 2186c321187Smrg 2196c321187SmrgBoolean XmuCvtStringToShapeStyle 2206c321187Smrg( 2216c321187Smrg Display *dpy, 2226c321187Smrg XrmValue *args, 2236c321187Smrg Cardinal *num_args, 2246c321187Smrg XrmValuePtr fromVal, 2256c321187Smrg XrmValuePtr toVal, 2266c321187Smrg XtPointer *converter_data 2276c321187Smrg ); 2286c321187Smrg 2296c321187SmrgBoolean XmuCvtShapeStyleToString 2306c321187Smrg( 2316c321187Smrg Display *dpy, 2326c321187Smrg XrmValue *args, 2336c321187Smrg Cardinal *num_args, 2346c321187Smrg XrmValuePtr fromVal, 2356c321187Smrg XrmValuePtr toVal, 2366c321187Smrg XtPointer *converter_data 2376c321187Smrg ); 2386c321187Smrg 2396c321187SmrgBoolean XmuReshapeWidget 2406c321187Smrg( 2416c321187Smrg Widget w, 2426c321187Smrg int shape_style, 2436c321187Smrg int corner_width, 2446c321187Smrg int corner_height 2456c321187Smrg ); 2466c321187Smrg 2476c321187Smrgvoid XmuCvtStringToWidget 2486c321187Smrg( 2496c321187Smrg XrmValue *args, 2506c321187Smrg Cardinal *num_args, 2516c321187Smrg XrmValuePtr fromVal, 2526c321187Smrg XrmValuePtr toVal 2536c321187Smrg ); 2546c321187Smrg 2556c321187SmrgBoolean XmuNewCvtStringToWidget 2566c321187Smrg( 2576c321187Smrg Display *display, 2586c321187Smrg XrmValue *args, 2596c321187Smrg Cardinal *num_args, 2606c321187Smrg XrmValue *fromVal, 2616c321187Smrg XrmValue *toVal, 2626c321187Smrg XtPointer *converter_data 2636c321187Smrg ); 2646c321187Smrg 2656c321187SmrgBoolean XmuCvtWidgetToString 2666c321187Smrg( 2676c321187Smrg Display *dpy, 2686c321187Smrg XrmValue *args, 2696c321187Smrg Cardinal *num_args, 2706c321187Smrg XrmValue *fromVal, 2716c321187Smrg XrmValue *toVal, 2726c321187Smrg XtPointer *converter_data 2736c321187Smrg ); 2746c321187Smrg 2756c321187Smrg_XFUNCPROTOEND 2766c321187Smrg 2776c321187Smrg#endif /* _XMU_STRCONVERT_H_ */ 278