FillObjects.h
1#pragma once
2// Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3
4#include <system/object_ext.h>
5#include <system/enum.h>
6#include <system/array.h>
7#include <drawing/color.h>
8#include <cstdint>
9
10#include "Aspose.Pub.Cpp/aspose_pub_api_defs.h"
11
12namespace Aspose
13{
14namespace Pub
15{
16class GraphicFieldContent;
17class Image;
18} // namespace Pub
19} // namespace Aspose
20namespace System
21{
22namespace Collections
23{
24namespace Generic
25{
26template <typename> class List;
27} // namespace Generic
28} // namespace Collections
29} // namespace System
30
31namespace Aspose {
32
33namespace Pub {
34
35enum class FillTypes : uint8_t
36{
37 Solid = 0,
38 Pattern,
39 Texture,
40 Bitmap,
41 Shade,
47 Empty
48};
49
51{
52 typedef StopPoint ThisType;
54
55 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
56 RTTI_INFO_DECL();
57
58public:
59
61 uint32_t get_Offset() const;
62 double get_Opacity() const;
63
64 StopPoint(System::Drawing::Color color, uint32_t offset, double opacity);
65
66private:
67
69 uint32_t _offset;
70 double _opacity;
71
72};
73
74class Fill : public System::Object
75{
76 typedef Fill ThisType;
78
79 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
80 RTTI_INFO_DECL();
81
82public:
83
85
87
88protected:
89
91
92};
93
95{
96 typedef ImageFill ThisType;
98
99 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
100 RTTI_INFO_DECL();
101
102public:
103
105 bool get_IsTexture() const;
106 double get_Rotation() const;
107
108 ImageFill(System::SharedPtr<GraphicFieldContent> ownerGraphicContent, uint32_t imageIndex, bool isTexture, double rotation);
109
110private:
111
113 bool _isTexture;
114 double _rotation;
115
116};
117
119{
120 typedef PatternFill ThisType;
122
123 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
124 RTTI_INFO_DECL();
125
126public:
127
130
131 PatternFill(System::SharedPtr<GraphicFieldContent> ownerGraphicContent, uint32_t imageIndex, System::Drawing::Color foregroundColor, System::Drawing::Color backgroundColor);
132
133private:
134
135 System::Drawing::Color _foregroundColor;
136 System::Drawing::Color _backgroundColor;
137
138};
139
141{
142 typedef SolidFill ThisType;
144
145 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
146 RTTI_INFO_DECL();
147
148public:
149
151 double get_Opacity() const;
152
154
155private:
156
158 double _opacity;
159
160};
161
163{
164 typedef GradientFill ThisType;
166
167 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
168 RTTI_INFO_DECL();
169
170public:
171
172 double get_Angle() const;
174 double get_Left() const;
175 double get_Top() const;
176 double get_Right() const;
177 double get_Bottom() const;
179
180 GradientFill(System::SharedPtr<GraphicFieldContent> ownerGraphicContent, double angle, FillTypes type, double left, double top, double right, double bottom);
181
185
186private:
187
189 double _angle;
190 FillTypes _type;
191 double _left, _top, _right, _bottom;
192
193};
194
195} // namespace Pub
196} // namespace Aspose
197
198template<>
199struct EnumMetaInfo<Aspose::Pub::FillTypes>
200{
201 static const ASPOSE_PUB_SHARED_API std::array<std::pair<Aspose::Pub::FillTypes, const char_t*>, 11>& values();
202};
203
204
205
Definition FillObjects.h:75
Fill(System::SharedPtr< GraphicFieldContent > ownerGraphicContent)
System::SharedPtr< GraphicFieldContent > _ownerGraphicContent
Definition FillObjects.h:90
System::SharedPtr< GraphicFieldContent > get_OwnerGraphicContent() const
Definition FillObjects.h:163
FillTypes get_Type() const
void AddStopPointReverse(System::SharedPtr< StopPoint > point)
GradientFill(System::SharedPtr< GraphicFieldContent > ownerGraphicContent, double angle, FillTypes type, double left, double top, double right, double bottom)
double get_Bottom() const
void AddStopPoint(System::SharedPtr< StopPoint > point)
System::ArrayPtr< System::SharedPtr< StopPoint > > get_Points()
double get_Right() const
double get_Angle() const
Definition FillObjects.h:95
ImageFill(System::SharedPtr< GraphicFieldContent > ownerGraphicContent, uint32_t imageIndex, bool isTexture, double rotation)
bool get_IsTexture() const
double get_Rotation() const
System::SharedPtr< Aspose::Pub::Image > get_Image() const
Definition FillObjects.h:119
System::Drawing::Color get_ForegroundColor() const
PatternFill(System::SharedPtr< GraphicFieldContent > ownerGraphicContent, uint32_t imageIndex, System::Drawing::Color foregroundColor, System::Drawing::Color backgroundColor)
System::Drawing::Color get_BackgroundColor() const
Definition FillObjects.h:141
SolidFill(System::SharedPtr< GraphicFieldContent > ownerGraphicContent, System::Drawing::Color color, double opacity)
double get_Opacity() const
System::Drawing::Color get_Color() const
Definition FillObjects.h:51
System::Drawing::Color get_Color() const
uint32_t get_Offset() const
StopPoint(System::Drawing::Color color, uint32_t offset, double opacity)
double get_Opacity() const
Represents a color. This type should be allocated on stack and passed to functions by value or by ref...
Definition color.h:24
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition object.h:65
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition smart_ptr.h:180
FillTypes
Definition FillObjects.h:36
Definition Document.h:13
class ASPOSECPP_SHARED_CLASS List
Definition ienumerable.h:17
Definition Document.h:55