summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QStyle.java
blob: f04bf0ed8fff6555c6e1b261e15a868a64bad503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;

public class QStyle extends QObject  {
	protected QStyle(Class dummy){super((Class) null);}
	public static final int PE_ButtonCommand = 0;
	public static final int PE_ButtonDefault = 1;
	public static final int PE_ButtonBevel = 2;
	public static final int PE_ButtonTool = 3;
	public static final int PE_ButtonDropDown = 4;
	public static final int PE_FocusRect = 5;
	public static final int PE_ArrowUp = 6;
	public static final int PE_ArrowDown = 7;
	public static final int PE_ArrowRight = 8;
	public static final int PE_ArrowLeft = 9;
	public static final int PE_SpinWidgetUp = 10;
	public static final int PE_SpinWidgetDown = 11;
	public static final int PE_SpinWidgetPlus = 12;
	public static final int PE_SpinWidgetMinus = 13;
	public static final int PE_Indicator = 14;
	public static final int PE_IndicatorMask = 15;
	public static final int PE_ExclusiveIndicator = 16;
	public static final int PE_ExclusiveIndicatorMask = 17;
	public static final int PE_DockWindowHandle = 18;
	public static final int PE_DockWindowSeparator = 19;
	public static final int PE_DockWindowResizeHandle = 20;
	public static final int PE_Splitter = 21;
	public static final int PE_Panel = 22;
	public static final int PE_PanelPopup = 23;
	public static final int PE_PanelMenuBar = 24;
	public static final int PE_PanelDockWindow = 25;
	public static final int PE_TabBarBase = 26;
	public static final int PE_HeaderSection = 27;
	public static final int PE_HeaderArrow = 28;
	public static final int PE_StatusBarSection = 29;
	public static final int PE_GroupBoxFrame = 30;
	public static final int PE_Separator = 31;
	public static final int PE_SizeGrip = 32;
	public static final int PE_CheckMark = 33;
	public static final int PE_ScrollBarAddLine = 34;
	public static final int PE_ScrollBarSubLine = 35;
	public static final int PE_ScrollBarAddPage = 36;
	public static final int PE_ScrollBarSubPage = 37;
	public static final int PE_ScrollBarSlider = 38;
	public static final int PE_ScrollBarFirst = 39;
	public static final int PE_ScrollBarLast = 40;
	public static final int PE_ProgressBarChunk = 41;
	public static final int PE_PanelLineEdit = 42;
	public static final int PE_PanelTabWidget = 43;
	public static final int PE_WindowFrame = 44;
	public static final int PE_CheckListController = 45;
	public static final int PE_CheckListIndicator = 46;
	public static final int PE_CheckListExclusiveIndicator = 47;
	public static final int PE_PanelGroupBox = 48;
	public static final int PE_RubberBand = 49;
	public static final int PE_CustomBase = 0xf000000;

	public static final int Style_Default = 0x00000000;
	public static final int Style_Enabled = 0x00000001;
	public static final int Style_Raised = 0x00000002;
	public static final int Style_Sunken = 0x00000004;
	public static final int Style_Off = 0x00000008;
	public static final int Style_NoChange = 0x00000010;
	public static final int Style_On = 0x00000020;
	public static final int Style_Down = 0x00000040;
	public static final int Style_Horizontal = 0x00000080;
	public static final int Style_HasFocus = 0x00000100;
	public static final int Style_Top = 0x00000200;
	public static final int Style_Bottom = 0x00000400;
	public static final int Style_FocusAtBorder = 0x00000800;
	public static final int Style_AutoRaise = 0x00001000;
	public static final int Style_MouseOver = 0x00002000;
	public static final int Style_Up = 0x00004000;
	public static final int Style_Selected = 0x00008000;
	public static final int Style_Active = 0x00010000;
	public static final int Style_ButtonDefault = 0x00020000;

	public static final int CE_PushButton = 0;
	public static final int CE_PushButtonLabel = 1;
	public static final int CE_CheckBox = 2;
	public static final int CE_CheckBoxLabel = 3;
	public static final int CE_RadioButton = 4;
	public static final int CE_RadioButtonLabel = 5;
	public static final int CE_TabBarTab = 6;
	public static final int CE_TabBarLabel = 7;
	public static final int CE_ProgressBarGroove = 8;
	public static final int CE_ProgressBarContents = 9;
	public static final int CE_ProgressBarLabel = 10;
	public static final int CE_PopupMenuItem = 11;
	public static final int CE_MenuBarItem = 12;
	public static final int CE_ToolButtonLabel = 13;
	public static final int CE_MenuBarEmptyArea = 14;
	public static final int CE_PopupMenuScroller = 15;
	public static final int CE_DockWindowEmptyArea = 16;
	public static final int CE_PopupMenuVerticalExtra = 17;
	public static final int CE_PopupMenuHorizontalExtra = 18;
	public static final int CE_ToolBoxTab = 19;
	public static final int CE_HeaderLabel = 20;
	public static final int CE_CustomBase = 0xf0000000;

	public static final int SR_PushButtonContents = 0;
	public static final int SR_PushButtonFocusRect = 1;
	public static final int SR_CheckBoxIndicator = 2;
	public static final int SR_CheckBoxContents = 3;
	public static final int SR_CheckBoxFocusRect = 4;
	public static final int SR_RadioButtonIndicator = 5;
	public static final int SR_RadioButtonContents = 6;
	public static final int SR_RadioButtonFocusRect = 7;
	public static final int SR_ComboBoxFocusRect = 8;
	public static final int SR_SliderFocusRect = 9;
	public static final int SR_DockWindowHandleRect = 10;
	public static final int SR_ProgressBarGroove = 11;
	public static final int SR_ProgressBarContents = 12;
	public static final int SR_ProgressBarLabel = 13;
	public static final int SR_ToolButtonContents = 14;
	public static final int SR_DialogButtonAccept = 15;
	public static final int SR_DialogButtonReject = 16;
	public static final int SR_DialogButtonApply = 17;
	public static final int SR_DialogButtonHelp = 18;
	public static final int SR_DialogButtonAll = 19;
	public static final int SR_DialogButtonAbort = 20;
	public static final int SR_DialogButtonIgnore = 21;
	public static final int SR_DialogButtonRetry = 22;
	public static final int SR_DialogButtonCustom = 23;
	public static final int SR_ToolBoxTabContents = 24;
	public static final int SR_CustomBase = 0xf0000000;

	public static final int CC_SpinWidget = 0;
	public static final int CC_ComboBox = 1;
	public static final int CC_ScrollBar = 2;
	public static final int CC_Slider = 3;
	public static final int CC_ToolButton = 4;
	public static final int CC_TitleBar = 5;
	public static final int CC_ListView = 6;
	public static final int CC_CustomBase = 0xf0000000;

	public static final int SC_None = 0x00000000;
	public static final int SC_ScrollBarAddLine = 0x00000001;
	public static final int SC_ScrollBarSubLine = 0x00000002;
	public static final int SC_ScrollBarAddPage = 0x00000004;
	public static final int SC_ScrollBarSubPage = 0x00000008;
	public static final int SC_ScrollBarFirst = 0x00000010;
	public static final int SC_ScrollBarLast = 0x00000020;
	public static final int SC_ScrollBarSlider = 0x00000040;
	public static final int SC_ScrollBarGroove = 0x00000080;
	public static final int SC_SpinWidgetUp = 0x00000001;
	public static final int SC_SpinWidgetDown = 0x00000002;
	public static final int SC_SpinWidgetFrame = 0x00000004;
	public static final int SC_SpinWidgetEditField = 0x00000008;
	public static final int SC_SpinWidgetButtonField = 0x00000010;
	public static final int SC_ComboBoxFrame = 0x00000001;
	public static final int SC_ComboBoxEditField = 0x00000002;
	public static final int SC_ComboBoxArrow = 0x00000004;
	public static final int SC_ComboBoxListBoxPopup = 0x00000008;
	public static final int SC_SliderGroove = 0x00000001;
	public static final int SC_SliderHandle = 0x00000002;
	public static final int SC_SliderTickmarks = 0x00000004;
	public static final int SC_ToolButton = 0x00000001;
	public static final int SC_ToolButtonMenu = 0x00000002;
	public static final int SC_TitleBarLabel = 0x00000001;
	public static final int SC_TitleBarSysMenu = 0x00000002;
	public static final int SC_TitleBarMinButton = 0x00000004;
	public static final int SC_TitleBarMaxButton = 0x00000008;
	public static final int SC_TitleBarCloseButton = 0x00000010;
	public static final int SC_TitleBarNormalButton = 0x00000020;
	public static final int SC_TitleBarShadeButton = 0x00000040;
	public static final int SC_TitleBarUnshadeButton = 0x00000080;
	public static final int SC_ListView = 0x00000001;
	public static final int SC_ListViewBranch = 0x00000002;
	public static final int SC_ListViewExpand = 0x00000004;
	public static final int SC_All = 0xffffffff;

	public static final int PM_ButtonMargin = 0;
	public static final int PM_ButtonDefaultIndicator = 1;
	public static final int PM_MenuButtonIndicator = 2;
	public static final int PM_ButtonShiftHorizontal = 3;
	public static final int PM_ButtonShiftVertical = 4;
	public static final int PM_DefaultFrameWidth = 5;
	public static final int PM_SpinBoxFrameWidth = 6;
	public static final int PM_MaximumDragDistance = 7;
	public static final int PM_ScrollBarExtent = 8;
	public static final int PM_ScrollBarSliderMin = 9;
	public static final int PM_SliderThickness = 10;
	public static final int PM_SliderControlThickness = 11;
	public static final int PM_SliderLength = 12;
	public static final int PM_SliderTickmarkOffset = 13;
	public static final int PM_SliderSpaceAvailable = 14;
	public static final int PM_DockWindowSeparatorExtent = 15;
	public static final int PM_DockWindowHandleExtent = 16;
	public static final int PM_DockWindowFrameWidth = 17;
	public static final int PM_MenuBarFrameWidth = 18;
	public static final int PM_TabBarTabOverlap = 19;
	public static final int PM_TabBarTabHSpace = 20;
	public static final int PM_TabBarTabVSpace = 21;
	public static final int PM_TabBarBaseHeight = 22;
	public static final int PM_TabBarBaseOverlap = 23;
	public static final int PM_ProgressBarChunkWidth = 24;
	public static final int PM_SplitterWidth = 25;
	public static final int PM_TitleBarHeight = 26;
	public static final int PM_IndicatorWidth = 27;
	public static final int PM_IndicatorHeight = 28;
	public static final int PM_ExclusiveIndicatorWidth = 29;
	public static final int PM_ExclusiveIndicatorHeight = 30;
	public static final int PM_PopupMenuScrollerHeight = 31;
	public static final int PM_CheckListButtonSize = 32;
	public static final int PM_CheckListControllerSize = 33;
	public static final int PM_PopupMenuFrameHorizontalExtra = 34;
	public static final int PM_PopupMenuFrameVerticalExtra = 35;
	public static final int PM_DialogButtonsSeparator = 36;
	public static final int PM_DialogButtonsButtonWidth = 37;
	public static final int PM_DialogButtonsButtonHeight = 38;
	public static final int PM_MDIFrameWidth = 39;
	public static final int PM_MDIMinimizedWidth = 40;
	public static final int PM_HeaderMargin = 41;
	public static final int PM_HeaderMarkSize = 42;
	public static final int PM_HeaderGripMargin = 43;
	public static final int PM_TabBarTabShiftHorizontal = 44;
	public static final int PM_TabBarTabShiftVertical = 45;
	public static final int PM_TabBarScrollButtonWidth = 46;
	public static final int PM_MenuBarItemSpacing = 47;
	public static final int PM_ToolBarItemSpacing = 48;
	public static final int PM_CustomBase = 0xf0000000;

	public static final int CT_PushButton = 0;
	public static final int CT_CheckBox = 1;
	public static final int CT_RadioButton = 2;
	public static final int CT_ToolButton = 3;
	public static final int CT_ComboBox = 4;
	public static final int CT_Splitter = 5;
	public static final int CT_DockWindow = 6;
	public static final int CT_ProgressBar = 7;
	public static final int CT_PopupMenuItem = 8;
	public static final int CT_TabBarTab = 9;
	public static final int CT_Slider = 10;
	public static final int CT_Header = 11;
	public static final int CT_LineEdit = 12;
	public static final int CT_MenuBar = 13;
	public static final int CT_SpinBox = 14;
	public static final int CT_SizeGrip = 15;
	public static final int CT_TabWidget = 16;
	public static final int CT_DialogButtons = 17;
	public static final int CT_CustomBase = 0xf0000000;

	public static final int SH_EtchDisabledText = 0;
	public static final int SH_GUIStyle = 1;
	public static final int SH_ScrollBar_BackgroundMode = 2;
	public static final int SH_ScrollBar_MiddleClickAbsolutePosition = 3;
	public static final int SH_ScrollBar_ScrollWhenPointerLeavesControl = 4;
	public static final int SH_TabBar_SelectMouseType = 5;
	public static final int SH_TabBar_Alignment = 6;
	public static final int SH_Header_ArrowAlignment = 7;
	public static final int SH_Slider_SnapToValue = 8;
	public static final int SH_Slider_SloppyKeyEvents = 9;
	public static final int SH_ProgressDialog_CenterCancelButton = 10;
	public static final int SH_ProgressDialog_TextLabelAlignment = 11;
	public static final int SH_PrintDialog_RightAlignButtons = 12;
	public static final int SH_MainWindow_SpaceBelowMenuBar = 13;
	public static final int SH_FontDialog_SelectAssociatedText = 14;
	public static final int SH_PopupMenu_AllowActiveAndDisabled = 15;
	public static final int SH_PopupMenu_SpaceActivatesItem = 16;
	public static final int SH_PopupMenu_SubMenuPopupDelay = 17;
	public static final int SH_ScrollView_FrameOnlyAroundContents = 18;
	public static final int SH_MenuBar_AltKeyNavigation = 19;
	public static final int SH_ComboBox_ListMouseTracking = 20;
	public static final int SH_PopupMenu_MouseTracking = 21;
	public static final int SH_MenuBar_MouseTracking = 22;
	public static final int SH_ItemView_ChangeHighlightOnFocus = 23;
	public static final int SH_Widget_ShareActivation = 24;
	public static final int SH_Workspace_FillSpaceOnMaximize = 25;
	public static final int SH_ComboBox_Popup = 26;
	public static final int SH_TitleBar_NoBorder = 27;
	public static final int SH_ScrollBar_StopMouseOverSlider = 28;
	public static final int SH_BlinkCursorWhenTextSelected = 29;
	public static final int SH_RichText_FullWidthSelection = 30;
	public static final int SH_PopupMenu_Scrollable = 31;
	public static final int SH_GroupBox_TextLabelVerticalAlignment = 32;
	public static final int SH_GroupBox_TextLabelColor = 33;
	public static final int SH_PopupMenu_SloppySubMenus = 34;
	public static final int SH_Table_GridLineColor = 35;
	public static final int SH_LineEdit_PasswordCharacter = 36;
	public static final int SH_DialogButtons_DefaultButton = 37;
	public static final int SH_ToolBox_SelectedPageTitleBold = 38;
	public static final int SH_TabBar_PreferNoArrows = 39;
	public static final int SH_ScrollBar_LeftClickAbsolutePosition = 40;
	public static final int SH_ListViewExpand_SelectMouseType = 41;
	public static final int SH_UnderlineAccelerator = 42;
	public static final int SH_ToolButton_Uses3D = 43;
	public static final int SH_CustomBase = 0xf0000000;

	public static final int SP_TitleBarMinButton = 0;
	public static final int SP_TitleBarMaxButton = 1;
	public static final int SP_TitleBarCloseButton = 2;
	public static final int SP_TitleBarNormalButton = 3;
	public static final int SP_TitleBarShadeButton = 4;
	public static final int SP_TitleBarUnshadeButton = 5;
	public static final int SP_DockWindowCloseButton = 6;
	public static final int SP_MessageBoxInformation = 7;
	public static final int SP_MessageBoxWarning = 8;
	public static final int SP_MessageBoxCritical = 9;
	public static final int SP_MessageBoxQuestion = 10;
	public static final int SP_CustomBase = 0xf0000000;

	public native QMetaObject metaObject();
	public native String className();
	public native void polish(QWidget arg1);
	public native void unPolish(QWidget arg1);
	public native void polish(QApplication arg1);
	public native void unPolish(QApplication arg1);
	public native void polish(QPalette arg1);
	public native void polishPopupMenu(QPopupMenu arg1);
	public native QRect itemRect(QPainter p, QRect r, int flags, boolean enabled, QPixmap pixmap, String text, int len);
	public native QRect itemRect(QPainter p, QRect r, int flags, boolean enabled, QPixmap pixmap, String text);
	public native void drawItem(QPainter p, QRect r, int flags, QColorGroup g, boolean enabled, QPixmap pixmap, String text, int len, QColor penColor);
	public native void drawItem(QPainter p, QRect r, int flags, QColorGroup g, boolean enabled, QPixmap pixmap, String text, int len);
	public native void drawItem(QPainter p, QRect r, int flags, QColorGroup g, boolean enabled, QPixmap pixmap, String text);
	public native void drawPrimitive(int pe, QPainter p, QRect r, QColorGroup cg, int flags, QStyleOption arg6);
	public native void drawPrimitive(int pe, QPainter p, QRect r, QColorGroup cg, int flags);
	public native void drawPrimitive(int pe, QPainter p, QRect r, QColorGroup cg);
	public native void drawControl(int element, QPainter p, QWidget widget, QRect r, QColorGroup cg, int how, QStyleOption arg7);
	public native void drawControl(int element, QPainter p, QWidget widget, QRect r, QColorGroup cg, int how);
	public native void drawControl(int element, QPainter p, QWidget widget, QRect r, QColorGroup cg);
	public native void drawControlMask(int element, QPainter p, QWidget widget, QRect r, QStyleOption arg5);
	public native void drawControlMask(int element, QPainter p, QWidget widget, QRect r);
	public native QRect subRect(int r, QWidget widget);
	public native void drawComplexControl(int control, QPainter p, QWidget widget, QRect r, QColorGroup cg, int how, int sub, int subActive, QStyleOption arg9);
	public native void drawComplexControl(int control, QPainter p, QWidget widget, QRect r, QColorGroup cg, int how, int sub, int subActive);
	public native void drawComplexControl(int control, QPainter p, QWidget widget, QRect r, QColorGroup cg, int how, int sub);
	public native void drawComplexControl(int control, QPainter p, QWidget widget, QRect r, QColorGroup cg, int how);
	public native void drawComplexControl(int control, QPainter p, QWidget widget, QRect r, QColorGroup cg);
	public native void drawComplexControlMask(int control, QPainter p, QWidget widget, QRect r, QStyleOption arg5);
	public native void drawComplexControlMask(int control, QPainter p, QWidget widget, QRect r);
	public native QRect querySubControlMetrics(int control, QWidget widget, int sc, QStyleOption arg4);
	public native QRect querySubControlMetrics(int control, QWidget widget, int sc);
	public native int querySubControl(int control, QWidget widget, QPoint pos, QStyleOption arg4);
	public native int querySubControl(int control, QWidget widget, QPoint pos);
	public native int pixelMetric(int metric, QWidget widget);
	public native int pixelMetric(int metric);
	public native QSize sizeFromContents(int contents, QWidget widget, QSize contentsSize, QStyleOption arg4);
	public native QSize sizeFromContents(int contents, QWidget widget, QSize contentsSize);
	// int styleHint(QStyle::StyleHint arg1,const QWidget* arg2,const QStyleOption& arg3,QStyleHintReturn* arg4); >>>> NOT CONVERTED
	public native int styleHint(int stylehint, QWidget widget, QStyleOption arg3);
	public native int styleHint(int stylehint, QWidget widget);
	public native int styleHint(int stylehint);
	public native QPixmap stylePixmap(int stylepixmap, QWidget widget, QStyleOption arg3);
	public native QPixmap stylePixmap(int stylepixmap, QWidget widget);
	public native QPixmap stylePixmap(int stylepixmap);
	public native int defaultFrameWidth();
	public native void tabbarMetrics(QWidget t, int[] hf, int[] vf, int[] ov);
	public native QSize scrollBarExtent();
	public static native String tr(String arg1, String arg2);
	public static native String tr(String arg1);
	public static native QRect visualRect(QRect logical, QWidget w);
	public static native QRect visualRect(QRect logical, QRect bounding);
}