xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
widgets
QHeaderView.x
浏览该文件的文档.
1
//xlang Source, Name:qt5/widgets/QHeaderView.x
2
//Date: Wed Jan 17:34:24 2021
3
package
Qt{
4
@SuppressWarnings public class QHeaderView : QAbstractItemView{
5
6
public QHeaderView(long h){
7
super(h);
8
}
9
10
public
Orientation
orientation
() {
11
return
(Orientation)QtXnl.widget_get_int_value(nativehandle, Constant.QH_ORIENTATION);
12
}
13
14
public
int
offset
() {
15
return
QtXnl.widget_get_int_value(nativehandle, Constant.QH_GETOFFSET);
16
}
17
18
public
int
length
() {
19
return
QtXnl.widget_get_int_value(nativehandle, Constant.QH_GETLENGTH);
20
}
21
22
23
public
int
sectionSizeHint
(
int
logicalIndex) {
24
return
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SECTIONSIZEHINT, logicalIndex, 0);
25
}
26
27
public
int
visualIndexAt
(
int
position) {
28
return
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_VISUALINDEXAT, position, 0);
29
}
30
31
public
int
logicalIndexAt
(
int
position) {
32
return
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_LOGICALINDEXAT, position, 0);
33
}
34
35
public
int
logicalIndexAt
(
int
x,
int
y) {
36
return
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_LOGICALINDEXATXY, x, y);
37
}
38
39
public
int
logicalIndexAt
(QPoint pos) {
40
return
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_LOGICALINDEXATXY, pos.x, pos.y);
41
}
42
43
public
int
sectionSize
(
int
logicalIndex) {
44
return
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SECTIONSIZE, logicalIndex, 0);
45
}
46
47
public
int
sectionPosition
(
int
logicalIndex) {
48
return
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SECTIONPOSITION, logicalIndex, 0);
49
}
50
51
public
int
sectionViewportPosition
(
int
logicalIndex) {
52
return
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SECTIONVIEWPORTPOSITION, logicalIndex, 0);
53
}
54
55
public
void
moveSection
(
int
from,
int
_to){
56
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_MOVESECTION, from, _to);
57
}
58
59
public
void
swapSections
(
int
first,
int
second){
60
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SWAPSECTIONS, first, second);
61
}
62
63
public
void
resizeSection
(
int
logicalIndex,
int
size){
64
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_RESIZESECTION, logicalIndex, size);
65
}
66
67
public
void
resizeSections
(ResizeMode mode){
68
QtXnl.widget_set_vint_value(nativehandle, Constant.QH_RESIZESECTIONS, mode);
69
}
70
71
public
bool
isSectionHidden
(
int
logicalIndex) {
72
return
0 != QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_ISSECTIONHIDDEN, logicalIndex, 0);
73
}
74
75
public
void
setSectionHidden
(
int
logicalIndex,
bool
hide){
76
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SETSECTIONHIDDEN, logicalIndex, hide ? 1 : 0);
77
}
78
79
public
int
hiddenSectionCount
() {
80
return
QtXnl.widget_get_int_value(nativehandle, Constant.QH_HIDDENSECTIONCOUNT);
81
}
82
83
public
void
hideSection
(
int
logicalIndex){
84
QtXnl.widget_set_vint_value(nativehandle, Constant.QH_HIDESECTION, logicalIndex);
85
}
86
87
public
void
showSection
(
int
logicalIndex){
88
QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SHOWSECTION, logicalIndex);
89
}
90
91
public
int
count
() {
92
return
QtXnl.widget_get_int_value(nativehandle, Constant.QH_COUNT);
93
}
94
95
public
int
visualIndex
(
int
logicalIndex) {
96
return
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_VISUALINDEX, logicalIndex, 0);
97
}
98
99
public
int
logicalIndex
(
int
visualIndex) {
100
return
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_LOGICALINDEX, visualIndex, 0);
101
}
102
103
public
void
setSectionsMovable
(
bool
movable){
104
QtXnl.widget_set_bool_value(nativehandle, Constant.QH_SETSECTIONSMOVABLE, movable);
105
}
106
107
public
bool
sectionsMovable
() {
108
return
QtXnl.widget_get_bool_value(nativehandle, Constant.QH_SECTIONSMOVABLE);
109
}
110
111
public
void
setMovable
(
bool
movable) { setSectionsMovable(movable); }
112
113
public
bool
isMovable
() {
return
sectionsMovable(); }
114
115
public
void
setSectionsClickable
(
bool
clickable){
116
QtXnl.widget_set_bool_value(nativehandle, Constant.QH_SETSECTIONSCLICKABLE, clickable);
117
}
118
119
public
bool
sectionsClickable
() {
120
return
QtXnl.widget_get_bool_value(nativehandle, Constant.QH_SECTIONSCLICKABLE);
121
}
122
123
public
void
setClickable
(
bool
clickable) { setSectionsClickable(clickable); }
124
125
public
bool
isClickable
() {
return
sectionsClickable(); }
126
127
public
void
setHighlightSections
(
bool
highlight){
128
QtXnl.widget_set_bool_value(nativehandle, Constant.QH_SETHIGHLIGHTSECTIONS, highlight);
129
}
130
131
public
bool
highlightSections
() {
132
return
QtXnl.widget_get_bool_value(nativehandle, Constant.QH_HIGHLIGHTSECTIONS);
133
}
134
135
public
ResizeMode
sectionResizeMode
(
int
logicalIndex) {
136
return
(ResizeMode)QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SECTIONRESIZEMODE, logicalIndex, 0);
137
}
138
139
public
void
setSectionResizeMode
(ResizeMode mode){
140
QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SETSECTIONRESIZEMODE, mode);
141
}
142
143
public
void
setSectionResizeMode
(
int
logicalIndex, ResizeMode mode){
144
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SETSECTIONRESIZEMODE, logicalIndex, mode);
145
}
146
147
public
void
setResizeContentsPrecision
(
int
precision){
148
QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SETRESIZECONTENTSPRECISION, precision);
149
}
150
151
public
int
resizeContentsPrecision
() {
152
return
QtXnl.widget_get_int_value(nativehandle, Constant.QH_RESIZECONTENTSPRECISION);
153
}
154
155
public
void
setResizeMode
(ResizeMode mode)
156
{ setSectionResizeMode(mode); }
157
158
public
void
setResizeMode
(
int
logicalindex, ResizeMode mode)
159
{ setSectionResizeMode(logicalindex, mode); }
160
161
public
ResizeMode
resizeMode
(
int
logicalindex)
162
{
return
sectionResizeMode(logicalindex); }
163
164
public
int
stretchSectionCount
() {
165
return
QtXnl.widget_get_int_value(nativehandle, Constant.QH_STRETCHSECTIONCOUNT);
166
}
167
168
public
void
setSortIndicatorShown
(
bool
show){
169
QtXnl.widget_set_bool_value(nativehandle, Constant.QH_SETSORTINDICATORSHOWN, show);
170
}
171
172
public
bool
isSortIndicatorShown
() {
173
return
QtXnl.widget_get_bool_value(nativehandle, Constant.QH_ISSORTINDICATORSHOWN);
174
}
175
176
public
void
setSortIndicator
(
int
logicalIndex,
Qt
.
SortOrder
order){
177
QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SETSORTINDICATOR, logicalIndex, order);
178
}
179
180
public
int
sortIndicatorSection
() {
181
return
QtXnl.widget_get_int_value(nativehandle, Constant.QH_SORTINDICATORSECTION);
182
}
183
184
public
Qt.SortOrder
sortIndicatorOrder
() {
185
return
(
Qt
.
SortOrder
)QtXnl.widget_get_int_value(nativehandle, Constant.QH_SORTINDICATORORDER);
186
}
187
188
public
bool
stretchLastSection
() {
189
return
QtXnl.widget_get_bool_value(nativehandle, Constant.QH_STRETCHLASTSECTION);
190
}
191
192
public
void
setStretchLastSection
(
bool
stretch){
193
QtXnl.widget_set_bool_value(nativehandle, Constant.QH_SETSTRETCHLASTSECTION, stretch);
194
}
195
196
public
bool
cascadingSectionResizes
() {
197
return
QtXnl.widget_get_bool_value(nativehandle, Constant.QH_CASCADINGSECTIONRESIZES);
198
}
199
200
public
void
setCascadingSectionResizes
(
bool
enable){
201
QtXnl.widget_set_bool_value(nativehandle, Constant.QH_SETCASCADINGSECTIONRESIZES, enable);
202
}
203
204
public
int
defaultSectionSize
() {
205
return
QtXnl.widget_get_int_value(nativehandle, Constant.QH_DEFAULTSECTIONSIZE);
206
}
207
208
public
void
setDefaultSectionSize
(
int
size){
209
QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SETDEFAULTSECTIONSIZE, size);
210
}
211
212
public
void
resetDefaultSectionSize
(){
213
QtXnl.widget_slot(nativehandle, Constant.QH_RESETDEFAULTSECTIONSIZE);
214
}
215
216
public
int
minimumSectionSize
() {
217
return
QtXnl.widget_get_int_value(nativehandle, Constant.QH_MINIMUMSECTIONSIZE);
218
}
219
220
public
void
setMinimumSectionSize
(
int
size){
221
QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SETMINIMUMSECTIONSIZE, size);
222
}
223
224
public
int
maximumSectionSize
() {
225
return
QtXnl.widget_get_int_value(nativehandle, Constant.QH_MAXIMUMSECTIONSIZE);
226
}
227
228
public
void
setMaximumSectionSize
(
int
size){
229
QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SETMAXIMUMSECTIONSIZE, size);
230
}
231
232
public
int
defaultAlignment
() {
233
return
QtXnl.widget_get_int_value(nativehandle, Constant.QH_DEFAULTALIGNMENT);
234
}
235
236
public
void
setDefaultAlignment
(
int
alignment){
237
QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SETDEFAULTALIGNMENT, alignment);
238
}
239
240
public
void
doItemsLayout
() {
241
QtXnl.widget_slot(nativehandle, Constant.QH_DOITEMSLAYOUT);
242
}
243
244
public
bool
sectionsMoved
() {
245
return
QtXnl.widget_get_bool_value(nativehandle, Constant.QH_SECTIONSMOVED);
246
}
247
248
public
bool
sectionsHidden
() {
249
return
QtXnl.widget_get_bool_value(nativehandle, Constant.QH_SECTIONSHIDDEN);
250
}
251
252
public
byte
[]
saveState
() {
253
return
(
byte
[])QtXnl.widget_get_object(nativehandle, Constant.QH_SAVESTATE);
254
}
255
256
public
bool
restoreState
(
byte
[] state){
257
QtXnl.widget_set_object_value(nativehandle, Constant.QH_LOADSTATE, state);
258
return
true
;
259
}
260
261
public
void
reset
() {
262
QtXnl.widget_slot(nativehandle, Constant.QH_RESET);
263
}
264
265
266
private
onHeaderEventListener _header_listener = nilptr;
267
268
public
void
setOnHeaderEventListener
(onHeaderEventListener _l){
269
_header_listener = _l;
270
}
271
272
public
onHeaderEventListener
getOnHeaderEventListener
(){
273
return
_header_listener;
274
}
275
276
public
void
sectionMoved
(
int
logicalIndex,
int
oldVisualIndex,
int
newVisualIndex){
277
if
(_header_listener != nilptr){
278
_header_listener.sectionMoved(
this
, logicalIndex, oldVisualIndex, newVisualIndex);
279
}
280
}
281
public
void
sectionResized
(
int
logicalIndex,
int
oldSize,
int
newSize){
282
if
(_header_listener != nilptr){
283
_header_listener.sectionResized(
this
, logicalIndex, oldSize, newSize);
284
}
285
}
286
public
void
sectionPressed
(
int
logicalIndex){
287
if
(_header_listener != nilptr){
288
_header_listener.sectionPressed(
this
, logicalIndex);
289
}
290
}
291
public
void
sectionClicked
(
int
logicalIndex){
292
if
(_header_listener != nilptr){
293
_header_listener.sectionClicked(
this
, logicalIndex);
294
}
295
}
296
public
void
sectionEntered
(
int
logicalIndex){
297
if
(_header_listener != nilptr){
298
_header_listener.sectionEntered(
this
, logicalIndex);
299
}
300
}
301
public
void
sectionDoubleClicked
(
int
logicalIndex){
302
if
(_header_listener != nilptr){
303
_header_listener.sectionDoubleClicked(
this
, logicalIndex);
304
}
305
}
306
public
void
sectionCountChanged
(
int
oldCount,
int
newCount){
307
if
(_header_listener != nilptr){
308
_header_listener.sectionCountChanged(
this
, oldCount, newCount);
309
}
310
}
311
public
void
sectionHandleDoubleClicked
(
int
logicalIndex){
312
if
(_header_listener != nilptr){
313
_header_listener.sectionHandleDoubleClicked(
this
, logicalIndex);
314
}
315
}
316
public
void
geometriesChanged
(){
317
if
(_header_listener != nilptr){
318
_header_listener.geometriesChanged(
this
);
319
}
320
}
321
public
void
sortIndicatorChanged
(
int
logicalIndex,
int
order){
322
if
(_header_listener != nilptr){
323
_header_listener.sortIndicatorChanged(
this
, logicalIndex, (
Qt
.
SortOrder
)order);
324
}
325
}
326
};
327
};
Qt.QHeaderView.swapSections
void swapSections(int first, int second)
Definition
QHeaderView.x:59
Qt.QHeaderView.cascadingSectionResizes
bool cascadingSectionResizes()
Definition
QHeaderView.x:196
Qt.QHeaderView.setHighlightSections
void setHighlightSections(bool highlight)
Definition
QHeaderView.x:127
Qt.QHeaderView.count
int count()
Definition
QHeaderView.x:91
Qt.QHeaderView.resizeContentsPrecision
int resizeContentsPrecision()
Definition
QHeaderView.x:151
Qt.QHeaderView.setSectionsClickable
void setSectionsClickable(bool clickable)
Definition
QHeaderView.x:115
Qt.QHeaderView.isSortIndicatorShown
bool isSortIndicatorShown()
Definition
QHeaderView.x:172
Qt.QHeaderView.visualIndex
int visualIndex(int logicalIndex)
Definition
QHeaderView.x:95
Qt.QHeaderView.sectionPressed
void sectionPressed(int logicalIndex)
Definition
QHeaderView.x:286
Qt.QHeaderView.setMinimumSectionSize
void setMinimumSectionSize(int size)
Definition
QHeaderView.x:220
Qt.QHeaderView.sectionResized
void sectionResized(int logicalIndex, int oldSize, int newSize)
Definition
QHeaderView.x:281
Qt.QHeaderView.sortIndicatorSection
int sortIndicatorSection()
Definition
QHeaderView.x:180
Qt.QHeaderView.sectionViewportPosition
int sectionViewportPosition(int logicalIndex)
Definition
QHeaderView.x:51
Qt.QHeaderView.hiddenSectionCount
int hiddenSectionCount()
Definition
QHeaderView.x:79
Qt.QHeaderView.stretchSectionCount
int stretchSectionCount()
Definition
QHeaderView.x:164
Qt.QHeaderView.resetDefaultSectionSize
void resetDefaultSectionSize()
Definition
QHeaderView.x:212
Qt.QHeaderView.defaultAlignment
int defaultAlignment()
Definition
QHeaderView.x:232
Qt.QHeaderView.setResizeMode
void setResizeMode(ResizeMode mode)
Definition
QHeaderView.x:155
Qt.QHeaderView.reset
void reset()
Definition
QHeaderView.x:261
Qt.QHeaderView.doItemsLayout
void doItemsLayout()
Definition
QHeaderView.x:240
Qt.QHeaderView.setSectionsMovable
void setSectionsMovable(bool movable)
Definition
QHeaderView.x:103
Qt.QHeaderView.setResizeMode
void setResizeMode(int logicalindex, ResizeMode mode)
Definition
QHeaderView.x:158
Qt.QHeaderView.sortIndicatorChanged
void sortIndicatorChanged(int logicalIndex, int order)
Definition
QHeaderView.x:321
Qt.QHeaderView.setDefaultAlignment
void setDefaultAlignment(int alignment)
Definition
QHeaderView.x:236
Qt.QHeaderView.setOnHeaderEventListener
void setOnHeaderEventListener(onHeaderEventListener _l)
Definition
QHeaderView.x:268
Qt.QHeaderView.sectionsClickable
bool sectionsClickable()
Definition
QHeaderView.x:119
Qt.QHeaderView.highlightSections
bool highlightSections()
Definition
QHeaderView.x:131
Qt.QHeaderView.isClickable
bool isClickable()
Definition
QHeaderView.x:125
Qt.QHeaderView.getOnHeaderEventListener
onHeaderEventListener getOnHeaderEventListener()
Definition
QHeaderView.x:272
Qt.QHeaderView.sectionPosition
int sectionPosition(int logicalIndex)
Definition
QHeaderView.x:47
Qt.QHeaderView.logicalIndex
int logicalIndex(int visualIndex)
Definition
QHeaderView.x:99
Qt.QHeaderView.sectionHandleDoubleClicked
void sectionHandleDoubleClicked(int logicalIndex)
Definition
QHeaderView.x:311
Qt.QHeaderView.moveSection
void moveSection(int from, int _to)
Definition
QHeaderView.x:55
Qt.QHeaderView.setSortIndicator
void setSortIndicator(int logicalIndex, Qt.SortOrder order)
Definition
QHeaderView.x:176
Qt.QHeaderView.setStretchLastSection
void setStretchLastSection(bool stretch)
Definition
QHeaderView.x:192
Qt.QHeaderView.setClickable
void setClickable(bool clickable)
Definition
QHeaderView.x:123
Qt.QHeaderView.setMovable
void setMovable(bool movable)
Definition
QHeaderView.x:111
Qt.QHeaderView.orientation
Orientation orientation()
Definition
QHeaderView.x:10
Qt.QHeaderView.sectionSizeHint
int sectionSizeHint(int logicalIndex)
Definition
QHeaderView.x:23
Qt.QHeaderView.sectionDoubleClicked
void sectionDoubleClicked(int logicalIndex)
Definition
QHeaderView.x:301
Qt.QHeaderView.length
int length()
Definition
QHeaderView.x:18
Qt.QHeaderView.saveState
byte [] saveState()
Definition
QHeaderView.x:252
Qt.QHeaderView.sectionCountChanged
void sectionCountChanged(int oldCount, int newCount)
Definition
QHeaderView.x:306
Qt.QHeaderView.sortIndicatorOrder
Qt.SortOrder sortIndicatorOrder()
Definition
QHeaderView.x:184
Qt.QHeaderView.sectionEntered
void sectionEntered(int logicalIndex)
Definition
QHeaderView.x:296
Qt.QHeaderView.hideSection
void hideSection(int logicalIndex)
Definition
QHeaderView.x:83
Qt.QHeaderView.sectionSize
int sectionSize(int logicalIndex)
Definition
QHeaderView.x:43
Qt.QHeaderView.sectionResizeMode
ResizeMode sectionResizeMode(int logicalIndex)
Definition
QHeaderView.x:135
Qt.QHeaderView.setCascadingSectionResizes
void setCascadingSectionResizes(bool enable)
Definition
QHeaderView.x:200
Qt.QHeaderView.setResizeContentsPrecision
void setResizeContentsPrecision(int precision)
Definition
QHeaderView.x:147
Qt.QHeaderView.isMovable
bool isMovable()
Definition
QHeaderView.x:113
Qt.QHeaderView.setSectionHidden
void setSectionHidden(int logicalIndex, bool hide)
Definition
QHeaderView.x:75
Qt.QHeaderView.minimumSectionSize
int minimumSectionSize()
Definition
QHeaderView.x:216
Qt.QHeaderView.stretchLastSection
bool stretchLastSection()
Definition
QHeaderView.x:188
Qt.QHeaderView.sectionsHidden
bool sectionsHidden()
Definition
QHeaderView.x:248
Qt.QHeaderView.sectionClicked
void sectionClicked(int logicalIndex)
Definition
QHeaderView.x:291
Qt.QHeaderView.restoreState
bool restoreState(byte[] state)
Definition
QHeaderView.x:256
Qt.QHeaderView.maximumSectionSize
int maximumSectionSize()
Definition
QHeaderView.x:224
Qt.QHeaderView.setDefaultSectionSize
void setDefaultSectionSize(int size)
Definition
QHeaderView.x:208
Qt.QHeaderView.logicalIndexAt
int logicalIndexAt(QPoint pos)
Definition
QHeaderView.x:39
Qt.QHeaderView.sectionMoved
void sectionMoved(int logicalIndex, int oldVisualIndex, int newVisualIndex)
Definition
QHeaderView.x:276
Qt.QHeaderView.resizeMode
ResizeMode resizeMode(int logicalindex)
Definition
QHeaderView.x:161
Qt.QHeaderView.isSectionHidden
bool isSectionHidden(int logicalIndex)
Definition
QHeaderView.x:71
Qt.QHeaderView.sectionsMovable
bool sectionsMovable()
Definition
QHeaderView.x:107
Qt.QHeaderView.logicalIndexAt
int logicalIndexAt(int x, int y)
Definition
QHeaderView.x:35
Qt.QHeaderView.geometriesChanged
void geometriesChanged()
Definition
QHeaderView.x:316
Qt.QHeaderView.sectionsMoved
bool sectionsMoved()
Definition
QHeaderView.x:244
Qt.QHeaderView.defaultSectionSize
int defaultSectionSize()
Definition
QHeaderView.x:204
Qt.QHeaderView.setSortIndicatorShown
void setSortIndicatorShown(bool show)
Definition
QHeaderView.x:168
Qt.QHeaderView.showSection
void showSection(int logicalIndex)
Definition
QHeaderView.x:87
Qt.QHeaderView.setSectionResizeMode
void setSectionResizeMode(int logicalIndex, ResizeMode mode)
Definition
QHeaderView.x:143
Qt.QHeaderView.resizeSections
void resizeSections(ResizeMode mode)
Definition
QHeaderView.x:67
Qt.QHeaderView.setSectionResizeMode
void setSectionResizeMode(ResizeMode mode)
Definition
QHeaderView.x:139
Qt.QHeaderView.visualIndexAt
int visualIndexAt(int position)
Definition
QHeaderView.x:27
Qt.QHeaderView.setMaximumSectionSize
void setMaximumSectionSize(int size)
Definition
QHeaderView.x:228
Qt.QHeaderView.logicalIndexAt
int logicalIndexAt(int position)
Definition
QHeaderView.x:31
Qt.QHeaderView.resizeSection
void resizeSection(int logicalIndex, int size)
Definition
QHeaderView.x:63
Qt.QHeaderView.offset
int offset()
Definition
QHeaderView.x:14
Qt.SortOrder
Definition
Constant.x:2766
Qt
Definition
QCefQuery.x:3
制作者
1.9.8