Create Xref-Html Frames Remove All Frames
file:c:/local/Cygwin/usr/X11R6/include/Xm/TextF.h (Tue Mar 30 23:22:42 2004
)
1: /**
2: *
3: * $Id: TextF.h,v 1.3 2000/11/03 13:15:44 amai Exp $
4: *
5: * Copyright (C) 1995 Free Software Foundation, Inc.
6: * Copyright (C) 1995-2000 LessTif Development Team
7: *
8: * This file is part of the GNU LessTif Library.
9: *
10: * This library is free software; you can redistribute it and/or
11: * modify it under the terms of the GNU Library General Public
12: * License as published by the Free Software Foundation; either
13: * version 2 of the License, or (at your option) any later version.
14: *
15: * This library is distributed in the hope that it will be useful,
16: * but WITHOUT ANY WARRANTY; without even the implied warranty of
17: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18: * Library General Public License for more details.
19: *
20: * You should have received a copy of the GNU Library General Public
21: * License along with this library; if not, write to the Free
22: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23: *
24: **/
25:
26: #ifndef _XM_TEXTF_H
27: #define _XM_TEXTF_H
28:
29: #include <Xm/Xm.h>
30:
31: #ifdef __cplusplus
32: extern "C" {
33: #endif
34:
35: extern WidgetClass xmTextFieldWidgetClass;
36:
37: typedef struct _XmTextFieldRec *XmTextFieldWidget;
38: typedef struct _XmTextFieldClassRec *XmTextFieldWidgetClass;
39:
40: extern Widget XmCreateTextField(Widget parent,
41: char *name,
42: Arg *arglist,
43: Cardinal argCount);
44:
45: #ifndef XmIsTextField
46: #define XmIsTextField(w) XtIsSubclass((w), xmTextFieldWidgetClass)
47: #endif
48:
49: void XmTextFieldClearSelection(Widget widget, Time time);
50: Boolean XmTextFieldCopy(Widget widget, Time time);
51: Boolean XmTextFieldCut(Widget widget, Time time);
52: int XmTextFieldGetBaseline(Widget widget);
53: XmTextPosition XmTextFieldGetCursorPosition(Widget widget);
54: Boolean XmTextFieldGetEditable(Widget widget);
55: XmTextPosition XmTextFieldGetInsertionPosition(Widget widget);
56: XmTextPosition XmTextFieldGetLastPosition(Widget widget);
57: int XmTextFieldGetMaxLength(Widget widget);
58: char *XmTextFieldGetSelection(Widget widget);
59: Boolean XmTextFieldGetSelectionPosition(Widget widget, XmTextPosition *left, XmTextPosition *right);
60: wchar_t *XmTextFieldGetSelectionWcs(Widget widget);
61: char *XmTextFieldGetString(Widget widget);
62: wchar_t *XmTextFieldGetStringWcs(Widget widget);
63: int XmTextFieldGetSubstring(Widget widget, XmTextPosition start, int num_chars, int buffer_size, char *buffer);
64: int XmTextFieldGetSubstringWcs(Widget widget, XmTextPosition start, int num_chars, int buffer_size, wchar_t *buffer);
65: void XmTextFieldInsert(Widget widget, XmTextPosition position, char *string);
66: void XmTextFieldInsertWcs(Widget widget, XmTextPosition position, wchar_t *wcstring);
67: Boolean XmTextFieldPaste(Widget widget);
68: Boolean XmTextFieldPosToXY(Widget widget, XmTextPosition position, Position *x, Position *y);
69: Boolean XmTextFieldRemove(Widget widget);
70: void XmTextFieldReplace(Widget widget, XmTextPosition from_pos, XmTextPosition to_pos, char *value);
71: void XmTextFieldReplaceWcs(Widget widget, XmTextPosition from_pos, XmTextPosition to_pos, wchar_t *wcstring);
72: void XmTextFieldSetAddMode(Widget widget, Boolean state);
73: void XmTextFieldSetCursorPosition(Widget widget, XmTextPosition position);
74: void XmTextFieldSetEditable(Widget widget, Boolean editable);
75: void XmTextFieldSetHighlight(Widget widget, XmTextPosition left, XmTextPosition right, XmHighlightMode mode);
76: void XmTextFieldSetInsertionPosition(Widget widget, XmTextPosition position);
77: void XmTextFieldSetMaxLength(Widget widget, int max_length);
78: void XmTextFieldSetSelection(Widget widget, XmTextPosition first, XmTextPosition last, Time time);
79: void XmTextFieldSetString(Widget widget, char *value);
80: void XmTextFieldSetStringWcs(Widget widget, wchar_t *wcstring);
81: void XmTextFieldShowPosition(Widget widget, XmTextPosition position);
82: XmTextPosition XmTextFieldXYToPos(Widget widget, Position x, Position y);
83:
84: #if XmVERSION >= 2
85: Boolean XmTextFieldCopyLink(Widget widget,
86: Time time);
87: #endif
88:
89:
90: #ifdef __cplusplus
91: }
92: #endif
93:
94: #endif /* _XM_TEXTF_H */
95:
Html form generated by Xrefactory version 1.6.7 on Fri Sep 03 17:18:59 2004