]> granicus.if.org Git - imagemagick/commitdiff
Fixed property names of DrawableRoundRectangle.
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 23 Apr 2017 07:49:53 +0000 (09:49 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 23 Apr 2017 07:50:31 +0000 (09:50 +0200)
Magick++/lib/Drawable.cpp
Magick++/lib/Magick++/Drawable.h

index fa10ac0d048d232fb68f46d2145a8da8cef3b5d7..9eb2399f20d6340f42c5b219e3e31697d19bbfe4 100644 (file)
@@ -1106,8 +1106,8 @@ Magick::DrawableRoundRectangle::~DrawableRoundRectangle ( void )
 void Magick::DrawableRoundRectangle::operator()
   ( MagickCore::DrawingWand * context_ ) const
 {
-  DrawRoundRectangle( context_, _centerX,_centerY, _width,_hight,
-                      _cornerWidth, _cornerHeight);
+  DrawRoundRectangle(context_,_upperLeftX,_upperLeftY,_lowerRightX,
+    _lowerRightY,_cornerWidth, _cornerHeight);
 }
 Magick::DrawableBase* Magick::DrawableRoundRectangle::copy() const
 {
index 1fc06bcec3266d46bfebc78916f669903ccc4a15..9145f19a699560572be154ccb70890d104ddbfba 100644 (file)
@@ -1491,13 +1491,13 @@ private:
 class MagickPPExport DrawableRoundRectangle : public DrawableBase
 {
 public:
-  DrawableRoundRectangle ( double centerX_, double centerY_,
-                           double width_, double hight_,
+  DrawableRoundRectangle ( double upperLeftX_, double upperLeftY_,
+                           double lowerRightX_, double lowerRightY_,
                            double cornerWidth_, double cornerHeight_ )
-    : _centerX(centerX_),
-      _centerY(centerY_),
-      _width(width_),
-      _hight(hight_),
+    : _upperLeftX(upperLeftX_),
+      _upperLeftY(upperLeftY_),
+      _lowerRightX(lowerRightX_),
+      _lowerRightY(lowerRightY_),
       _cornerWidth(cornerWidth_),
       _cornerHeight(cornerHeight_)
     { }
@@ -1510,40 +1510,80 @@ public:
   // Return polymorphic copy of object
   /*virtual*/ DrawableBase* copy() const;
 
+#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
+
   void centerX( double centerX_ )
     {
-      _centerX = centerX_;
+      _upperLeftX = centerX_;
     }
   double centerX( void ) const
     {
-      return _centerX;
+      return _upperLeftX;
     }
 
   void centerY( double centerY_ )
     {
-      _centerY = centerY_;
+      _upperLeftY = centerY_;
     }
   double centerY( void ) const
     {
-      return _centerY;
+      return _upperLeftY;
     }
 
   void width( double width_ )
     {
-      _width = width_;
+      _lowerRightX = width_;
     }
   double width( void ) const
     {
-      return _width;
+      return _lowerRightX;
     }
 
   void hight( double hight_ )
     {
-      _hight = hight_;
+      _lowerRightY = hight_;
     }
   double hight( void ) const
     {
-      return _hight;
+      return _lowerRightY;
+    }
+
+#endif
+
+  void upperLeftX( double upperLeftX_ )
+    {
+      _upperLeftX = upperLeftX_;
+    }
+  double upperLeftX( void ) const
+    {
+      return _upperLeftX;
+    }
+
+  void upperLeftY( double upperLeftY_ )
+    {
+      _upperLeftY = upperLeftY_;
+    }
+  double upperLeftY( void ) const
+    {
+      return _upperLeftY;
+    }
+
+  void lowerRightX( double lowerRightX_ )
+    {
+      _lowerRightX = lowerRightX_;
+    }
+  double lowerRightX( void ) const
+    {
+      return _lowerRightX;
+    }
+
+  void lowerRightY( double lowerRightY_ )
+    {
+      _lowerRightY = lowerRightY_;
+    }
+  double lowerRightY( void ) const
+    {
+      return _lowerRightY;
     }
 
   void cornerWidth( double cornerWidth_ )
@@ -1565,10 +1605,10 @@ public:
     }
 
 private:
-  double _centerX;
-  double _centerY;
-  double _width;
-  double _hight;
+  double _upperLeftX;
+  double _upperLeftY;
+  double _lowerRightX;
+  double _lowerRightY;
   double _cornerWidth;
   double _cornerHeight;
 };