Mako 8.2.0 API
MakoCore SDK API Documentation
Loading...
Searching...
No Matches
BoxTmpl< PointType > Class Template Reference

Template for a PDF-style box. Similar to a rectangle but specified using a left, bottom, right and top coordinate. More...

#include <edl/edlgeom.h>

Public Member Functions

 BoxTmpl ()
 BoxTmpl (PointType _left, PointType _bottom, PointType _right, PointType _top)
 BoxTmpl (const BoxTmpl< PointType > &b)
 BoxTmpl (const RectTmpl< PointType > &rect)
 BoxTmpl (BoxTmpl< PointType > &&p)=default
BoxTmpl< PointType > & operator= (const BoxTmpl< PointType > &other)=default
RectTmpl< PointType > asRect ()
void normalize ()
void offset (PointType x, PointType y)
void scale (PointType s)
bool equal (const BoxTmpl< PointType > &other) const

Public Attributes

PointType left
PointType bottom
PointType top
PointType right

Detailed Description

template<typename PointType>
class BoxTmpl< PointType >

Template for a PDF-style box. Similar to a rectangle but specified using a left, bottom, right and top coordinate.

Constructor & Destructor Documentation

◆ BoxTmpl() [1/5]

template<typename PointType>
BoxTmpl< PointType >::BoxTmpl ( )
inline

◆ BoxTmpl() [2/5]

template<typename PointType>
BoxTmpl< PointType >::BoxTmpl ( PointType _left,
PointType _bottom,
PointType _right,
PointType _top )
inline

◆ BoxTmpl() [3/5]

template<typename PointType>
BoxTmpl< PointType >::BoxTmpl ( const BoxTmpl< PointType > & b)
inline

◆ BoxTmpl() [4/5]

template<typename PointType>
BoxTmpl< PointType >::BoxTmpl ( const RectTmpl< PointType > & rect)
inline

◆ BoxTmpl() [5/5]

template<typename PointType>
BoxTmpl< PointType >::BoxTmpl ( BoxTmpl< PointType > && p)
default

Member Function Documentation

◆ asRect()

template<typename PointType>
RectTmpl< PointType > BoxTmpl< PointType >::asRect ( )
inline

◆ equal()

template<typename PointType>
bool BoxTmpl< PointType >::equal ( const BoxTmpl< PointType > & other) const
inline

◆ normalize()

template<typename PointType>
void BoxTmpl< PointType >::normalize ( )
inline

◆ offset()

template<typename PointType>
void BoxTmpl< PointType >::offset ( PointType x,
PointType y )
inline

◆ operator=()

template<typename PointType>
BoxTmpl< PointType > & BoxTmpl< PointType >::operator= ( const BoxTmpl< PointType > & other)
default

◆ scale()

template<typename PointType>
void BoxTmpl< PointType >::scale ( PointType s)
inline

Member Data Documentation

◆ bottom

template<typename PointType>
PointType BoxTmpl< PointType >::bottom

◆ left

template<typename PointType>
PointType BoxTmpl< PointType >::left

◆ right

template<typename PointType>
PointType BoxTmpl< PointType >::right

◆ top

template<typename PointType>
PointType BoxTmpl< PointType >::top

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