Rect

VerifoneControls. Rect

A rectangle

Constructor

new Rect(id, x, y, optionsopt)

Description:
  • Instantiate a Rect object

Source:
See:
Parameters:
Name Type Attributes Description
id number

ID of the rectangle object

x number

X position to draw the rectangle

y number

Y position to draw the rectangle

options object <optional>

Additional configuration options

Properties
Name Type Attributes Default Description
width number <optional>
100

Width of rectangle in pixels

height number <optional>
100

height of rectangle in pixels

border object <optional>

Border styles

opacity float <optional>

Set object opacity (0.0 to 1)

zIndex number <optional>

Manually set z-index

Extends

  • DisplayWidget