CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
blend.h
1
2#pragma once
3
4#include "system/array.h"
5
6namespace System {namespace Drawing { namespace Drawing2D {
7
12class ASPOSECPP_SHARED_CLASS Blend : public Object
13{
14public:
17 {
18 m_factors = MakeObject< Array<float> >(1, .0f);
19 m_positions = MakeObject< Array<float> >(1, .0f);
20 }
21
24 Blend(int count)
25 {
26 m_factors = MakeObject< Array<float> >(count, .0f);
27 m_positions = MakeObject< Array<float> >(count, .0f);
28 }
29
32 {
33 return m_factors;
34 }
35
38 void set_Factors(const ArrayPtr<float>& value)
39 {
40 m_factors = value;
41 }
42
45 {
46 return m_positions;
47 }
48
51 void set_Positions(const ArrayPtr<float>& value)
52 {
53 m_positions = value;
54 }
55
56protected:
61};
62
63}}}
Represents a blend pattern for a LinearGradientBrush object. Objects of this class should only be all...
Definition: blend.h:13
Blend(int count)
Constructs a new instance of Blend class.
Definition: blend.h:24
ArrayPtr< float > m_positions
Blend positions of the gradient.
Definition: blend.h:60
void set_Factors(const ArrayPtr< float > &value)
Sets the array of blend factors of the gradient.
Definition: blend.h:38
Blend()
Constructs a new instance of Blend class.
Definition: blend.h:16
ArrayPtr< float > get_Factors() const
Returns the array of blend factors of the gradient.
Definition: blend.h:31
void set_Positions(const ArrayPtr< float > &value)
Sets the array of blend positions of the gradient.
Definition: blend.h:51
ArrayPtr< float > m_factors
Blend factors of the gradient.
Definition: blend.h:58
ArrayPtr< float > get_Positions() const
Returns the array of blend positions of the gradient.
Definition: blend.h:44
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