---
name: "lines"
section: "3"
platform: "linux"
package: "ivtools-dev"
version: "1.1.3-4"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/lines"
---

# lines(3)

structured graphics classes for points, lines, and open polygons

## NAME

Point, Line, MultiLine, S\_MultiLine, SF\_MultiLine - structured graphics classes for points, lines, and open polygons

## SYNOPSIS

**#include \<Unidraw/Graphic/lines.h\>**

## DESCRIPTION

Point and Line are subclasses of Graphic that draw a point and a line, respectively.  MultiLine is a Vertices subclass that serves as an abstract base class for open polygons: S\_MultiLine is a MultiLine subclass for stroked open polygons, while SF\_MultiLine is a stroked-filled open polygon.  Point, Line, and S\_MultiLine store a PSBrush, while SF\_MultiLine also stores a PSPattern.

## POINT PUBLIC OPERATIONS

- **Point(Coord x, Cord y, Graphic\* = nil)**

  Construct a Point object, optionally supplying a graphic from which to obtain an initial set of graphics state.

- **void GetOriginal(Coord&, Coord&)**

  Return the coordinates supplied in the constructor.

## LINE PUBLIC OPERATIONS

- **Line(Coord x0, Cord y0, Coord x1, Coord y1, Graphic\* = nil)**

  Construct a Line object, optionally supplying a graphic from which to obtain an initial set of graphics state.

- **void GetOriginal(Coord& x0, Coord& y0, Coord& x1, Coord& y1)**

  Return the line's endpoints as supplied in the constructor.

## MULTILINE PROTECTED OPERATIONS

- **MultiLine(Coord\* x, Coord\* y, int count, Graphic\* = nil)**

  MultiLine's constructor is protected to prevent instantiation of the abstract base class.  The parameters are passed directly to the Vertices constructor.

## S\_MULTILINE PUBLIC OPERATIONS

- **S\_MultiLine(Coord\* x, Coord\* y, int count, Graphic\* = nil)**

  Construct an S\_MultiLine object, optionally supplying a graphic from which to obtain an initial set of graphics state.

## SF\_MULTILINE PUBLIC OPERATIONS

- **SF\_MultiLine(Coord\* x, Coord\* y, int count, Graphic\* = nil)**

  Construct an SF\_MultiLine object, optionally supplying a graphic from which to obtain an initial set of graphics state.

## SEE ALSO

Graphic(3U), Vertices(3U), pspaint(3U)
