xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
QwtText.x
浏览该文件的文档.
1
//xlang Source, Name:QwtText.x
2
//Date: Wed Nov 04:46:17 2023
3
package
Qt{
4
@SuppressWarnings public class QwtText: QCore{
5
enum TextFormat
6
{
13
AutoText = 0,
14
16
PlainText,
17
19
RichText,
20
34
MathMLText,
35
40
TeXText,
41
46
OtherFormat = 100
47
};
48
55
enum
PaintAttribute
56
{
58
PaintUsingTextFont = 0x01,
59
61
PaintUsingTextColor = 0x02,
62
64
PaintBackground = 0x04
65
};
66
67
public
QwtText
() throws
IllegalArgumentException
{
68
nativehandle = QtXnl.createNObject(QType.qtQwtText, 0);
69
if
(nativehandle == 0){
70
throw
new
IllegalArgumentException
(
"can not new QwtText"
);
71
}
72
}
73
74
public
QwtText
(
String
text)
throws
IllegalArgumentException
{
75
nativehandle = QtXnl.createSObject(QType.qtQwtText, text);
76
if
(nativehandle == 0){
77
throw
new
IllegalArgumentException
(
"can not new QwtText"
);
78
}
79
}
80
81
82
public
void
setText
(
String
text, TextFormat textFormat ){
83
QtXnl.long_intstring(nativehandle, Constant.QwtText_setText, textFormat, text);
84
}
85
86
public
void
setText
(
String
text){
87
QtXnl.long_intstring(nativehandle, Constant.QwtText_setText, TextFormat.AutoText, text);
88
}
89
90
public
void
setFont
(QFont f){
91
QtXnl.widget_set_native_value(nativehandle, Constant.QwtText_setFont, f.nativehandle);
92
}
93
94
public
void
setRenderFlags
(
int
flags){
95
QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtText_setRenderFlags, flags, 0);
96
}
97
98
public
void
setColor
(
int
color){
99
QtXnl.widget_set_v2int_value(nativehandle, Constant.QwtText_setColor, color, 0);
100
}
101
102
public
void
setPaintAttribute
(
int
flag,
bool
on) {
103
QtXnl.widget_set_int_bool_value(nativehandle, Constant.QwtText_setPaintAttribute, flag, on);
104
}
105
106
public
void
setBorderRadius
(
double
radius){
107
QtXnl.widget_set_double_value(nativehandle,Constant.QwtText_setBorderRadius, radius);
108
}
109
110
public
void
finalize
(){
111
QtXnl.widget_slot(nativehandle, Constant.QwtText_CTOR);
112
}
113
};
114
};
IllegalArgumentException
参数异常
Definition
BuiltinObjects.x:501
Qt.QwtText.setPaintAttribute
void setPaintAttribute(int flag, bool on)
Definition
QwtText.x:102
Qt.QwtText.setText
void setText(String text)
Definition
QwtText.x:86
Qt.QwtText.finalize
void finalize()
Definition
QwtText.x:110
Qt.QwtText.setBorderRadius
void setBorderRadius(double radius)
Definition
QwtText.x:106
Qt.QwtText.setText
void setText(String text, TextFormat textFormat )
Definition
QwtText.x:82
Qt.QwtText.QwtText
QwtText()
Definition
QwtText.x:67
Qt.QwtText.setColor
void setColor(int color)
Definition
QwtText.x:98
Qt.QwtText.QwtText
QwtText(String text)
Definition
QwtText.x:74
Qt.QwtText.setFont
void setFont(QFont f)
Definition
QwtText.x:90
Qt.QwtText.setRenderFlags
void setRenderFlags(int flags)
Definition
QwtText.x:94
String
字符串类
Definition
BuiltinObjects.x:65
制作者
1.9.8