xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QStatusBar.xcs
浏览该文件的文档.
1//xlang Source, Name:QStatusBar.xcs
2//Date: Sat Aug 11:03:30 2018
3package Qt{
4 @SuppressWarnings public class QStatusBar : QWidget{
5 public QStatusBar(){
6
7 }
8
9 public QStatusBar(long handle){
10 super(handle);
11 }
12
13 public bool create()override {
14 nativehandle = QtXnl.createQObject(QType.qtStatusBar, this, 0);
15 if (nativehandle == 0){
16 return false;
17 }
18 return true;
19 }
20
21 public bool create(@NotNilptr QWidget parent)override {
22 nativehandle = QtXnl.createQObject(QType.qtStatusBar, this, parent.nativehandle);
23 if (nativehandle == 0){
24 return false;
25 }
26 return true;
27 }
28 public void addWidget(@NotNilptr QWidget widget, int stretch ){
29 QtXnl.widget_set_intlongint_value(nativehandle, Constant.ADDWIDGET, widget.nativehandle, stretch, 0);
30 }
31 public int insertWidget(int index, @NotNilptr QWidget widget, int stretch){
32 return QtXnl.int_long_int_long_int_int(nativehandle, Constant.INSERTWIDGET, widget.nativehandle, stretch, index);
33 }
34 public void addPermanentWidget(@NotNilptr QWidget widget, int stretch){
35 QtXnl.widget_set_intlongint_value(nativehandle, Constant.ADDPERWIDGET, widget.nativehandle, stretch, 0);
36 }
37 public int insertPermanentWidget(int index, @NotNilptr QWidget widget, int stretch){
38 return QtXnl.int_long_int_long_int_int(nativehandle, Constant.INSERTPERWIDGET, widget.nativehandle, stretch, index);
39 }
40 public void removeWidget(@NotNilptr QWidget widget){
41 QtXnl.widget_set_native_value(nativehandle, Constant.REMOVEWIDGET, widget.nativehandle);
42 }
43 public void setSizeGripEnabled(bool b){
44 QtXnl.widget_set_bool_value(nativehandle, Constant.SIZEGRIPENABLED, b);
45 }
46 public bool isSizeGripEnabled() {
47 return QtXnl.widget_get_bool_value(nativehandle, Constant.SIZEGRIPENABLED);
48 }
50 return (String)QtXnl.core_getString(nativehandle, Constant.CURRENTMESSAGE);
51 }
52 public void showMessage(String text){
53 QtXnl.widget_slot_string(nativehandle,Constant. SHOWMESSAGE, text);
54 }
55 };
56};
void removeWidget(@NotNilptr QWidget widget)
int insertPermanentWidget(int index, @NotNilptr QWidget widget, int stretch)
bool isSizeGripEnabled()
void addWidget(@NotNilptr QWidget widget, int stretch )
int insertWidget(int index, @NotNilptr QWidget widget, int stretch)
void setSizeGripEnabled(bool b)
bool create() override
String currentMessage()
bool create(@NotNilptr QWidget parent) override
void showMessage(String text)
void addPermanentWidget(@NotNilptr QWidget widget, int stretch)
字符串类