11#if !defined (Magick_Geometry_header)
12#define Magick_Geometry_header
14#include "Magick++/Include.h"
22 MagickPPExport
int operator ==
23 (
const Magick::Geometry& left_,
const Magick::Geometry& right_);
24 MagickPPExport
int operator !=
25 (
const Magick::Geometry& left_,
const Magick::Geometry& right_);
26 MagickPPExport
int operator >
27 (
const Magick::Geometry& left_,
const Magick::Geometry& right_);
28 MagickPPExport
int operator <
29 (
const Magick::Geometry& left_,
const Magick::Geometry& right_);
30 MagickPPExport
int operator >=
31 (
const Magick::Geometry& left_,
const Magick::Geometry& right_);
32 MagickPPExport
int operator <=
33 (
const Magick::Geometry& left_,
const Magick::Geometry& right_);
35 class MagickPPExport Geometry
43 Geometry(
const char *geometry_);
46 Geometry(
const Geometry &geometry_);
49 Geometry(
const std::string &geometry_);
52 Geometry(
size_t width_,
size_t height_,::ssize_t xOff_=0,
53 ::ssize_t yOff_=0,
bool xNegative_=
false,
bool yNegative_=
false);
59 const Geometry& operator=(
const char *geometry_);
62 Geometry& operator=(
const Geometry& Geometry_);
65 const Geometry& operator=(
const std::string &geometry_ );
68 operator std::string()
const;
71 void aspect(
bool aspect_);
72 bool aspect(
void)
const;
75 void fillArea(
bool fillArea_);
76 bool fillArea(
void)
const;
79 void greater(
bool greater_);
80 bool greater(
void)
const;
83 void height(
size_t height_);
84 size_t height(
void)
const;
87 void isValid(
bool isValid_);
88 bool isValid(
void)
const;
91 void less(
bool less_);
92 bool less(
void)
const;
95 void limitPixels(
bool limitPixels_);
96 bool limitPixels(
void)
const;
99 void percent(
bool percent_);
100 bool percent(
void)
const;
103 void width(
size_t width_);
104 size_t width(
void)
const;
107 void xNegative(
bool xNegative_);
108 bool xNegative(
void)
const;
111 void xOff(::ssize_t xOff_);
112 ::ssize_t xOff(
void)
const;
115 void yNegative(
bool yNegative_);
116 bool yNegative(
void)
const;
119 void yOff(::ssize_t yOff_);
120 ::ssize_t yOff(
void)
const;
127 Geometry(
const MagickCore::RectangleInfo &rectangle_);
130 const Geometry& operator=(
const MagickCore::RectangleInfo &rectangle_);
133 operator MagickCore::RectangleInfo()
const;
151 class MagickPPExport
Offset;
154 MagickPPExport
int operator ==
156 MagickPPExport
int operator !=
159 class MagickPPExport Offset
167 Offset(
const char *offset_);
170 Offset(
const Offset &offset_);
173 Offset(
const std::string &offset_);
176 Offset(ssize_t x_,ssize_t y_);
182 const Offset& operator=(
const char *offset_);
185 Offset& operator=(
const Offset& offset_);
188 const Offset& operator=(
const std::string &offset_);
191 ssize_t x(
void)
const;
194 ssize_t y(
void)
const;
201 operator MagickCore::OffsetInfo()
const;
213inline void Magick::Geometry::aspect(
bool aspect_)
218inline bool Magick::Geometry::aspect(
void)
const
223inline void Magick::Geometry::fillArea(
bool fillArea_)
228inline bool Magick::Geometry::fillArea(
void)
const
233inline void Magick::Geometry::greater(
bool greater_)
238inline bool Magick::Geometry::greater(
void)
const
243inline void Magick::Geometry::height(
size_t height_)
248inline size_t Magick::Geometry::height(
void)
const
253inline void Magick::Geometry::isValid(
bool isValid_)
258inline bool Magick::Geometry::isValid(
void)
const
263inline void Magick::Geometry::less(
bool less_)
268inline bool Magick::Geometry::less(
void)
const
273inline void Magick::Geometry::limitPixels(
bool limitPixels_)
275 _limitPixels=limitPixels_;
278inline bool Magick::Geometry::limitPixels(
void)
const
280 return(_limitPixels);
283inline void Magick::Geometry::width(
size_t width_)
289inline void Magick::Geometry::percent(
bool percent_)
294inline bool Magick::Geometry::percent(
void)
const
299inline size_t Magick::Geometry::width(
void)
const
304inline void Magick::Geometry::xNegative(
bool xNegative_)
306 _xNegative=xNegative_;
309inline bool Magick::Geometry::xNegative(
void)
const
314inline void Magick::Geometry::xOff(::ssize_t xOff_)
319inline ::ssize_t Magick::Geometry::xOff(
void)
const
324inline void Magick::Geometry::yNegative(
bool yNegative_)
326 _yNegative=yNegative_;
329inline bool Magick::Geometry::yNegative(
void)
const
334inline void Magick::Geometry::yOff(::ssize_t yOff_)
339inline ::ssize_t Magick::Geometry::yOff(
void)
const