nodeguy/website/docs/api/generated/classes/qpicture.md
2020-03-15 12:35:48 +01:00

3.2 KiB
Raw Blame History

id title sidebar_label
qpicture QPicture QPicture

The QPicture class is a paint device that records and replays QPainter commands.

This class is a JS wrapper around Qt's QPicture class

Example

const { QPicture } = require("@nodegui/nodegui");

const picture = new QPicture();

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QPicture(): QPicture

Overrides Component.constructor

Returns: QPicture

+ new QPicture(native: NativeElement): QPicture

Overrides Component.constructor

Parameters:

Name Type
native NativeElement

Returns: QPicture

+ new QPicture(formatVersion: number): QPicture

Overrides Component.constructor

Parameters:

Name Type
formatVersion number

Returns: QPicture

Properties

native

native: NativeElement

Overrides Component.native


nodeChildren

nodeChildren: SetComponent

Inherited from Component.nodeChildren


Optional nodeParent

nodeParent? : Component

Inherited from Component.nodeParent

Methods

boundingRect

boundingRect(): QRect

Returns: QRect


isNull

isNull(): boolean

Returns: boolean


load

load(fileName: string): boolean

Parameters:

Name Type
fileName string

Returns: boolean


save

save(fileName: string): boolean

Parameters:

Name Type
fileName string

Returns: boolean


setBoundingRect

setBoundingRect(r: QRect): void

Parameters:

Name Type
r QRect

Returns: void


setNodeParent

setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

Name Type
parent? Component

Returns: void


size

size(): number

Returns: number