libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
Art::Paperback::Rectangle Class Reference

Represents a PDF rectangle. More...

#include <art/paperback/primitives.hxx>

Public Member Functions

 Rectangle ()
 Constructor.
 
 Rectangle (double, double, double, double)
 Constructor.
 
double left () const
 
double bottom () const
 
double right () const
 
double top () const
 
Carousel::Array to_array () const
 Create COS array from rectangle.
 

Static Public Member Functions

static Rectangle letter ()
 
static Rectangle legal ()
 
static Rectangle tabloid ()
 
static Rectangle a3 ()
 
static Rectangle a4 ()
 
static Rectangle a5 ()
 
static Rectangle c3 ()
 
static Rectangle c4 ()
 
static Rectangle c5 ()
 
static Rectangle executive ()
 

Private Attributes

double _left {}
 
double _bottom {}
 
double _right {}
 
double _top {}
 

Detailed Description

Represents a PDF rectangle.

Constructor & Destructor Documentation

◆ Rectangle() [1/2]

Art::Paperback::Rectangle::Rectangle ( )

Constructor.

◆ Rectangle() [2/2]

Art::Paperback::Rectangle::Rectangle ( double left,
double bottom,
double right,
double top )

Constructor.

Member Function Documentation

◆ to_array()

Carousel::Array Art::Paperback::Rectangle::to_array ( ) const

Create COS array from rectangle.