Skip To Content

INTEGRAL

Object Building Guidelines

Rectangle

Overview

This object represents a standard rectangle. In INTEGRAL DSL, rectangles can have flat or rounded corners.

While constructing the rectangle object, an optional shadow and/or outline may be specified.

Designated Rendering Function: pdDrawRect (6)

Note: Although pdBodyPtr is a key link, it is not mandatory. This means it is possible to construct a rectangle that has no body, only an outline and/or a shadow.

pdBodyPtr (1013)

Also appears in: Typography (For Outline Fonts), Row Boundary, Typographic Frame, Library Shape, Circle/Ellipse, True Circle/Ellipse, Slice, Pattern, Grid, Custom Shape or Polygon, Gradient, Gradient (As Fast Rectangle)

Link to the Surface Definition object.

This link supplies style attributes for the body of an object. Style attributes include color, transparency, pattern fills, special effects (e.g. blur, emboss, pattern fill) etc.

pdOutlinePtr (1014)

Also appears in: Typography (For Outline Fonts), Row Boundary, Typographic Frame, Library Shape, Circle/Ellipse, True Circle/Ellipse, Slice, Grid, Custom Shape or Polygon

Link to the Outline Definition object.

This link supplies parameters necessary to render the outline of an object.

Properties

pdDw (1029)   PD_LONG_SIGNED

Also appears in: PowerFont Record, PowerFont, Library Polyline, Library Shape, Line, Circle/Ellipse, Pattern, Grid, Gradient, Gradient (As Fast Rectangle), Gradient (As Inverter), Bitmap Image, Library Bitmap Image, 3D Model

In general, this property represents the width of a line, shape or some other object in document units. Most objects assume a positive width. However, some objects (e.g. lines) can have either a positive or a negative width. In these cases, this property also indicates the direction.

This property may also be used for some other more specific purposes. For example, in PowerFonts it refers to the font's base width (or horizontal units per em-square). Similarly, in PowerFont records this property serves as the advance width of a glyph.

Sample values:

500 = Width of 500 document units
-200 = Width of -200 document units

pdDh (1030)   PD_LONG_SIGNED

Also appears in: PowerFont, Library Polyline, Library Shape, Line, Circle/Ellipse, Pattern, Grid, Gradient, Gradient (As Fast Rectangle), Gradient (As Inverter), Bitmap Image, Library Bitmap Image, 3D Model

In general, this property represents the height of a line, shape or other object in document units. Most objects assume a positive height. But some objects (e.g. lines) can have either a positive or a negative height. In these cases, the height property also indicates the direction.

This property may also be used for some other more specific purposes. For example, in PowerFonts this property refers to the font's base height (or vertical units per em-square).

Sample values:

400 = Height of 400 document units
-100 = Height of -100 document units

pdRoundX (1033)   PD_WORD_UNSIGNED

Also appears in: Row Boundary

Roundness of rectangle's corners in percentages in X direction if pdRoundY is positive, otherwise in both X and Y directions.

This value of this property must be between 0 and 100. If zero, the corners will be flat.

Sample values:

50 = 50% roundness
35 = 35% roundness

pdRoundY (1180)   PD_WORD_UNSIGNED

Also appears in: Row Boundary

Roundness of rectangle's corners in percentages in Y direction. This property has effect only when pdRoundX is positive.

This value of this property must be between 0 and 100. If zero, only pdRoundX will have effect in both X and Y directions.

Sample values:

50 = 50% roundness
35 = 35% roundness

pdEdges (1132)   PD_BYTE_UNSIGNED

Also appears in: Grid

Reserved for future use.

Example

▸ demo_program.i