xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QProgressBar.xcs
浏览该文件的文档.
1//xlang Source, Name:QProgressBar.xcs
2//Date: Sat Aug 11:35:52 2018
3package Qt{
4 @SuppressWarnings public class QProgressBar : QWidget{
5 public QProgressBar(){
6
7 }
8
9 public QProgressBar(long handle){
10 super(handle);
11 }
12
13 public bool create()override {
14 nativehandle = QtXnl.createQObject(QType.qtProgressBar, 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.qtProgressBar, this, parent.nativehandle);
23 if (nativehandle == 0){
24 return false;
25 }
26 return true;
27 }
28 public int minimum(){
29 return QtXnl.widget_get_int_value(nativehandle, Constant.QPMININUM);
30 }
31 public int maximum() {
32 return QtXnl.widget_get_int_value(nativehandle, Constant.QPMAXINUM);
33 }
34 public int value() {
35 return QtXnl.widget_get_int_value(nativehandle, Constant.QPVALUE);
36 }
37 public String getText(){
38 return (String)QtXnl.core_getString(nativehandle, Constant.QPTEXT);
39 }
40 public void setTextVisible(bool visible){
41 QtXnl.widget_set_bool_value(nativehandle, Constant.QPVISIBLE, visible);
42 }
43 public bool isTextVisible() {
44 return QtXnl.widget_get_bool_value(nativehandle, Constant.QPVISIBLE);
45 }
46 public int alignment(){
47 return QtXnl.widget_get_int_value(nativehandle, Constant.QPALIGN);
48 }
49 public void setAlignment(int alignment){
50 QtXnl.widget_set_vint_value(nativehandle, Constant.QPALIGN, alignment);
51 }
52 public int orientation(){
53 return QtXnl.widget_get_int_value(nativehandle, Constant.QPORIENTATION);
54 }
55 public void setInvertedAppearance(bool invert){
56 QtXnl.widget_set_bool_value(nativehandle, Constant.QPINVERTAPPEAR, invert);
57 }
58 public bool invertedAppearance() {
59 return QtXnl.widget_get_bool_value(nativehandle, Constant.QPINVERTAPPEAR);
60 }
61 public void setTextDirection(int textDirection){
62 QtXnl.widget_set_vint_value(nativehandle, Constant.QPTEXTDIR, textDirection);
63 }
64 public int textDirection() {
65 return QtXnl.widget_get_int_value(nativehandle, Constant.QPTEXTDIR);
66 }
67 public void setFormat(String format){
68 QtXnl.widget_slot_string(nativehandle, Constant.QPFORMAT, format);
69 }
70 public void resetFormat(){
71 QtXnl.widget_slot(nativehandle, Constant.QPFORMAT);
72 }
73 public String format() {
74 return (String)QtXnl.core_getString(nativehandle, Constant.QPFORMAT);
75 }
76 public void reset(){
77 QtXnl.widget_slot(nativehandle, Constant.QPRESET);
78 }
79 public void setRange(int minimum, int maximum){
80 QtXnl.widget_set_v2int_value(nativehandle, Constant.QPRANGE, minimum, maximum);
81 }
82 public void setMinimum(int minimum){
83 QtXnl.widget_set_vint_value(nativehandle, Constant.QPMININUM, minimum);
84 }
85 public void setMaximum(int maximum){
86 QtXnl.widget_set_vint_value(nativehandle, Constant.QPMAXINUM, maximum);
87 }
88 public void setValue(int value){
89 QtXnl.widget_set_vint_value(nativehandle, Constant.QPVALUE, value);
90 }
91 public void setOrientation(int Orientation){
92 QtXnl.widget_set_vint_value(nativehandle, Constant.QPORIENTATION, Orientation);
93 }
94 };
95};
void setValue(int value)
void setMinimum(int minimum)
bool isTextVisible()
bool invertedAppearance()
void setRange(int minimum, int maximum)
void setOrientation(int Orientation)
bool create() override
void setAlignment(int alignment)
bool create(@NotNilptr QWidget parent) override
void setTextVisible(bool visible)
void setInvertedAppearance(bool invert)
void setMaximum(int maximum)
void setTextDirection(int textDirection)
void setFormat(String format)
字符串类