QBrush
The QBrush class defines the fill pattern of shapes drawn by QPainter.
This class is a JS wrapper around Qt's QBrush class
Example
Hierarchy
↳ QBrush
Index
Constructors
Properties
Methods
Constructors
constructor
+ new QBrush(): QBrush
Overrides Component.constructor
Returns: QBrush
+ new QBrush(nativeElement
: NativeElement): QBrush
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
nativeElement | NativeElement |
Returns: QBrush
+ new QBrush(color
: GlobalColor, style
: BrushStyle): QBrush
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
color | GlobalColor |
style | BrushStyle |
Returns: QBrush
+ new QBrush(color
: QColor, style
: BrushStyle): QBrush
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
color | QColor |
style | BrushStyle |
Returns: QBrush
Properties
native
• native: NativeElement
nodeChildren
• nodeChildren: Set‹Component›
Inherited from Component.nodeChildren
Optional
nodeParent
• nodeParent? : Component
Inherited from Component.nodeParent
Methods
color
â–¸ color(): QColor
Returns: QColor
isOpaque
â–¸ isOpaque(): boolean
Returns: boolean
setColor
â–¸ setColor(color
: QColor | GlobalColor): void
Parameters:
Name | Type |
---|---|
color | QColor | GlobalColor |
Returns: void
setNodeParent
â–¸ setNodeParent(parent?
: Component): void
Inherited from Component.setNodeParent
Parameters:
Name | Type |
---|---|
parent? | Component |
Returns: void
setStyle
â–¸ setStyle(style
: BrushStyle): void
Parameters:
Name | Type |
---|---|
style | BrushStyle |
Returns: void
setTexture
â–¸ setTexture(pixmap
: QPixmap): void
Parameters:
Name | Type |
---|---|
pixmap | QPixmap |
Returns: void
style
â–¸ style(): BrushStyle
Returns: BrushStyle
texture
â–¸ texture(): QPixmap
Returns: QPixmap
Static
fromQVariant
â–¸ fromQVariant(variant
: QVariant): QBrush
Parameters:
Name | Type |
---|---|
variant | QVariant |
Returns: QBrush