Documents > BPS V2 Script API
bps::Size Class Reference

A wrapper for QSizeF. More...

List of all members.

Public Member Functions

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

Properties

Number height
 The height.
Number width
 The width.

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);

Constructor & Destructor Documentation

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

Initializing constructor.

Parameters:
aWidthThe initial width.
aHeightThe initial height.

Member Function Documentation

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

Property Documentation

Number bps::Size::height [read, write]

The height.

 

Number bps::Size::width [read, write]

The width.