~ubuntu-branches/ubuntu/quantal/openmotif/quantal

« back to all changes in this revision

Viewing changes to lib/Xm/DataF.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Bauer
  • Date: 2010-06-23 12:12:31 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100623121231-u89gxdp51sg9wjj2
Tags: 2.3.0-1
* New Maintainer (Closes: #379258) 
* Acknowledge NMU changes
* New upstream release (Closes: #494375)
* Get rid of security patches as they are already part of new upstream
  release (00-xpmvuln.openmotif.patch, 342092-CVE-2005-3964.patch)
* Bump Standards to 3.8.4
* Added {misc:Depends} to make the package lintian cleaner
* Fix weak-library-dev-dependency by adding ${binary:Version}) for the
  -dev Package of openmotif
* Let package depend on autotools-dev to use newer autotools-helper-files
* Work around an autoconf-bug (Gentoo-Bug #1475)
* Added Client-side anti-aliased fonts support via XFT
* Added UTF-8 and UTF8_STRING atom support
* Ability to show text and pixmaps in Label, LabelGadget and all
  derived widgets
* Support of PNG/JPEG image formats in the same way as XPM is supported
* Increase FILE_OFFSET_BITS to 64 to show files >2GB in file-selector
  Idea taken from Magne Oestlyngen (Closes: #288537)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _XmDataF_h
 
2
#define _XmDataF_h
 
3
 
 
4
#include <Xm/Xm.h>
 
5
#include <Xm/TextF.h>
 
6
#include <Xm/Ext.h>
 
7
 
 
8
#if defined(__cplusplus)
 
9
extern "C" {
 
10
#endif
 
11
 
 
12
typedef struct _XmDataFieldClassRec    *XmDataFieldWidgetClass;
 
13
typedef struct _XmDataFieldRec         *XmDataFieldWidget;
 
14
 
 
15
/*      Function Name: XmCreateDataField
 
16
 *      Description: Creation Routine for UIL and ADA.
 
17
 *      Arguments: parent - the parent widget.
 
18
 *                 name - the name of the widget.
 
19
 *                 args, num_args - the number and list of args.
 
20
 *      Returns: The Widget created.
 
21
 */
 
22
 
 
23
Widget XmCreateDataField(
 
24
#ifndef _NO_PROTO
 
25
Widget, String, ArgList, Cardinal
 
26
#endif
 
27
);
 
28
 
 
29
/*
 
30
 * Variable argument list functions
 
31
 */
 
32
 
 
33
extern Widget XmVaCreateDataField(
 
34
                        Widget parent,
 
35
                        char *name,
 
36
                        ...);
 
37
extern Widget XmVaCreateManagedDataField(
 
38
                        Widget parent,
 
39
                        char *name,
 
40
                        ...);
 
41
 
 
42
Boolean _XmDataFieldReplaceText(
 
43
#ifndef _NO_PROTO
 
44
XmDataFieldWidget, XEvent*, XmTextPosition, XmTextPosition, char*, int, Boolean
 
45
#endif
 
46
);
 
47
 
 
48
void XmDataFieldSetString(
 
49
#ifndef _NO_PROTO
 
50
Widget, char*
 
51
#endif
 
52
);
 
53
 
 
54
extern char * XmDataFieldGetString(
 
55
#ifndef _NO_PROTO
 
56
Widget
 
57
#endif
 
58
);
 
59
 
 
60
extern wchar_t * XmDataFieldGetStringWcs(
 
61
#ifndef _NO_PROTO
 
62
Widget
 
63
#endif
 
64
);
 
65
 
 
66
void _XmDataFieldSetClipRect(
 
67
#ifndef _NO_PROTO
 
68
XmDataFieldWidget
 
69
#endif
 
70
);
 
71
 
 
72
void _XmDataFieldDrawInsertionPoint(
 
73
#ifndef _NO_PROTO
 
74
XmDataFieldWidget, Boolean
 
75
#endif
 
76
);
 
77
 
 
78
void XmDataFieldSetHighlight(
 
79
#ifndef _NO_PROTO
 
80
Widget, XmTextPosition, XmTextPosition, XmHighlightMode
 
81
#endif
 
82
);
 
83
 
 
84
void XmDataFieldSetAddMode(
 
85
#ifndef _NO_PROTO
 
86
Widget, Boolean
 
87
#endif
 
88
);
 
89
 
 
90
char * XmDataFieldGetSelection(
 
91
#ifndef _NO_PROTO
 
92
Widget
 
93
#endif
 
94
);
 
95
 
 
96
void XmDataFieldSetSelection(
 
97
#ifndef _NO_PROTO
 
98
Widget, XmTextPosition, XmTextPosition, Time
 
99
#endif
 
100
);
 
101
 
 
102
void _XmDataFieldSetSel2(
 
103
#ifndef _NO_PROTO
 
104
Widget, XmTextPosition, XmTextPosition, Boolean, Time
 
105
#endif
 
106
);
 
107
 
 
108
Boolean XmDataFieldGetSelectionPosition(
 
109
#ifndef _NO_PROTO
 
110
Widget, XmTextPosition *, XmTextPosition *
 
111
#endif
 
112
);
 
113
 
 
114
XmTextPosition XmDataFieldXYToPos(
 
115
#ifndef _NO_PROTO
 
116
Widget, Position, Position
 
117
#endif
 
118
);
 
119
 
 
120
void XmDataFieldShowPosition(
 
121
#ifndef _NO_PROTO
 
122
Widget, XmTextPosition
 
123
#endif
 
124
);
 
125
 
 
126
Boolean XmDataFieldCut(
 
127
#ifndef _NO_PROTO
 
128
Widget, Time
 
129
#endif
 
130
);
 
131
 
 
132
Boolean XmDataFieldCopy(
 
133
#ifndef _NO_PROTO
 
134
Widget, Time
 
135
#endif
 
136
);
 
137
 
 
138
Boolean XmDataFieldPaste(
 
139
#ifndef _NO_PROTO
 
140
Widget
 
141
#endif
 
142
);
 
143
 
 
144
void XmDataFieldSetEditable(
 
145
#ifndef _NO_PROTO
 
146
Widget, Boolean
 
147
#endif
 
148
);
 
149
 
 
150
void XmDataFieldSetInsertionPosition(
 
151
#ifndef _NO_PROTO
 
152
Widget, XmTextPosition
 
153
#endif
 
154
);
 
155
 
 
156
extern WidgetClass xmDataFieldWidgetClass;
 
157
 
 
158
typedef struct _XmDataFieldCallbackStruct {
 
159
    Widget   w;                 /* The XmDataField */
 
160
    String   text;              /* Proposed string */
 
161
    Boolean  accept;            /* Accept return value, for validation */
 
162
} XmDataFieldCallbackStruct;
 
163
 
 
164
#if defined(__cplusplus)
 
165
} /* extern "C" */
 
166
#endif
 
167
 
 
168
#endif /* _XmDataF_h */