Rectangle.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include "Aspose.PDF.Cpp/Generator/Drawing/Shape.h"
5 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
6 
7 namespace Aspose
8 {
9 namespace Pdf
10 {
11 class GraphInfo;
12 class Operator;
13 class PageGenerator;
14 class Point;
15 class Rectangle;
16 } // namespace Pdf
17 } // namespace Aspose
18 namespace System
19 {
20 namespace Collections
21 {
22 namespace Generic
23 {
24 template <typename> class List;
25 } // namespace Generic
26 } // namespace Collections
27 namespace Xml
28 {
29 class XmlReader;
30 class XmlTextWriter;
31 } // namespace Xml
32 } // namespace System
33 
34 namespace Aspose {
35 
36 namespace Pdf {
37 
38 namespace Drawing {
39 
43 class ASPOSE_PDF_SHARED_CLASS Rectangle final : public Aspose::Pdf::Drawing::Shape
44 {
45  typedef Rectangle ThisType;
47 
48  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
49  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
50 
51  friend class Aspose::Pdf::PageGenerator;
52 
53 public:
54 
58  ASPOSE_PDF_SHARED_API double get_RoundedCornerRadius() const;
62  ASPOSE_PDF_SHARED_API void set_RoundedCornerRadius(double value);
66  ASPOSE_PDF_SHARED_API double get_Left() const;
70  ASPOSE_PDF_SHARED_API void set_Left(double value);
74  ASPOSE_PDF_SHARED_API double get_Bottom() const;
78  ASPOSE_PDF_SHARED_API void set_Bottom(double value);
82  ASPOSE_PDF_SHARED_API double get_Width() const;
86  ASPOSE_PDF_SHARED_API void set_Width(double value);
90  ASPOSE_PDF_SHARED_API double get_Height() const;
94  ASPOSE_PDF_SHARED_API void set_Height(double value);
95 
103  ASPOSE_PDF_SHARED_API Rectangle(float left, float bottom, float width, float height);
104 
105 protected:
106 
107  Rectangle();
108 
109  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Rectangle, CODEPORTING_ARGS());
110  ASPOSE_PDF_SHARED_API void GetPathOperators(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Operator>>> operators) override;
111  ASPOSE_PDF_SHARED_API System::SharedPtr<Pdf::Rectangle> GetRect() override;
112  ASPOSE_PDF_SHARED_API void Serialize(System::SharedPtr<System::Xml::XmlTextWriter> writer) override;
113  ASPOSE_PDF_SHARED_API void Deserialize(System::SharedPtr<System::Xml::XmlReader> reader) override;
114  ASPOSE_PDF_SHARED_API void ClipShading(System::SharedPtr<Point> start, System::SharedPtr<Point> end) override;
115 
116 private:
117 
118  double bottom;
119  double height;
120  double left;
121  double width;
122  double roundedCornerRadius;
123 
133 
134 };
135 
136 } // namespace Drawing
137 } // namespace Pdf
138 } // namespace Aspose
139 
140 
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:17
Definition: Artifact.h:67
Represents shape - the base graphics object.
Definition: Shape.h:60
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
means saving in XML format
Definition: AFRelationship.h:4
A printer&#39;s point (1/72 of an inch).
List forward declaration.
Definition: Artifact.h:74
means saving without change of format, i.e. as PDF use it please instead of &#39;SaveFormat.None&#39;, that is obsolete one
Represents rectangle.
Definition: Rectangle.h:43
Whole PDF file will be submitted.