CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
solid_brush.h
1
2#ifndef _aspose_system_drawing_solid_brush_h_
3#define _aspose_system_drawing_solid_brush_h_
4
5#include "drawing/brush.h"
6#include "drawing/color.h"
7
8#include <cstdint>
9
10#ifdef ASPOSECPPLIB_BEING_BUILT
11#include "core/SkColor.h"
12#endif
13
15ASPOSECPP_3RD_PARTY_TYPEDEF(SkColor, std::uint32_t);
17ASPOSECPP_3RD_PARTY_CLASS(SkPaint);
18
19
20namespace System { namespace Drawing {
25class ASPOSECPP_SHARED_CLASS SolidBrush: public Brush
26{
27 RTTI_INFO(System::Drawing::SolidBrush, ::System::BaseTypesInfo<System::Drawing::Brush>);
28
29public:
32 ASPOSECPP_SHARED_API SolidBrush(const Color & color);
33
35 ASPOSECPP_SHARED_API Color get_Color() const;
38 ASPOSECPP_SHARED_API void set_Color(Color color);
39
42 virtual ASPOSECPP_SHARED_API SharedPtr<Brush> Clone() override;
43
44protected:
46 ASPOSECPP_SHARED_API SolidBrush();
47 MEMBER_FUNCTION_MAKE_OBJECT(SolidBrush, CODEPORTING_ARGS(), CODEPORTING_ARGS());
48
53 virtual ASPOSECPP_SHARED_API void Apply(SkPaint &paint, const SharedPtr<Drawing2D::Matrix>& matrix, bool apply_shift) override;
54
55private:
57 SkColor m_sk_color;
58};
59
60}}
61
62#endif // _aspose_system_drawing_solid_brush_h_
A base class for classes that represent fillers used to fill the interiors of graphical shapes....
Definition: brush.h:18
Represents a color. This type should be allocated on stack and passed to functions by value or by ref...
Definition: color.h:24
Represents single-color brush. Objects of this class should only be allocated using System::MakeObjec...
Definition: solid_brush.h:26
SolidBrush()
Constructs a new instance of SolidBrush class.
virtual void Apply(SkPaint &paint, const SharedPtr< Drawing2D::Matrix > &matrix, bool apply_shift) override
Sets the properties of the current brush on the specified SkPaint object.
Color get_Color() const
Returns this brush's color.
void set_Color(Color color)
Sets the color of this brush.
SolidBrush(const Color &color)
Constructs a new SolidBrush object and initalizes it with the specified color.
virtual SharedPtr< Brush > Clone() override
Creates a copy of the current object.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: db_command.h:9