xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QWidget类 参考
类 QWidget 继承关系图:
Inheritance graph
QWidget 的协作图:
Collaboration graph

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.xcsm355 行定义.

355 {
356 QtXnl.long_string2_int2(nativehandle, Constant.MESSAGEBOXABT, caption, text, 0, 0);
357 }

◆ addAction()

void addAction ( @NotNilptr QAction  action)

QToolBar 重载.

在文件 QWidget.xcsm246 行定义.

246 {
247 QtXnl.widget_set_native_value(nativehandle, Constant.ADDDEFACTION, action.nativehandle);
248 }

◆ addActions()

void addActions ( @NotNilptr QAction []  actions)

在文件 QWidget.xcsm249 行定义.

249 {
250 long [] al = new long[actions.length];
251 for (int i =0; i < al.length; i ++) {
252 al[i] = actions[i].nativehandle;
253 }
254 QtXnl.widget_set_object_value(nativehandle, Constant.ADDDEFACTION, al);
255 }

◆ adjustSize()

void adjustSize ( )

在文件 QWidget.xcsm478 行定义.

478 {
479 QtXnl.widget_slot(nativehandle, Constant.QWIDGET_ADJUSTSIZE);
480 }

◆ centerScreen()

void centerScreen ( )

在文件 QWidget.xcsm420 行定义.

420 {
421 QRect rc = getCurrentScreenSize();
422 rc.offset(getCurrentScreenPoint());
423 move((rc.width() - width()) / 2, (rc.height() - height()) / 2);
424 }
int width()
Definition QWidget.xcsm:184
int height()
Definition QWidget.xcsm:188
QPoint getCurrentScreenPoint()
Definition QWidget.xcsm:385
void move(int x,int y)
Definition QWidget.xcsm:224
QRect getCurrentScreenSize()
Definition QWidget.xcsm:393

◆ clearFocus()

void clearFocus ( )

在文件 QWidget.xcsm313 行定义.

313 {
314 QtXnl.widget_slot(nativehandle, Constant.CLSFOCUS);
315 }

◆ close()

void close ( )

在文件 QWidget.xcsm290 行定义.

290 {
291 QtXnl.widget_slot(nativehandle, Constant.CLOSE);
292 }

◆ create() [1/2]

◆ create() [2/2]

bool create ( @NotNilptr QWidget  parent)

◆ Critical()

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

在文件 QWidget.xcsm341 行定义.

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

◆ finalize()

void finalize ( )
overridepackage

重载 QObject .

在文件 QWidget.xcsm511 行定义.

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

◆ getCurrentScreen()

int getCurrentScreen ( )

在文件 QWidget.xcsm397 行定义.

397 {
398 return QtXnl.widget_get_int_value(nativehandle, Constant.CURRENTSCREEN);
399 }

◆ getCurrentScreenPoint()

QPoint getCurrentScreenPoint ( )

在文件 QWidget.xcsm385 行定义.

385 {
386 long xy = QtXnl.object_get_long_int(nativehandle, Constant.SCREENPOSITION, -1, 0);
387 return new QPoint((int)(xy >> 32) & 0xffffffff, (int)xy & 0xffffffff);
388 }

◆ getCurrentScreenSize()

QRect getCurrentScreenSize ( )

在文件 QWidget.xcsm393 行定义.

393 {
394 long wh = QtXnl.object_get_long_int(nativehandle, Constant.SCREENSIZE, -1, 0);
395 return new QRect(0, 0, (int)(wh >> 32) & 0xffffffff, (int)wh & 0xffffffff);
396 }

◆ getFocusPolicy()

int getFocusPolicy ( )

在文件 QWidget.xcsm157 行定义.

157 {
158 return QtXnl.widget_get_int_value(nativehandle, Constant.SETFOCUSPOLICY);
159 }

◆ getFont()

QFont getFont ( )

在文件 QWidget.xcsm503 行定义.

503 {
504 return new QFont(QtXnl.long_get(nativehandle, Constant.WIDGETGETFONT));
505 }

◆ getLayout()

QLayout getLayout ( )

在文件 QWidget.xcsm64 行定义.

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

◆ getMaximumHeight()

int getMaximumHeight ( )

在文件 QWidget.xcsm164 行定义.

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

◆ getMaximumWidth()

int getMaximumWidth ( )

在文件 QWidget.xcsm172 行定义.

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

◆ getMinimumHeight()

int getMinimumHeight ( )

在文件 QWidget.xcsm160 行定义.

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

◆ getMinimumWidth()

int getMinimumWidth ( )

在文件 QWidget.xcsm168 行定义.

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

◆ getOpacity()

double getOpacity ( )

在文件 QWidget.xcsm71 行定义.

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

◆ getScreenPoint()

QPoint getScreenPoint ( int  num)

在文件 QWidget.xcsm381 行定义.

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

◆ getScreenSize()

QRect getScreenSize ( int  num)

在文件 QWidget.xcsm389 行定义.

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

◆ getStyleSheet()

String getStyleSheet ( )

在文件 QWidget.xcsm243 行定义.

243 {
244 return (String)QtXnl.core_getString(nativehandle, Constant.GETSTYLESHEEY);
245 }
Definition String.x:5

◆ getToolTips()

String getToolTips ( )

在文件 QWidget.xcsm430 行定义.

430 {
431 return (String)QtXnl.core_getString(nativehandle, Constant.GETTOOLTIPS);
432 }

◆ getWindowTitle()

String getWindowTitle ( )

在文件 QWidget.xcsm500 行定义.

500 {
501 return (String)QtXnl.core_getString(nativehandle, Constant.WIDGETGETTITLE);
502 }

◆ hasFocus()

bool hasFocus ( )

在文件 QWidget.xcsm426 行定义.

426 {
427 return QtXnl.widget_get_bool_value(nativehandle, Constant.HASFOCUS);
428 }

◆ height()

int height ( )

在文件 QWidget.xcsm188 行定义.

188 {
189 return QtXnl.widget_get_int_value(nativehandle, Constant.HEIGHT);
190 }

◆ hide()

void hide ( )

在文件 QWidget.xcsm293 行定义.

293 {
294 QtXnl.widget_slot(nativehandle, Constant.HIDE);
295 }

◆ Information()

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

在文件 QWidget.xcsm351 行定义.

351 {
352 return QtXnl.long_string2_int2(nativehandle, Constant.MESSAGEBOXINF, caption, text, button, defaultBtn);
353 }

◆ inputMethodHints()

InputMethodHint inputMethodHints ( )

在文件 QWidget.xcsm145 行定义.

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

◆ isAcceptDrops()

bool isAcceptDrops ( )

在文件 QWidget.xcsm459 行定义.

459 {
460 return QtXnl.widget_get_bool_value(nativehandle, Constant.ENABLEDROG);
461 }

◆ 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.xcsm192 行定义.

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

◆ isHidden()

bool isHidden ( )

在文件 QWidget.xcsm196 行定义.

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

◆ isModal()

bool isModal ( )

在文件 QWidget.xcsm200 行定义.

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

◆ isUpdateEnabled()

bool isUpdateEnabled ( )

在文件 QWidget.xcsm481 行定义.

481 {
482 return QtXnl.widget_get_bool_value(nativehandle,Constant.UPDATEENABLE );
483 }

◆ isVisible()

bool isVisible ( )

在文件 QWidget.xcsm83 行定义.

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

◆ isWindow()

bool isWindow ( )

在文件 QWidget.xcsm204 行定义.

204 {
205 return QtXnl.widget_get_bool_value(nativehandle, Constant.WINDOW);
206 }

◆ layoutDirection()

LayoutDirection layoutDirection ( )
package

在文件 QWidget.xcsm469 行定义.

469 {
470 return (LayoutDirection)QtXnl.widget_get_int_value(nativehandle, Constant.WIDGETGETDIRECTION);
471 }

◆ 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.xcsm296 行定义.

296 {
297 QtXnl.widget_slot(nativehandle, Constant.LOWER);
298 }

◆ mapFromGlobal()

QPoint mapFromGlobal ( int  x,
int  y 
)

在文件 QWidget.xcsm375 行定义.

375 {
376 long v = x;
377 v = (v << 32) | ((long)y & 0xffffffffl);
378 v = QtXnl.long_intlong2(0, Constant.MAPPOINT, nativehandle, v);
379 return new QPoint(v);
380 }
int x()
Definition QWidget.xcsm:176
int y()
Definition QWidget.xcsm:180

◆ mapTo()

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

在文件 QWidget.xcsm363 行定义.

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

◆ mapToGlobal()

QPoint mapToGlobal ( int  x,
int  y 
)

在文件 QWidget.xcsm369 行定义.

369 {
370 long v = x;
371 v = (v << 32) | ((long)y & 0xffffffffl);
372 v = QtXnl.long_intlong2(nativehandle, Constant.MAPPOINT, 0, v);
373 return new QPoint(v);
374 }

◆ 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.xcsm224 行定义.

224 {
225 QtXnl.widget_set_v2int_value(nativehandle, Constant.MOVE, x, y);
226 }

◆ parentWidget()

QWidget parentWidget ( )

在文件 QWidget.xcsm61 行定义.

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

◆ postUpdate()

final void postUpdate ( )

在文件 QWidget.xcsm401 行定义.

401 {
402 runOnUi(new Runnable() {
403 void run()override {
404 QWidget.this.update();
405 }
406 }/*, __file__ + ":" + __line__*/);
407 }

◆ Question()

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

在文件 QWidget.xcsm348 行定义.

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

◆ raise()

void raise ( )

在文件 QWidget.xcsm299 行定义.

299 {
300 QtXnl.widget_slot(nativehandle, Constant.RAISE);
301 }

◆ removeLayout()

void removeLayout ( @NotNilptr QLayout  layout)

在文件 QWidget.xcsm443 行定义.

443 {
444 QtXnl.widget_set_native_value(nativehandle, Constant.WIDGETREMOVELAYOUT, layout.nativehandle);
445 }

◆ removeWidget()

void removeWidget ( @NotNilptr QWidget  widget)

QStatusBar 重载.

在文件 QWidget.xcsm446 行定义.

446 {
447 QtXnl.widget_set_native_value(nativehandle, Constant.WIDGETREMOVEWIDGET, widget.nativehandle);
448 }

◆ render() [1/4]

void render ( @NotNilptr QPainter  painter)

在文件 QWidget.xcsm484 行定义.

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

◆ 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.xcsm493 行定义.

493 {
494 QtXnl.long_long_int9(nativehandle, Constant.WIDGETRENDER1, painter.hpaint, x, y, sx, sy, sw, sh, sflags, flags, 0);
495 }

◆ render() [3/4]

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

在文件 QWidget.xcsm490 行定义.

490 {
491 QtXnl.long_long_int9(nativehandle, Constant.WIDGETRENDER1, painter.hpaint, x, y, 0, 0, 0, 0, 0, flags, 0);
492 }

◆ render() [4/4]

void render ( @NotNilptr QPainter  painter,
RenderFlag  flags 
)

在文件 QWidget.xcsm487 行定义.

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

◆ repaint()

void repaint ( )

在文件 QWidget.xcsm302 行定义.

302 {
303 QtXnl.widget_slot(nativehandle, Constant.REPAINT);
304 }

◆ resize()

void resize ( int  w,
int  h 
)

在文件 QWidget.xcsm208 行定义.

208 {
209 QtXnl.widget_set_v2int_value(nativehandle, Constant.RESIZE, w, h);
210 }

◆ scroll()

void scroll ( int  dx,
int  dy 
)

在文件 QWidget.xcsm216 行定义.

216 {
217 QtXnl.widget_set_v2int_value(nativehandle, Constant.SCROLL, dx, dy);
218 }

◆ setAcceptDrops()

void setAcceptDrops ( bool  ba)

在文件 QWidget.xcsm463 行定义.

463 {
464 QtXnl.widget_set_bool_value(nativehandle, Constant.ENABLEDROG, ba);
465 }

◆ 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.xcsm220 行定义.

220 {
221 QtXnl.widget_set_bkrl(nativehandle, role);
222 }

◆ setContentsMargins()

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

在文件 QWidget.xcsm496 行定义.

496 {
497 long x = ((long)l << 32) | ((long)t & 0xffffffffl), y = ((long)r << 32) |((long)b & 0xffffffffl);
498 QtXnl.void_long2(nativehandle, Constant.QWIDGET_SETCONTENTSMARGINS, x, y);
499 }

◆ setContextMenuPolicy()

void setContextMenuPolicy ( int  v)

在文件 QWidget.xcsm262 行定义.

262 {
263 QtXnl.widget_set_vint_value(nativehandle, Constant.SETCONTEXTMENUPOLICY, v);
264 }

◆ setCursor()

void setCursor ( int  cursor)

QScintilla 重载.

在文件 QWidget.xcsm359 行定义.

359 {
360 QtXnl.widget_set_vint_value(nativehandle, Constant.SETCURSOR, cursor);
361 }

◆ 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.xcsm228 行定义.

228 {
229 QtXnl.widget_set_vint_value(nativehandle, Constant.FIXEDHEIGHT, h);
230 }

◆ setFixedSize()

void setFixedSize ( int  w,
int  h 
)

在文件 QWidget.xcsm265 行定义.

265 {
266 QtXnl.widget_set_v2int_value(nativehandle, Constant.FIXEDSIZE, w, h);
267 }

◆ setFixedWidth()

void setFixedWidth ( int  w)

在文件 QWidget.xcsm271 行定义.

271 {
272 QtXnl.widget_set_vint_value(nativehandle, Constant.FIXEDWIDTH, w);
273 }

◆ setFocus()

void setFocus ( )

在文件 QWidget.xcsm310 行定义.

310 {
311 QtXnl.widget_slot(nativehandle, Constant.SETFOCUS);
312 }

◆ 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.xcsm232 行定义.

232 {
233 QtXnl.widget_set_intlongint_value(nativehandle, Constant.WIDGETSETPROXY, w.nativehandle, 0, 0);
234 }

◆ setFont()

void setFont ( @NotNilptr QFont  f)

QScintilla 重载.

在文件 QWidget.xcsm507 行定义.

507 {
508 QtXnl.widget_set_native_value(nativehandle, Constant.WIDSETGETFONT, f.nativehandle);
509 }

◆ setFontDescrption()

void setFontDescrption ( String  desc)

在文件 QWidget.xcsm268 行定义.

268 {
269 QtXnl.widget_slot_string(nativehandle, Constant.SETWIDGETFONT, desc);
270 }

◆ setGraphicsEffect()

void setGraphicsEffect ( @NotNilptr QGraphicsEffect  effect)

在文件 QWidget.xcsm440 行定义.

440 {
441 QtXnl.widget_set_native_value(nativehandle, Constant.QWIDGET_SETGRAPHICSEFFECT, effect.nativehandle);
442 }

◆ 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.xcsm437 行定义.

437 {
438 QtXnl.widget_set_native_value(nativehandle, Constant.SETLAYOUT, layout.nativehandle);
439 }

◆ setLayoutDirection()

void setLayoutDirection ( LayoutDirection  direction)
package

在文件 QWidget.xcsm466 行定义.

466 {
467 QtXnl.widget_set_vint_value(nativehandle, Constant.WIDGETSETDIRECTION, direction);
468 }

◆ 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.xcsm280 行定义.

280 {
281 QtXnl.widget_set_native_value(nativehandle, Constant.PALETTE, palette.nativehandle);
282 }

◆ setPalette() [2/2]

void setPalette ( int  flags,
int  color 
)

在文件 QWidget.xcsm275 行定义.

275 {
276 QtXnl.widget_set_v2int_value(nativehandle, Constant.PALETTE, flags, color);
277 }

◆ 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.xcsm212 行定义.

212 {
213 QtXnl.widget_set_v2int_value(nativehandle, Constant.SETSIZEPOLICY, xp, yp);
214 }

◆ setStyle() [1/2]

void setStyle ( @NotNilptr QStyle  style)

在文件 QWidget.xcsm285 行定义.

285 {
286 QtXnl.widget_set_native_value(nativehandle, Constant.STYLE, style.nativehandle);
287 }

◆ setStyle() [2/2]

void setStyle ( String  styneName)

在文件 QWidget.xcsm411 行定义.

411 {
412 QtXnl.widget_slot_string(nativehandle, Constant.SETSTYLE, styneName);
413 }

◆ setStyleSheet()

void setStyleSheet ( String  file)

在文件 QWidget.xcsm408 行定义.

408 {
409 QtXnl.widget_slot_string(nativehandle, Constant.SETSTYLESHEET, file);
410 }

◆ setStyleSheetString()

void setStyleSheetString ( String  stylesheet)

在文件 QWidget.xcsm414 行定义.

414 {
415 QtXnl.widget_slot_string(nativehandle, Constant.SETSTYLESHEETSTRING, stylesheet);
416 }

◆ setToolTips()

void setToolTips ( String  text)

在文件 QWidget.xcsm434 行定义.

434 {
435 QtXnl.widget_slot_string(nativehandle, Constant.SETTOOLTIPS, text);
436 }

◆ setUpdateEnabled()

void setUpdateEnabled ( bool  be)

在文件 QWidget.xcsm475 行定义.

475 {
476 QtXnl.widget_set_bool_value(nativehandle, Constant.UPDATEENABLE, be);
477 }

◆ 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.xcsm417 行定义.

417 {
418 QtXnl.widget_slot_string(nativehandle, Constant.SETWHATSTHIS, tips);
419 }

◆ setWindowFlag()

void setWindowFlag ( int  flag,
bool  bOn 
)

在文件 QWidget.xcsm240 行定义.

240 {
241 QtXnl.widget_set_int_bool_value(nativehandle, Constant.SETWINDOWFLAG, flag, bOn);
242 }

◆ setWindowFlags()

void setWindowFlags ( int  flag)

在文件 QWidget.xcsm236 行定义.

236 {
237 QtXnl.widget_set_vint_value(nativehandle, Constant.WINDOWFLAG, flag);
238 }

◆ setWindowIcon() [1/2]

void setWindowIcon ( QIcon  icon)

在文件 QWidget.xcsm256 行定义.

256 {
257 QtXnl.widget_set_native_value(nativehandle, Constant.QW_SETICON, icon.nativehandle);
258 }

◆ setWindowIcon() [2/2]

void setWindowIcon ( String  icon)

在文件 QWidget.xcsm259 行定义.

259 {
260 QtXnl.widget_slot_string(nativehandle, Constant.WINDOWICON, icon);
261 }

◆ setWindowTitle()

void setWindowTitle ( String  text)

在文件 QWidget.xcsm317 行定义.

317 {
318 QtXnl.widget_slot_string(nativehandle, Constant.WINDOWTITLE, text);
319 }

◆ show()

void show ( )

在文件 QWidget.xcsm322 行定义.

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

◆ showFullScreen()

void showFullScreen ( )

在文件 QWidget.xcsm326 行定义.

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

◆ showMaximized()

void showMaximized ( )

在文件 QWidget.xcsm330 行定义.

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

◆ showMinimized()

void showMinimized ( )

在文件 QWidget.xcsm334 行定义.

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

◆ showNormal()

void showNormal ( )

在文件 QWidget.xcsm338 行定义.

338 {
339 QtXnl.widget_slot(nativehandle, Constant.SHOWNORMAL);
340 }

◆ showToolTips() [1/2]

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

在文件 QWidget.xcsm449 行定义.

449 {
450 QtXnl.widget_set_intlongstring_value(nativehandle, Constant.SHOWTOOLTIPS, ((long)x) << 32 | ((long)y & 0xffffffffl), (int)duration, nilptr);
451 }

◆ showToolTips() [2/2]

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

在文件 QWidget.xcsm452 行定义.

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

◆ ShowToolTips()

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

在文件 QWidget.xcsm455 行定义.

455 {
456 QtXnl.widget_set_intlongstring_value(0, Constant.SHOWTOOLTIPS, ((long)x) << 32 | ((long)y & 0xffffffffl), (int) duration, text);
457 }

◆ unsetLayoutDirection()

void unsetLayoutDirection ( )
package

在文件 QWidget.xcsm472 行定义.

472 {
473 QtXnl.widget_slot(nativehandle, Constant.WIDGETUNSETDIRECTION);
474 }

◆ update()

void update ( )

在文件 QWidget.xcsm305 行定义.

305 {
306 if (nativehandle != 0){
307 QtXnl.widget_slot(nativehandle, Constant.UPDATE);
308 }
309 }

◆ Warning()

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

在文件 QWidget.xcsm344 行定义.

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

◆ width()

int width ( )

在文件 QWidget.xcsm184 行定义.

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

◆ WindowFlags()

int WindowFlags ( )

在文件 QWidget.xcsm153 行定义.

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

◆ x()

int x ( )

在文件 QWidget.xcsm176 行定义.

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

◆ y()

int y ( )

在文件 QWidget.xcsm180 行定义.

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