CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
adjustable_arrow_cap.h
1
2#pragma once
3
4#include "fwd.h"
5
6#include "drawing/drawing2d/custom_line_cap.h"
7
8namespace System { namespace Drawing { namespace Drawing2D {
9
14class ASPOSECPP_SHARED_CLASS AdjustableArrowCap: public CustomLineCap
15{
16 RTTI_INFO(System::Drawing::Drawing2D::AdjustableArrowCap, ::System::BaseTypesInfo<System::Drawing::Drawing2D::CustomLineCap>)
17
18public:
23 ASPOSECPP_SHARED_API AdjustableArrowCap(float width, float height, bool is_filled = true);
24
26 ASPOSECPP_SHARED_API float get_Width() const;
29 ASPOSECPP_SHARED_API void set_Width(float value);
30
32 ASPOSECPP_SHARED_API float get_Height() const;
35 ASPOSECPP_SHARED_API void set_Height(float value);
36
39 ASPOSECPP_SHARED_API bool get_Filled() const;
42 ASPOSECPP_SHARED_API void set_Filled(bool value);
43
46 ASPOSECPP_SHARED_API float get_MiddleInset() const;
49 ASPOSECPP_SHARED_API void set_MiddleInset(float value);
50
51private:
52 float m_width;
53 float m_height;
54 float m_inset;
55
56 void Init();
57 float GetInternalInset() const;
58 static SharedPtr<GraphicsPath> MakeGraphicsPath(float width, float height, float inset, bool is_filled);
59
60};
61
62}}}
Represents an adjustable arrow-shaped line cap. Objects of this class should only be allocated using ...
Definition: adjustable_arrow_cap.h:15
bool get_Filled() const
Returns a value that indicates if the arrow represented by the current object is filled.
float get_Height() const
Returns the height of the arrow represented by the current object.
float get_MiddleInset() const
Sets the distance between the line and the cap represented by the current object.
void set_Width(float value)
Sets the width of the arrow represented by the current object.
void set_Filled(bool value)
Sets a value that specifies if the arrow represented by the current object is filled.
float get_Width() const
Returns the width of the arrow represented by the current object.
AdjustableArrowCap(float width, float height, bool is_filled=true)
Constructs a new instance of AdjustableArrowCap with the specified width and height.
void set_Height(float value)
Sets the height of the arrow represented by the current object.
void set_MiddleInset(float value)
Sets the distance between the line and the cap represented by the current object.
Represents a user-defined line cap. Objects of this class should only be allocated using System::Make...
Definition: custom_line_cap.h:40
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