1 /* 2 * Copyright(c) 1999 Andrew Lister 3 * Copyright (c) 1999-2002 by the LessTif Developers. 4 * 5 * All rights reserved 6 * Permission to use, copy, modify and distribute this material for 7 * any purpose and without fee is hereby granted, provided that the 8 * above copyright notice and this permission notice appear in all 9 * copies, and that the name of the author not be used in advertising 10 * or publicity pertaining to this material without the specific, 11 * prior written permission of the author. 12 * 13 * THE AUTHOR MAKES NO REPRESENTATIONS AND EXTENDS NO WARRANTIES, EX- 14 * PRESS OR IMPLIED, WITH RESPECT TO THE SOFTWARE, INCLUDING, BUT 15 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 16 * FITNESS FOR ANY PARTICULAR PURPOSE, AND THE WARRANTY AGAINST IN- 17 * FRINGEMENT OF PATENTS OR OTHER INTELLECTUAL PROPERTY RIGHTS. THE 18 * SOFTWARE IS PROVIDED "AS IS", AND IN NO EVENT SHALL THE AUTHOR OR 19 * ANY OF ITS AFFILIATES BE LIABLE FOR ANY DAMAGES, INCLUDING ANY 20 * LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES RELAT- 21 * ING TO THE SOFTWARE. 22 * 23 * Author: Andrew Lister 24 * 25 * $Id: InputP.h,v 1.8 2002/03/08 16:12:23 amai Exp $ 26 */ 27 28 #ifndef _Xbae_InputP_h 29 #define _Xbae_InputP_h 30 31 #include <Xbae/Input.h> 32 #include <Xm/PrimitiveP.h> 33 #include <Xm/TextP.h> 34 35 #ifdef __cplusplus 36 extern "C" { 37 #endif 38 39 typedef struct _XbaeInputClassPart 40 { 41 void *extension; 42 } 43 XbaeInputClassPart; 44 45 typedef struct _XbaeInputClassRec 46 { 47 CoreClassPart core_class; 48 XmPrimitiveClassPart primitive_class; 49 XmTextClassPart text_class; 50 XbaeInputClassPart input_class; 51 } 52 XbaeInputClassRec; 53 54 externalref XbaeInputClassRec xbaeInputClassRec; 55 56 typedef struct _XbaeInputPart 57 { 58 /* Public resources */ 59 unsigned char alignment; 60 Boolean auto_fill; 61 Boolean overwrite_mode; 62 String pattern; 63 XtCallbackList validate_callback; 64 Boolean convert_case; 65 /* Internal resources */ 66 int pattern_length; 67 XmTextPosition last_insert; 68 char *literal_pending; 69 int literal_count; 70 } 71 XbaeInputPart; 72 73 typedef struct _XbaeInputRec 74 { 75 CorePart core; 76 XmPrimitivePart primitive; 77 XmTextPart text; 78 XbaeInputPart input; 79 } 80 XbaeInputRec; 81 82 #ifdef __cplusplus 83 } 84 #endif 85 86 #endif /* _Xbae_InputP_h */ 87