CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
brush.h
1
2#ifndef _aspose_system_drawing_brush_h_
3#define _aspose_system_drawing_brush_h_
4
5#include "system/object.h"
6#include "drawing2d/wrap_mode.h"
7#include "drawing2d/matrix.h"
8
10ASPOSECPP_3RD_PARTY_CLASS(SkPaint);
11
12namespace System { namespace Drawing {
17class ASPOSECPP_SHARED_CLASS Brush : public Object
18{
20 RTTI_INFO(System::Drawing::Brush, ::System::BaseTypesInfo<System::Object>)
21
22public:
25 virtual ASPOSECPP_SHARED_API SharedPtr<Brush> Clone() = 0;
27 void Dispose() { };
28
29protected:
30 friend class Graphics;
31 friend class Pen;
36 virtual ASPOSECPP_SHARED_API void Apply(SkPaint &paint, const SharedPtr<Drawing2D::Matrix>& matrix, bool apply_shift = false) = 0;
37};
38
39}}
40
41
42#endif
A base class for classes that represent fillers used to fill the interiors of graphical shapes....
Definition: brush.h:18
void Dispose()
Releases operating system resources acquired by the current object.
Definition: brush.h:27
virtual void Apply(SkPaint &paint, const SharedPtr< Drawing2D::Matrix > &matrix, bool apply_shift=false)=0
Sets the properties of the current brush on the specified SkPaint object.
virtual SharedPtr< Brush > Clone()=0
RTTI information.
Represents a drawing surface. Objects of this class should only be allocated using System::MakeObject...
Definition: graphics.h:68
Represents properties such as color, width etc. of the lines and curves being drawn....
Definition: pen.h:48
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
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