2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
24 * $XConsortium: WXmTextField.h /main/3 1996/06/11 17:02:46 cde-hal $
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.
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.
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
44 // This code is automatically generated in -*- C++ -*-
45 #ifndef WXmTextField_h
46 #define WXmTextField_h
48 #include "WXmPrimitive.h"
51 class WXmTextField : public WXmPrimitive {
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 twidget) const { return XmTextFieldPaste (twidget); }
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")
108 #define NULLWXmTextField WXmTextField((Widget)0)