xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
结构体 | Public 成员函数
QBrush类 参考
类 QBrush 继承关系图:
QNative

结构体

class  Gradient
 
class  QConicalGradient
 
class  QLinearGradient
 
class  QRadialGradient
 
enum  Spread
 
enum  Style
 

Public 成员函数

额外继承的成员函数

详细描述

在文件 QBrush.xcsm4 行定义.

构造及析构函数说明

◆ QBrush() [1/3]

QBrush ( ) throws IllegalArgumentException

在文件 QBrush.xcsm138 行定义.

138 {//构造
139 nativehandle = QtXnl.createNObject(QType.qtBrush, 0);
140 if (nativehandle == 0){
141 throw new IllegalArgumentException("can not create QBrush");
142 }
143 }
long nativehandle
Definition QNative.xcsm:91

◆ QBrush() [2/3]

QBrush ( @NotNilptr Gradient  grad) throws IllegalArgumentException

在文件 QBrush.xcsm145 行定义.

145 {
146 nativehandle = QtXnl.createNObject(QType.qtBrush, grad.gradhandle);
147 if (nativehandle == 0){
148 throw new IllegalArgumentException("can not create QBrush");
149 }
150 }

◆ QBrush() [3/3]

QBrush ( @NotNilptr QImage  img) throws IllegalArgumentException

在文件 QBrush.xcsm152 行定义.

152 {
153 nativehandle = QtXnl.createNObject(QType.qtImgBrush, img.himage);
154 if (nativehandle == 0){
155 throw new IllegalArgumentException("can not create QBrush");
156 }
157 }

成员函数说明

◆ finalize()

void finalize ( )

在文件 QBrush.xcsm159 行定义.

159 {
160 if (nativehandle != 0){
161 QtXnl.widget_slot(nativehandle, Constant.DELLOCBRUSH);
162 }
163 }