Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
rect.h File Reference

Axis-aligned rectangle. More...

Go to the source code of this file.

Classes

struct  Geom::Aspect
 Structure that specifies placement of within a viewport. More...
 
class  Geom::Rect
 Axis aligned, non-empty rectangle. More...
 
class  Geom::OptRect
 Axis-aligned rectangle that can be empty. More...
 

Namespaces

namespace  Geom
 Various utility functions.
 

Enumerations

enum  Geom::Align {
  Geom::ALIGN_NONE , Geom::ALIGN_XMIN_YMIN , Geom::ALIGN_XMID_YMIN , Geom::ALIGN_XMAX_YMIN ,
  Geom::ALIGN_XMIN_YMID , Geom::ALIGN_XMID_YMID , Geom::ALIGN_XMAX_YMID , Geom::ALIGN_XMIN_YMAX ,
  Geom::ALIGN_XMID_YMAX , Geom::ALIGN_XMAX_YMAX
}
 Values for the <align> parameter of preserveAspectRatio. More...
 
enum  Geom::Expansion { Geom::EXPANSION_MEET , Geom::EXPANSION_SLICE }
 Values for the <meetOrSlice> parameter of preserveAspectRatio. More...
 

Functions

Point Geom::align_factors (Align align)
 Convert an align specification to coordinate fractions.
 
Coord Geom::distanceSq (Point const &p, Rect const &rect)
 
Coord Geom::distance (Point const &p, Rect const &rect)
 
Coord Geom::distanceSq (Point const &p, OptRect const &rect)
 Minimum square of distance to rectangle, or infinity if empty.
 
Coord Geom::distance (Point const &p, OptRect const &rect)
 Minimum distance to rectangle, or infinity if empty.
 
OptRect Geom::operator& (Rect const &a, Rect const &b)
 
OptRect Geom::intersect (Rect const &a, Rect const &b)
 
OptRect Geom::intersect (OptRect const &a, OptRect const &b)
 
Rect Geom::unify (Rect const &a, Rect const &b)
 
OptRect Geom::unify (OptRect const &a, OptRect const &b)
 
Rect Geom::union_list (std::vector< Rect > const &r)
 Union a list of rectangles.
 

Detailed Description

Axis-aligned rectangle.

Definition in file rect.h.