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