Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
2
    COPYRIGHT NOTICE
3
 
4
    This program is the proprietary property of the Secretary of State
5
    for Defence (United Kingdom) acting through the Defence Research
6
    Agency (DRA).  Use, reproduction, production of amended versions
7
    and/or transfer of this program is permitted PROVIDED THAT:
8
 
9
    (a)	 This legend be preserved on any such reproduction and amended
10
	 version.
11
 
12
    (b)	 Any amended version of this program be clearly marked to show
13
	 the nature of the amendment and the name of the amending
14
	 organisation.
15
 
16
    (c)	 Any recipient of such reproduction or amended version accept
17
	 the conditions set out in this legend.
18
 
19
    The DRA accepts no liability whatsoever in relation to any use to
20
    which this program may be put and gives no warranty as to the
21
    program's suitability for any purpose.
22
 
23
    All rights reserved.
24
 
25
    Crown Copyright (c) 1994.
26
*/
27
 
28
/*
29
    COPYRIGHT NOTICE
30
 
31
    This program contains amendments to Motif 1.1 API headers in
32
    order to represent the Motif 1.2 API. These amendments are the
33
    property of IXI Ltd, a subsidiary of the Santa Cruz Operation (SCO).
34
    Use, reproduction, production of amended versions and/or transfer of
35
    this program is permitted PROVIDED THAT:
36
 
37
    (a)  This legend be preserved on any such reproduction and amended
38
         version.
39
 
40
    (b)  Any recipient of such reproduction or amended version accept
41
         the conditions set out in this legend.
42
 
43
    IXI accepts no liability whatsoever in relation to any use to
44
    which this program may be put and gives no warranty as to the
45
    program's suitability for any purpose.
46
 
47
    All rights reserved.
48
 
49
    Copyright (c) 1995, 1996
50
*/
51
 
52
 
53
/* SCO CID (IXI) Text.h,v 1.1 1996/08/08 14:13:36 wendland Exp */
54
 
55
+USE "motif/1_2","Xm/Xm.h";
56
+USE "ansi", "stdio.h"; 
57
 
58
+TYPE (struct) _XmTextSourceRec;
59
+TYPE (struct) _XmTextClassRec;
60
+TYPE (struct) _XmTextRec;
61
+TYPEDEF _XmTextSourceRec *XmTextSource;
62
+TYPEDEF _XmTextClassRec *XmTextWidgetClass;
63
+TYPEDEF _XmTextRec *XmTextWidget;
64
 
65
+EXP lvalue WidgetClass xmTextWidgetClass;
66
 
67
+FUNC void XmTextSetHighlight (Widget w, XmTextPosition left, XmTextPosition right, XmHighlightMode mode);
68
+FUNC Widget XmCreateScrolledText (Widget parent, String name, ArgList arglist, Cardinal argcount);
69
+FUNC Widget XmCreateText (Widget parent, String name, ArgList arglist, Cardinal argcount);
70
+FUNC char *XmTextGetString (Widget widget);
71
+FUNC XmTextPosition XmTextGetLastPosition (Widget widget);
72
+FUNC void XmTextSetString (Widget widget, char *value);
73
+FUNC void XmTextReplace (Widget widget, XmTextPosition frompos, XmTextPosition topos, char *value);
74
+FUNC void XmTextInsert (Widget widget, XmTextPosition position, char *value);
75
+FUNC void XmTextSetAddMode (Widget widget,Boolean state);
76
+FUNC Boolean XmTextGetAddMode (Widget widget);
77
+FUNC Boolean XmTextGetEditable (Widget widget);
78
+FUNC void XmTextSetEditable (Widget widget,Boolean editable);
79
+FUNC int XmTextGetMaxLength (Widget widget);
80
+FUNC void XmTextSetMaxLength (Widget widget, int max_length);
81
+FUNC XmTextPosition XmTextGetTopCharacter (Widget widget);
82
+FUNC void XmTextSetTopCharacter (Widget widget, XmTextPosition top_character);
83
+FUNC XmTextPosition XmTextGetCursorPosition (Widget widget);
84
+FUNC void XmTextSetCursorPosition (Widget widget, XmTextPosition position);
85
+FUNC XmTextPosition XmTextGetInsertionPosition (Widget widget);
86
+FUNC void XmTextSetInsertionPosition (Widget widget, XmTextPosition position);
87
+FUNC Boolean XmTextRemove (Widget widget);
88
+FUNC Boolean XmTextCopy (Widget widget, Time copy_time);
89
+FUNC Boolean XmTextCut (Widget widget, Time cut_time);
90
+FUNC Boolean XmTextPaste (Widget widget);
91
+FUNC char *XmTextGetSelection (Widget widget);
92
+FUNC void XmTextSetSelection (Widget widget, XmTextPosition first, XmTextPosition last, Time set_time);
93
+FUNC void XmTextClearSelection (Widget widget, Time clear_time);
94
+FUNC Boolean XmTextGetSelectionPosition (Widget widget, XmTextPosition *left, XmTextPosition *right);
95
+FUNC XmTextPosition XmTextXYToPos (Widget widget,Position x, Position y);
96
+FUNC Boolean XmTextPosToXY (Widget widget, XmTextPosition position, Position *x, Position *y);
97
+FUNC XmTextSource XmTextGetSource (Widget widget);
98
+FUNC void XmTextSetSource (Widget widget, XmTextSource source, XmTextPosition top_character, XmTextPosition cursor_position);
99
+FUNC void XmTextShowPosition (Widget widget, XmTextPosition position);
100
+FUNC void XmTextScroll (Widget widget, int n);
101
+FUNC int XmTextGetBaseLine (Widget widget);
102
+FUNC void XmTextDisableRedisplay(Widget widget);
103
+FUNC void XmTextEnableRedisplay(Widget widget);
104
+FUNC Boolean XmTextFindString(Widget widget, XmTextPosition start, char *string, XmTextDirection direction, XmTextPosition *position);
105
+FUNC Boolean XmTextFindStringWcs(Widget widget, XmTextPosition start, wchar_t *wcstring, XmTextDirection direction, XmTextPosition *position);
106
+FUNC wchar_t *XmTextGetSelectionWcs(Widget widget);
107
+FUNC wchar_t *XmTextGetStringWcs(Widget widget);
108
+FUNC int XmTextGetSubstring(Widget widget, XmTextPosition start, int num_chars, int buffer_size, char *buffer);
109
+FUNC int XmTextGetSubstringWcs(Widget widget, XmTextPosition start, int num_chars, int buffer_size, wchar_t *buffer);
110
+FUNC void XmTextInsertWcs(Widget widget, XmTextPosition position, wchar_t *wcstring);
111
+FUNC void XmTextReplaceWcs(Widget widget, XmTextPosition from_pos, XmTextPosition to_pos, wchar_t *wcstring);
112
+FUNC void XmTextSetStringWcs(Widget widget, wchar_t *wcstring);