BPS Script API  2.24.4
bps::Size Class Reference

A wrapper for QSizeF. More...

Public Member Functions

 Size ()
 Default constructor.
 
 Size (Number aWidth, Number aHeight)
 Initializing constructor. More...
 
String toString () const
 

Properties

Number height
 The height. More...
 
Number width
 The width. More...
 

Detailed Description

A wrapper for QSizeF.

Example use within a report:

// change pixmap size to 100 x 100 mm
section.item('myPixmap').size = new bps.Size(100,100);
A wrapper for QSizeF.
Definition: bps.Size.js:13
The bps extension is a namespace assembling general BPS properties and functions.
Definition: bps.AsyncIO.js:1

Constructor & Destructor Documentation

◆ Size()

bps::Size::Size ( Number  aWidth,
Number  aHeight 
)

Initializing constructor.

Parameters
aWidthThe initial width.
aHeightThe initial height.

Member Function Documentation

◆ toString()

String bps::Size::toString ( ) const
Returns
Returns "Size(width,height)"

Property Documentation

◆ height

Number bps::Size::height
readwrite

The height.

 

◆ width

Number bps::Size::width
readwrite

The width.

 


The documentation for this class was generated from the following file: