BPS Script API  2.24.4
bps::Point Class Reference

A wrapper for QPointF. More...

Public Member Functions

 Point ()
 Default constructor.
 
 Point (Number aX, Number aY)
 Initializing constructor. More...
 
String toString () const
 

Properties

Number x
 The X position. More...
 
Number y
 The Y position. More...
 

Detailed Description

A wrapper for QPointF.

Example use within a report:

// change pixmap position to x=150 / y=33 mm
setion.item('myPixmap').pos = new bps.Point(150,33);
A wrapper for QPointF.
Definition: bps.Point.js:13
The bps extension is a namespace assembling general BPS properties and functions.
Definition: bps.AsyncIO.js:1

Constructor & Destructor Documentation

◆ Point()

bps::Point::Point ( Number  aX,
Number  aY 
)

Initializing constructor.

Parameters
aXThe initial X position.
aYThe initial Y position.

Member Function Documentation

◆ toString()

String bps::Point::toString ( ) const
Returns
Returns "Point(x/y)"

Property Documentation

◆ x

Number bps::Point::x
readwrite

The X position.

 

◆ y

Number bps::Point::y
readwrite

The Y position.

 


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