Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dtinfo / dtinfo / wwl / include / WWL / WXmTextField.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /*
24  * $XConsortium: WXmTextField.h /main/3 1996/06/11 17:02:46 cde-hal $
25  *
26  * Copyright (c) 1992 HaL Computer Systems, Inc.  All rights reserved.
27  * UNPUBLISHED -- rights reserved under the Copyright Laws of the United
28  * States.  Use of a copyright notice is precautionary only and does not
29  * imply publication or disclosure.
30  * 
31  * This software contains confidential information and trade secrets of HaL
32  * Computer Systems, Inc.  Use, disclosure, or reproduction is prohibited
33  * without the prior express written permission of HaL Computer Systems, Inc.
34  * 
35  *                         RESTRICTED RIGHTS LEGEND
36  * Use, duplication, or disclosure by the Government is subject to
37  * restrictions as set forth in subparagraph (c)(l)(ii) of the Rights in
38  * Technical Data and Computer Software clause at DFARS 252.227-7013.
39  *                        HaL Computer Systems, Inc.
40  *                  1315 Dell Avenue, Campbell, CA  95008
41  * 
42  */
43
44 // This code is automatically generated in -*- C++ -*-
45 #ifndef WXmTextField_h
46 #define WXmTextField_h
47
48 #include "WXmPrimitive.h"
49 #include <Xm/TextF.h>
50
51 class WXmTextField : public WXmPrimitive {
52 public :
53                 DEFINE_INIT (WXmTextField,WXmPrimitive,xmTextFieldWidgetClass)
54 inline  void    ClearSelection(Time t) const { XmTextFieldClearSelection (widget, t); } 
55 inline  Boolean Copy (Time copy_time) const { return XmTextFieldCopy (widget, copy_time); }
56 inline  Boolean Cut (Time cut_time) const { return XmTextFieldCut (widget, cut_time); }
57 inline  int     GetBaseline () const { return XmTextFieldGetBaseline (widget); }
58 inline  Boolean GetEditable () const { return XmTextFieldGetEditable (widget); }
59 inline  XmTextPosition  GetInsertionPosition () const { return XmTextFieldGetInsertionPosition (widget); }
60 inline  XmTextPosition  GetLastPosition () const { return XmTextFieldGetLastPosition (widget); }
61 inline  XmTextPosition  LastPosition () const { return XmTextFieldGetLastPosition (widget); }
62 inline  int     GetMaxLength () const { return XmTextFieldGetMaxLength (widget); }
63 inline  char*   GetSelection () const { return XmTextFieldGetSelection (widget); }
64 inline  Boolean GetSelectionPosition (XmTextPosition* left, XmTextPosition* right) const { return XmTextFieldGetSelectionPosition (widget, left, right); }
65 inline  char*   GetString () const { return XmTextFieldGetString (widget); }
66 inline  void    Insert (XmTextPosition position, char* value) const { XmTextFieldInsert (widget, position, value); }
67 inline  Boolean Paste (Widget widget) const { return XmTextFieldPaste (widget); }
68 inline  Boolean  PosToXY (XmTextPosition position, Position* x, Position* y) const { return XmTextFieldPosToXY (widget, position, x, y); }
69 inline  Boolean Remove () const { return XmTextFieldRemove (widget); }
70 inline  void    Replace (XmTextPosition from, XmTextPosition to, char* s) const { XmTextFieldReplace (widget, from, to, s); }
71 inline  void    SetAddMode (Boolean state) const { XmTextFieldSetAddMode (widget, state); }
72 inline  void    SetEditable (Boolean editable) const { XmTextFieldSetEditable (widget, editable); }
73 inline  void    SetHighlight (XmTextPosition left, XmTextPosition right, XmHighlightMode mode) const { XmTextFieldSetHighlight (widget, left, right, mode); }
74 inline  void    SetInsertionPosition (XmTextPosition position) const { XmTextFieldSetInsertionPosition (widget, position); }
75 inline  void    InsertionPosition (XmTextPosition position) const { XmTextFieldSetInsertionPosition (widget, position); }
76 inline  void    SetMaxLength (int max_length) const { XmTextFieldSetMaxLength (widget, max_length); }
77 inline  void    SetSelection (XmTextPosition first, XmTextPosition last, Time set_time) const { XmTextFieldSetSelection (widget, first, last, set_time); }
78 inline  void    SetString(char* str) const { XmTextFieldSetString (widget, str); }
79 inline  void    ShowPosition (XmTextPosition position) const { XmTextFieldShowPosition (widget, position); }
80 inline  XmTextPosition  XYToPos (Position x, Position y) const { return XmTextFieldXYToPos (widget, x, y); }
81         DEFINE_CALLBACK (ActivateCallback,"activateCallback")
82         DEFINE_CALLBACK (FocusCallback,"focusCallback")
83         DEFINE_CALLBACK (LosingFocusCallback,"losingFocusCallback")
84         DEFINE_CALLBACK (ValueChangedCallback,"valueChangedCallback")
85         DEFINE_CALLBACK (ModifyVerifyCallback,"modifyVerifyCallback")
86         DEFINE_CALLBACK (MotionVerifyCallback,"motionVerifyCallback")
87         DEFINE_CALLBACK (GainPrimaryCallback,"gainPrimaryCallback")
88         DEFINE_CALLBACK (LosePrimaryCallback,"losePrimaryCallback")
89         DEFINE_GETTER_SETTER (BlinkRate,int,"blinkRate")
90         DEFINE_GETTER_SETTER (Columns,short,"columns")
91         DEFINE_GETTER_SETTER (CursorPosition,XmTextPosition,"cursorPosition")
92         DEFINE_GETTER_SETTER (CursorPositionVisible,Boolean,
93                               "cursorPositionVisible")
94         DEFINE_GETTER_SETTER (Editable,Boolean,"editable")
95         DEFINE_GETTER_SETTER (FontList,XmFontList,"fontList")
96         DEFINE_GETTER_SETTER (MarginHeight,short,"marginHeight")
97         DEFINE_GETTER_SETTER (MarginWidth,short,"marginWidth")
98         DEFINE_GETTER_SETTER (MaxLength,int,"maxLength")
99         DEFINE_GETTER_SETTER (PendingDelete,Boolean,"pendingDelete")
100         DEFINE_GETTER_SETTER (ResizeWidth,Boolean,"resizeWidth")
101         DEFINE_GETTER_SETTER (SelectionArray,XtPointer,"selectionArray")
102         DEFINE_GETTER_SETTER (SelectionArrayCount,int,"selectionArrayCount")
103         DEFINE_GETTER_SETTER (SelectThreshold,int,"selectThreshold")
104         DEFINE_GETTER_SETTER (Value,char*,"value")
105         DEFINE_GETTER_SETTER (VerifyBell,Boolean,"verifyBell")
106 };
107
108 #define NULLWXmTextField                WXmTextField((Widget)0)
109
110 #endif