xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 包函数
QWidget类 参考
类 QWidget 继承关系图:
QObject ProgressView QAbstractButton QAbstractSlider QCalendarWidget QCefView QComboBox QDateTimeEdit QDialog QDialogButtonBox QDockWidget QFrame QLineEdit QMainWindow QMdiSubWindow QMenu QMenuBar QOpenGLWidget QProgressBar QPropertyBrowser QScintilla QSizeGrip QStatusBar QTabBar QToolBar QVideoWidget Switche DockMainWindow DockPanelBase DockToolBar DockWindowBase

Public 成员函数

静态 Public 成员函数

包函数

额外继承的成员函数

详细描述

在文件 QWidget.xcsm3 行定义.

构造及析构函数说明

◆ QWidget() [1/2]

QWidget ( )

在文件 QWidget.xcsm5 行定义.

5 {
6 }

◆ QWidget() [2/2]

QWidget ( long  h)

在文件 QWidget.xcsm8 行定义.

8 {
9 super(h);
10 }

成员函数说明

◆ About()

void About ( String  caption,
String  text 
)

在文件 QWidget.xcsm351 行定义.

351 {
352 QtXnl.long_string2_int2(nativehandle, Constant.MESSAGEBOXABT, caption, text, 0, 0);
353 }

◆ addAction()

void addAction ( @NotNilptr QAction  action)

QToolBar 重载.

在文件 QWidget.xcsm242 行定义.

242 {
243 QtXnl.widget_set_native_value(nativehandle, Constant.ADDDEFACTION, action.nativehandle);
244 }

◆ addActions()

void addActions ( @NotNilptr QAction []  actions)

在文件 QWidget.xcsm245 行定义.

245 {
246 long [] al = new long[actions.length];
247 for (int i =0; i < al.length; i ++) {
248 al[i] = actions[i].nativehandle;
249 }
250 QtXnl.widget_set_object_value(nativehandle, Constant.ADDDEFACTION, al);
251 }

◆ adjustSize()

void adjustSize ( )

在文件 QWidget.xcsm474 行定义.

474 {
475 QtXnl.widget_slot(nativehandle, Constant.QWIDGET_ADJUSTSIZE);
476 }

◆ centerScreen()

void centerScreen ( )

在文件 QWidget.xcsm416 行定义.

416 {
417 QRect rc = getCurrentScreenSize();
418 rc.offset(getCurrentScreenPoint());
419 move((rc.width() - width()) / 2, (rc.height() - height()) / 2);
420 }
int width()
Definition QWidget.xcsm:180
int height()
Definition QWidget.xcsm:184
QPoint getCurrentScreenPoint()
Definition QWidget.xcsm:381
void move(int x,int y)
Definition QWidget.xcsm:220
QRect getCurrentScreenSize()
Definition QWidget.xcsm:389

◆ clearFocus()

void clearFocus ( )

在文件 QWidget.xcsm309 行定义.

309 {
310 QtXnl.widget_slot(nativehandle, Constant.CLSFOCUS);
311 }

◆ close()

void close ( )

在文件 QWidget.xcsm286 行定义.

286 {
287 QtXnl.widget_slot(nativehandle, Constant.CLOSE);
288 }

◆ create() [1/2]

bool create ( )

◆ create() [2/2]

bool create ( @NotNilptr QWidget  parent)

◆ Critical()

int Critical ( String  caption,
String  text,
int  button,
int  defaultBtn 
)

在文件 QWidget.xcsm337 行定义.

337 {
338 return QtXnl.long_string2_int2(nativehandle, Constant.MESSAGEBOXERR, caption, text, button, defaultBtn);
339 }

◆ finalize()

void finalize ( )
overridepackage

重载 QObject .

在文件 QWidget.xcsm507 行定义.

507 {
508 if (nativehandle != 0) {
509 runOnUi(new Runnable(){
510 long handle = nativehandle;
511 void run()override{
512 QtXnl.widget_slot(handle, Constant.NATIVEFINALIZE);
513 }
514 }/*, __file__ + ":" + __line__*/);
515 }
516 }
void runOnUi(Runnable task)
Definition QObject.xcsm:10

◆ getCurrentScreen()

int getCurrentScreen ( )

在文件 QWidget.xcsm393 行定义.

393 {
394 return QtXnl.widget_get_int_value(nativehandle, Constant.CURRENTSCREEN);
395 }

◆ getCurrentScreenPoint()

QPoint getCurrentScreenPoint ( )

在文件 QWidget.xcsm381 行定义.

381 {
382 long xy = QtXnl.object_get_long_int(nativehandle, Constant.SCREENPOSITION, -1, 0);
383 return new QPoint((int)(xy >> 32) & 0xffffffff, (int)xy & 0xffffffff);
384 }

◆ getCurrentScreenSize()

QRect getCurrentScreenSize ( )

在文件 QWidget.xcsm389 行定义.

389 {
390 long wh = QtXnl.object_get_long_int(nativehandle, Constant.SCREENSIZE, -1, 0);
391 return new QRect(0, 0, (int)(wh >> 32) & 0xffffffff, (int)wh & 0xffffffff);
392 }

◆ getFocusPolicy()

int getFocusPolicy ( )

在文件 QWidget.xcsm153 行定义.

153 {
154 return QtXnl.widget_get_int_value(nativehandle, Constant.SETFOCUSPOLICY);
155 }

◆ getFont()

QFont getFont ( )

在文件 QWidget.xcsm499 行定义.

499 {
500 return new QFont(QtXnl.long_get(nativehandle, Constant.WIDGETGETFONT));
501 }

◆ getLayout()

QLayout getLayout ( )

在文件 QWidget.xcsm64 行定义.

64 {
65 return (QLayout)QtXnl.widget_get_object(nativehandle, Constant.WIDGETGETLAYOUT);
66 }

◆ getMaximumHeight()

int getMaximumHeight ( )

在文件 QWidget.xcsm160 行定义.

160 {
161 return QtXnl.widget_get_int_value(nativehandle, Constant.MAXIMUMHEIGHT);
162 }

◆ getMaximumWidth()

int getMaximumWidth ( )

在文件 QWidget.xcsm168 行定义.

168 {
169 return QtXnl.widget_get_int_value(nativehandle, Constant.MAXIMUMWIDTH);
170 }

◆ getMinimumHeight()

int getMinimumHeight ( )

在文件 QWidget.xcsm156 行定义.

156 {
157 return QtXnl.widget_get_int_value(nativehandle, Constant.MINIMUMHEIGHT);
158 }

◆ getMinimumWidth()

int getMinimumWidth ( )

在文件 QWidget.xcsm164 行定义.

164 {
165 return QtXnl.widget_get_int_value(nativehandle, Constant.MINIMUMWIDTH);
166 }

◆ getOpacity()

double getOpacity ( )

在文件 QWidget.xcsm71 行定义.

71 {
72 return QtXnl.widget_get_double_value(nativehandle,Constant.OPACITY);
73 }

◆ getScreenPoint()

QPoint getScreenPoint ( int  num)

在文件 QWidget.xcsm377 行定义.

377 {
378 long xy = QtXnl.object_get_long_int(nativehandle, Constant.SCREENPOSITION, num, 0);
379 return new QPoint((int)(xy >> 32) & 0xffffffff, (int)xy & 0xffffffff);
380 }

◆ getScreenSize()

QRect getScreenSize ( int  num)

在文件 QWidget.xcsm385 行定义.

385 {
386 long wh = QtXnl.object_get_long_int(nativehandle, Constant.SCREENSIZE, num, 0);
387 return new QRect(0, 0, (int)(wh >> 32) & 0xffffffff, (int)wh & 0xffffffff);
388 }

◆ getStyleSheet()

String getStyleSheet ( )

在文件 QWidget.xcsm239 行定义.

239 {
240 return (String)QtXnl.core_getString(nativehandle, Constant.GETSTYLESHEEY);
241 }
字符串类

◆ getToolTips()

String getToolTips ( )

在文件 QWidget.xcsm426 行定义.

426 {
427 return (String)QtXnl.core_getString(nativehandle, Constant.GETTOOLTIPS);
428 }

◆ getWindowTitle()

String getWindowTitle ( )

在文件 QWidget.xcsm496 行定义.

496 {
497 return (String)QtXnl.core_getString(nativehandle, Constant.WIDGETGETTITLE);
498 }

◆ hasFocus()

bool hasFocus ( )

在文件 QWidget.xcsm422 行定义.

422 {
423 return QtXnl.widget_get_bool_value(nativehandle, Constant.HASFOCUS);
424 }

◆ height()

int height ( )

在文件 QWidget.xcsm184 行定义.

184 {
185 return QtXnl.widget_get_int_value(nativehandle, Constant.HEIGHT);
186 }

◆ hide()

void hide ( )

在文件 QWidget.xcsm289 行定义.

289 {
290 QtXnl.widget_slot(nativehandle, Constant.HIDE);
291 }

◆ Information()

int Information ( String  caption,
String  text,
int  button,
int  defaultBtn 
)

在文件 QWidget.xcsm347 行定义.

347 {
348 return QtXnl.long_string2_int2(nativehandle, Constant.MESSAGEBOXINF, caption, text, button, defaultBtn);
349 }

◆ inputMethodHints()

InputMethodHint inputMethodHints ( )

在文件 QWidget.xcsm145 行定义.

145 {
146 return (InputMethodHint)QtXnl.widget_get_int_value(nativehandle, Constant.WIDGET_GETINPUTMETHODHINTS);
147 }

◆ isAcceptDrops()

bool isAcceptDrops ( )

在文件 QWidget.xcsm455 行定义.

455 {
456 return QtXnl.widget_get_bool_value(nativehandle, Constant.ENABLEDROG);
457 }

◆ isActive()

bool isActive ( )

DockWidgetPanel 重载.

在文件 QWidget.xcsm99 行定义.

99 {
100 return QtXnl.widget_get_bool_value(nativehandle, Constant.ACTIVED);
101 }

◆ isEnabled()

bool isEnabled ( )

在文件 QWidget.xcsm95 行定义.

95 {
96 return QtXnl.widget_get_bool_value(nativehandle, Constant.ENABLED);
97 }

◆ isFullScreen()

bool isFullScreen ( )

在文件 QWidget.xcsm188 行定义.

188 {
189 return QtXnl.widget_get_bool_value(nativehandle, Constant.FULLSCREEN);
190 }

◆ isHidden()

bool isHidden ( )

在文件 QWidget.xcsm192 行定义.

192 {
193 return QtXnl.widget_get_bool_value(nativehandle, Constant.HIDDEN);
194 }

◆ isModal()

bool isModal ( )

在文件 QWidget.xcsm196 行定义.

196 {
197 return QtXnl.widget_get_bool_value(nativehandle, Constant.MODAL);
198 }

◆ isUpdateEnabled()

bool isUpdateEnabled ( )

在文件 QWidget.xcsm477 行定义.

477 {
478 return QtXnl.widget_get_bool_value(nativehandle,Constant.UPDATEENABLE );
479 }

◆ isVisible()

bool isVisible ( )

在文件 QWidget.xcsm83 行定义.

83 {
84 return QtXnl.widget_get_bool_value(nativehandle, Constant.VISIBLE);
85 }

◆ isWindow()

bool isWindow ( )

在文件 QWidget.xcsm200 行定义.

200 {
201 return QtXnl.widget_get_bool_value(nativehandle, Constant.WINDOW);
202 }

◆ layoutDirection()

LayoutDirection layoutDirection ( )
package

在文件 QWidget.xcsm465 行定义.

465 {
466 return (LayoutDirection)QtXnl.widget_get_int_value(nativehandle, Constant.WIDGETGETDIRECTION);
467 }

◆ load() [1/4]

bool load ( @NotNilptr QBuffer  data)

在文件 QWidget.xcsm46 行定义.

46 {
47 nativehandle = QtXnl.locaUiData(data.nativehandle, this, 0);
48 if (nativehandle == 0) {
49 return false;
50 }
51 return true;
52 }

◆ load() [2/4]

bool load ( @NotNilptr QBuffer  data,
@NotNilptr QWidget  parent 
)

在文件 QWidget.xcsm53 行定义.

53 {
54 nativehandle = QtXnl.locaUiData(data.nativehandle, this, parent == nilptr ? 0l : parent.nativehandle);
55 if (nativehandle == 0) {
56 return false;
57 }
58 return true;
59 }

◆ load() [3/4]

bool load ( String  uifile)

在文件 QWidget.xcsm32 行定义.

32 {
33 nativehandle = QtXnl.locaUiFile(uifile, this, 0);
34 if (nativehandle == 0) {
35 return false;
36 }
37 return true;
38 }

◆ load() [4/4]

bool load ( String  uifile,
@NotNilptr QWidget  parent 
)

在文件 QWidget.xcsm39 行定义.

39 {
40 nativehandle = QtXnl.locaUiFile(uifile, this, parent == nilptr ? 0l : parent.nativehandle);
41 if (nativehandle == 0) {
42 return false;
43 }
44 return true;
45 }

◆ lower()

void lower ( )

在文件 QWidget.xcsm292 行定义.

292 {
293 QtXnl.widget_slot(nativehandle, Constant.LOWER);
294 }

◆ mapFromGlobal()

QPoint mapFromGlobal ( int  x,
int  y 
)

在文件 QWidget.xcsm371 行定义.

371 {
372 long v = x;
373 v = (v << 32) | y;
374 v = QtXnl.long_intlong2(0, Constant.MAPPOINT, nativehandle, v);
375 return new QPoint(v);
376 }
int x()
Definition QWidget.xcsm:172

◆ mapTo()

QPoint mapTo ( @NotNilptr QWidget  w,
int  x,
int  y 
)

在文件 QWidget.xcsm359 行定义.

359 {
360 long v = x;
361 v = (v << 32) | y;
362 v = QtXnl.long_intlong2(nativehandle, Constant.MAPPOINT, w.nativehandle, v);
363 return new QPoint(v);
364 }

◆ mapToGlobal()

QPoint mapToGlobal ( int  x,
int  y 
)

在文件 QWidget.xcsm365 行定义.

365 {
366 long v = x;
367 v = (v << 32) | y;
368 v = QtXnl.long_intlong2(nativehandle, Constant.MAPPOINT, 0, v);
369 return new QPoint(v);
370 }

◆ maximized()

bool maximized ( )

在文件 QWidget.xcsm87 行定义.

87 {
88 return QtXnl.widget_get_bool_value(nativehandle, Constant.MAXIMIZED);
89 }

◆ minimized()

bool minimized ( )

在文件 QWidget.xcsm91 行定义.

91 {
92 return QtXnl.widget_get_bool_value(nativehandle, Constant.MINIMIZED);
93 }

◆ move()

void move ( int  x,
int  y 
)

在文件 QWidget.xcsm220 行定义.

220 {
221 QtXnl.widget_set_v2int_value(nativehandle, Constant.MOVE, x, y);
222 }

◆ parentWidget()

QWidget parentWidget ( )

在文件 QWidget.xcsm61 行定义.

61 {
62 return (QWidget)QtXnl.widget_get_object(nativehandle, Constant.GETPARENTWIDGET);
63 }

◆ postUpdate()

final void postUpdate ( )

在文件 QWidget.xcsm397 行定义.

397 {
398 runOnUi(new Runnable() {
399 void run()override {
400 QWidget.this.update();
401 }
402 }/*, __file__ + ":" + __line__*/);
403 }

◆ Question()

int Question ( String  caption,
String  text,
int  button,
int  defaultBtn 
)

在文件 QWidget.xcsm344 行定义.

344 {
345 return QtXnl.long_string2_int2(nativehandle, Constant.MESSAGEBOXQUE, caption, text, button, defaultBtn);
346 }

◆ raise()

void raise ( )

在文件 QWidget.xcsm295 行定义.

295 {
296 QtXnl.widget_slot(nativehandle, Constant.RAISE);
297 }

◆ removeLayout()

void removeLayout ( @NotNilptr QLayout  layout)

在文件 QWidget.xcsm439 行定义.

439 {
440 QtXnl.widget_set_native_value(nativehandle, Constant.WIDGETREMOVELAYOUT, layout.nativehandle);
441 }

◆ removeWidget()

void removeWidget ( @NotNilptr QWidget  widget)

QStatusBar 重载.

在文件 QWidget.xcsm442 行定义.

442 {
443 QtXnl.widget_set_native_value(nativehandle, Constant.WIDGETREMOVEWIDGET, widget.nativehandle);
444 }

◆ render() [1/4]

void render ( @NotNilptr QPainter  painter)

在文件 QWidget.xcsm480 行定义.

480 {
481 QtXnl.long_long_int9(nativehandle, Constant.WIDGETRENDER1, painter.hpaint, 0, 0, 0, 0, 0, 0, 0, 0, 0);
482 }

◆ render() [2/4]

void render ( @NotNilptr QPainter  painter,
int  x,
int  y,
int  sx,
int  sy,
int  sw,
int  sh,
RegionType  sflags,
RenderFlag  flags 
)

在文件 QWidget.xcsm489 行定义.

489 {
490 QtXnl.long_long_int9(nativehandle, Constant.WIDGETRENDER1, painter.hpaint, x, y, sx, sy, sw, sh, sflags, flags, 0);
491 }

◆ render() [3/4]

void render ( @NotNilptr QPainter  painter,
int  x,
int  y,
RenderFlag  flags 
)

在文件 QWidget.xcsm486 行定义.

486 {
487 QtXnl.long_long_int9(nativehandle, Constant.WIDGETRENDER1, painter.hpaint, x, y, 0, 0, 0, 0, 0, flags, 0);
488 }

◆ render() [4/4]

void render ( @NotNilptr QPainter  painter,
RenderFlag  flags 
)

在文件 QWidget.xcsm483 行定义.

483 {
484 QtXnl.long_long_int9(nativehandle, Constant.WIDGETRENDER1, painter.hpaint, 0, 0, 0, 0, 0, 0, 0, flags, 0);
485 }

◆ repaint()

void repaint ( )

在文件 QWidget.xcsm298 行定义.

298 {
299 QtXnl.widget_slot(nativehandle, Constant.REPAINT);
300 }

◆ resize()

void resize ( int  w,
int  h 
)

在文件 QWidget.xcsm204 行定义.

204 {
205 QtXnl.widget_set_v2int_value(nativehandle, Constant.RESIZE, w, h);
206 }

◆ scroll()

void scroll ( int  dx,
int  dy 
)

在文件 QWidget.xcsm212 行定义.

212 {
213 QtXnl.widget_set_v2int_value(nativehandle, Constant.SCROLL, dx, dy);
214 }

◆ setAcceptDrops()

void setAcceptDrops ( bool  ba)

在文件 QWidget.xcsm459 行定义.

459 {
460 QtXnl.widget_set_bool_value(nativehandle, Constant.ENABLEDROG, ba);
461 }

◆ setActive()

void setActive ( bool  v)

在文件 QWidget.xcsm125 行定义.

125 {
126 QtXnl.widget_set_bool_value(nativehandle, Constant.ACTIVED, v);
127 }

◆ setAttribute()

void setAttribute ( int  flag,
bool  bOn 
)

在文件 QWidget.xcsm20 行定义.

20 {
21 QtXnl.widget_set_int_bool_value(nativehandle, Constant.SETATTRIBUTE, flag, bOn);
22 }

◆ setAutoFillBackground()

void setAutoFillBackground ( bool  enabled)

在文件 QWidget.xcsm79 行定义.

79 {
80 QtXnl.widget_set_bool_value(nativehandle, Constant.QWIDGET_SETAUTOFILLBKGND, enabled);
81 }

◆ setBackgroundRole()

void setBackgroundRole ( int  role)

在文件 QWidget.xcsm216 行定义.

216 {
217 QtXnl.widget_set_bkrl(nativehandle, role);
218 }

◆ setContentsMargins()

void setContentsMargins ( int  l,
int  t,
int  r,
int  b 
)

在文件 QWidget.xcsm492 行定义.

492 {
493 long x = ((long)l << 32) | t, y = ((long)r << 32) |b;
494 QtXnl.void_long2(nativehandle, Constant.QWIDGET_SETCONTENTSMARGINS, x, y);
495 }
int y()
Definition QWidget.xcsm:176

◆ setContextMenuPolicy()

void setContextMenuPolicy ( int  v)

在文件 QWidget.xcsm258 行定义.

258 {
259 QtXnl.widget_set_vint_value(nativehandle, Constant.SETCONTEXTMENUPOLICY, v);
260 }

◆ setCursor()

void setCursor ( int  cursor)

QScintilla 重载.

在文件 QWidget.xcsm355 行定义.

355 {
356 QtXnl.widget_set_vint_value(nativehandle, Constant.SETCURSOR, cursor);
357 }

◆ setEnabled()

void setEnabled ( bool  v)

在文件 QWidget.xcsm121 行定义.

121 {
122 QtXnl.widget_set_bool_value(nativehandle, Constant.ENABLED, v);
123 }

◆ setFixedHeight()

void setFixedHeight ( int  h)

在文件 QWidget.xcsm224 行定义.

224 {
225 QtXnl.widget_set_vint_value(nativehandle, Constant.FIXEDHEIGHT, h);
226 }

◆ setFixedSize()

void setFixedSize ( int  w,
int  h 
)

在文件 QWidget.xcsm261 行定义.

261 {
262 QtXnl.widget_set_v2int_value(nativehandle, Constant.FIXEDSIZE, w, h);
263 }

◆ setFixedWidth()

void setFixedWidth ( int  w)

在文件 QWidget.xcsm267 行定义.

267 {
268 QtXnl.widget_set_vint_value(nativehandle, Constant.FIXEDWIDTH, w);
269 }

◆ setFocus()

void setFocus ( )

在文件 QWidget.xcsm306 行定义.

306 {
307 QtXnl.widget_slot(nativehandle, Constant.SETFOCUS);
308 }

◆ setFocusPolicy()

void setFocusPolicy ( int  fcy)

在文件 QWidget.xcsm149 行定义.

149 {
150 QtXnl.widget_set_vint_value(nativehandle, Constant.SETFOCUSPOLICY, fcy);
151 }

◆ setFocusProxy()

void setFocusProxy ( @NotNilptr QWidget  w)

在文件 QWidget.xcsm228 行定义.

228 {
229 QtXnl.widget_set_intlongint_value(nativehandle, Constant.WIDGETSETPROXY, w.nativehandle, 0, 0);
230 }

◆ setFont()

void setFont ( @NotNilptr QFont  f)

QScintilla 重载.

在文件 QWidget.xcsm503 行定义.

503 {
504 QtXnl.widget_set_native_value(nativehandle, Constant.WIDSETGETFONT, f.nativehandle);
505 }

◆ setFontDescrption()

void setFontDescrption ( String  desc)

在文件 QWidget.xcsm264 行定义.

264 {
265 QtXnl.widget_slot_string(nativehandle, Constant.SETWIDGETFONT, desc);
266 }

◆ setGraphicsEffect()

void setGraphicsEffect ( @NotNilptr QGraphicsEffect  effect)

在文件 QWidget.xcsm436 行定义.

436 {
437 QtXnl.widget_set_native_value(nativehandle, Constant.QWIDGET_SETGRAPHICSEFFECT, effect.nativehandle);
438 }

◆ setInputMethodHints()

void setInputMethodHints ( InputMethodHint  fcy)

在文件 QWidget.xcsm141 行定义.

141 {
142 QtXnl.widget_set_vint_value(nativehandle, Constant.WIDGET_SETINPUTMETHODHINTS, fcy);
143 }

◆ setLayout()

void setLayout ( @NotNilptr QLayout  layout)

在文件 QWidget.xcsm433 行定义.

433 {
434 QtXnl.widget_set_native_value(nativehandle, Constant.SETLAYOUT, layout.nativehandle);
435 }

◆ setLayoutDirection()

void setLayoutDirection ( LayoutDirection  direction)
package

在文件 QWidget.xcsm462 行定义.

462 {
463 QtXnl.widget_set_vint_value(nativehandle, Constant.WIDGETSETDIRECTION, direction);
464 }

◆ setMaximized()

void setMaximized ( bool  v)

在文件 QWidget.xcsm113 行定义.

113 {
114 QtXnl.widget_set_bool_value(nativehandle, Constant.MAXIMIZED, v);
115 }

◆ setMinimized()

void setMinimized ( bool  v)

在文件 QWidget.xcsm117 行定义.

117 {
118 QtXnl.widget_set_bool_value(nativehandle, Constant.MINIMIZED, v);
119 }

◆ setMinimumHeight()

void setMinimumHeight ( int  h)

在文件 QWidget.xcsm133 行定义.

133 {
134 QtXnl.widget_set_vint_value(nativehandle, Constant.QWIDGET_SETMINIMUMHEIGHT, h);
135 }

◆ setMinimumSize()

void setMinimumSize ( int  w,
int  h 
)

在文件 QWidget.xcsm129 行定义.

129 {
130 QtXnl.widget_set_v2int_value(nativehandle, Constant.QWIDGET_SETMINIMUMSIZE, w, h);
131 }

◆ setMinimumWidth()

void setMinimumWidth ( int  w)

在文件 QWidget.xcsm137 行定义.

137 {
138 QtXnl.widget_set_vint_value(nativehandle, Constant.QWIDGET_SETMINIMUMWIDTH, w);
139 }

◆ setModal()

void setModal ( bool  bm)

在文件 QWidget.xcsm75 行定义.

75 {
76 QtXnl.widget_set_bool_value(nativehandle, Constant.MODAL, bm);
77 }

◆ setOpacity()

void setOpacity ( double  v)

在文件 QWidget.xcsm105 行定义.

105 {
106 QtXnl.widget_set_double_value(nativehandle,Constant.OPACITY, v);
107 }

◆ setPalette() [1/2]

void setPalette ( @NotNilptr QPalette  palette)

在文件 QWidget.xcsm276 行定义.

276 {
277 QtXnl.widget_set_native_value(nativehandle, Constant.PALETTE, palette.nativehandle);
278 }

◆ setPalette() [2/2]

void setPalette ( int  flags,
int  color 
)

在文件 QWidget.xcsm271 行定义.

271 {
272 QtXnl.widget_set_v2int_value(nativehandle, Constant.PALETTE, flags, color);
273 }

◆ setParent()

void setParent ( @NotNilptr QWidget  parent)

在文件 QWidget.xcsm67 行定义.

67 {
68 QtXnl.widget_set_native_value(nativehandle, Constant.PARENTWIDGET,parent == nilptr ? 0l : parent.nativehandle);
69 }

◆ setSizePolicy()

void setSizePolicy ( int  xp,
int  yp 
)

在文件 QWidget.xcsm208 行定义.

208 {
209 QtXnl.widget_set_v2int_value(nativehandle, Constant.SETSIZEPOLICY, xp, yp);
210 }

◆ setStyle() [1/2]

void setStyle ( @NotNilptr QStyle  style)

在文件 QWidget.xcsm281 行定义.

281 {
282 QtXnl.widget_set_native_value(nativehandle, Constant.STYLE, style.nativehandle);
283 }

◆ setStyle() [2/2]

void setStyle ( String  styneName)

在文件 QWidget.xcsm407 行定义.

407 {
408 QtXnl.widget_slot_string(nativehandle, Constant.SETSTYLE, styneName);
409 }

◆ setStyleSheet()

void setStyleSheet ( String  file)

在文件 QWidget.xcsm404 行定义.

404 {
405 QtXnl.widget_slot_string(nativehandle, Constant.SETSTYLESHEET, file);
406 }

◆ setStyleSheetString()

void setStyleSheetString ( String  stylesheet)

在文件 QWidget.xcsm410 行定义.

410 {
411 QtXnl.widget_slot_string(nativehandle, Constant.SETSTYLESHEETSTRING, stylesheet);
412 }

◆ setToolTips()

void setToolTips ( String  text)

在文件 QWidget.xcsm430 行定义.

430 {
431 QtXnl.widget_slot_string(nativehandle, Constant.SETTOOLTIPS, text);
432 }

◆ setUpdateEnabled()

void setUpdateEnabled ( bool  be)

在文件 QWidget.xcsm471 行定义.

471 {
472 QtXnl.widget_set_bool_value(nativehandle, Constant.UPDATEENABLE, be);
473 }

◆ setVisible()

void setVisible ( bool  v)

在文件 QWidget.xcsm109 行定义.

109 {
110 QtXnl.widget_set_bool_value(nativehandle, Constant.VISIBLE, v);
111 }

◆ setWhatsThis()

void setWhatsThis ( String  tips)

在文件 QWidget.xcsm413 行定义.

413 {
414 QtXnl.widget_slot_string(nativehandle, Constant.SETWHATSTHIS, tips);
415 }

◆ setWindowFlag()

void setWindowFlag ( int  flag,
bool  bOn 
)

在文件 QWidget.xcsm236 行定义.

236 {
237 QtXnl.widget_set_int_bool_value(nativehandle, Constant.SETWINDOWFLAG, flag, bOn);
238 }

◆ setWindowFlags()

void setWindowFlags ( int  flag)

在文件 QWidget.xcsm232 行定义.

232 {
233 QtXnl.widget_set_vint_value(nativehandle, Constant.WINDOWFLAG, flag);
234 }

◆ setWindowIcon() [1/2]

void setWindowIcon ( QIcon  icon)

在文件 QWidget.xcsm252 行定义.

252 {
253 QtXnl.widget_set_native_value(nativehandle, Constant.QW_SETICON, icon.nativehandle);
254 }

◆ setWindowIcon() [2/2]

void setWindowIcon ( String  icon)

在文件 QWidget.xcsm255 行定义.

255 {
256 QtXnl.widget_slot_string(nativehandle, Constant.WINDOWICON, icon);
257 }

◆ setWindowTitle()

void setWindowTitle ( String  text)

在文件 QWidget.xcsm313 行定义.

313 {
314 QtXnl.widget_slot_string(nativehandle, Constant.WINDOWTITLE, text);
315 }

◆ show()

void show ( )

在文件 QWidget.xcsm318 行定义.

318 {
319 QtXnl.widget_slot(nativehandle, Constant.SHOW);
320 }

◆ showFullScreen()

void showFullScreen ( )

在文件 QWidget.xcsm322 行定义.

322 {
323 QtXnl.widget_slot(nativehandle, Constant.SHOWFULLSCREEN);
324 }

◆ showMaximized()

void showMaximized ( )

在文件 QWidget.xcsm326 行定义.

326 {
327 QtXnl.widget_slot(nativehandle, Constant.SHOWMAX);
328 }

◆ showMinimized()

void showMinimized ( )

在文件 QWidget.xcsm330 行定义.

330 {
331 QtXnl.widget_slot(nativehandle, Constant.SHOWMIN);
332 }

◆ showNormal()

void showNormal ( )

在文件 QWidget.xcsm334 行定义.

334 {
335 QtXnl.widget_slot(nativehandle, Constant.SHOWNORMAL);
336 }

◆ showToolTips() [1/2]

void showToolTips ( int  x,
int  y,
long  duration 
)

在文件 QWidget.xcsm445 行定义.

445 {
446 QtXnl.widget_set_intlongstring_value(nativehandle, Constant.SHOWTOOLTIPS, ((long)x) << 32 | y, (int)duration, nilptr);
447 }

◆ showToolTips() [2/2]

void showToolTips ( int  x,
int  y,
String  text,
long  duration 
)

在文件 QWidget.xcsm448 行定义.

448 {
449 QtXnl.widget_set_intlongstring_value(nativehandle, Constant.SHOWTOOLTIPS, ((long)x) << 32 | y, (int)duration, text);
450 }

◆ ShowToolTips()

static void ShowToolTips ( int  x,
int  y,
String  text,
long  duration 
)
static

在文件 QWidget.xcsm451 行定义.

451 {
452 QtXnl.widget_set_intlongstring_value(0, Constant.SHOWTOOLTIPS, ((long)x) << 32 | y, (int) duration, text);
453 }

◆ unsetLayoutDirection()

void unsetLayoutDirection ( )
package

在文件 QWidget.xcsm468 行定义.

468 {
469 QtXnl.widget_slot(nativehandle, Constant.WIDGETUNSETDIRECTION);
470 }

◆ update()

void update ( )

在文件 QWidget.xcsm301 行定义.

301 {
302 if (nativehandle != 0){
303 QtXnl.widget_slot(nativehandle, Constant.UPDATE);
304 }
305 }

◆ Warning()

int Warning ( String  caption,
String  text,
int  button,
int  defaultBtn 
)

在文件 QWidget.xcsm340 行定义.

340 {
341 return QtXnl.long_string2_int2(nativehandle, Constant.MESSAGEBOXWAR, caption, text, button, defaultBtn);
342 }

◆ width()

int width ( )

在文件 QWidget.xcsm180 行定义.

180 {
181 return QtXnl.widget_get_int_value(nativehandle, Constant.WIDTH);
182 }

◆ x()

int x ( )

在文件 QWidget.xcsm172 行定义.

172 {
173 return QtXnl.widget_get_int_value(nativehandle, Constant.X_POS);
174 }

◆ y()

int y ( )

在文件 QWidget.xcsm176 行定义.

176 {
177 return QtXnl.widget_get_int_value(nativehandle, Constant.Y_POS);
178 }