ReactOS 0.4.15-dev-7834-g00c4b3d
CustomLineCap Class Reference

#include <gdiplusheaders.h>

Inheritance diagram for CustomLineCap:
Collaboration diagram for CustomLineCap:

Public Member Functions

 CustomLineCap (const GraphicsPath *fillPath, const GraphicsPath *strokePath, LineCap baseCap, REAL baseInset=0)
 
 ~CustomLineCap ()
 
CustomLineCapClone ()
 
LineCap GetBaseCap ()
 
REAL GetBaseInset ()
 
Status GetLastStatus ()
 
Status GetStrokeCaps (LineCap *startCap, LineCap *endCap)
 
LineJoin GetStrokeJoin ()
 
REAL GetWidthScale ()
 
Status SetBaseCap (LineCap baseCap)
 
Status SetBaseInset (REAL inset)
 
Status SetStrokeCap (LineCap strokeCap)
 
Status SetStrokeCaps (LineCap startCap, LineCap endCap)
 
Status SetStrokeJoin (LineJoin lineJoin)
 
Status SetWidthScale (IN REAL widthScale)
 
- Public Member Functions inherited from GdiplusBase
void operator delete (void *in_pVoid)
 
void operator delete[] (void *in_pVoid)
 
voidoperator new (size_t in_size)
 
voidoperator new[] (size_t in_size)
 

Protected Member Functions

 CustomLineCap ()
 
 CustomLineCap (GpCustomLineCap *cap, Status status)
 
void SetNativeCap (GpCustomLineCap *cap)
 
Status SetStatus (Status status) const
 

Protected Attributes

GpCustomLineCapnativeCap
 
Status lastStatus
 

Private Member Functions

 CustomLineCap (const CustomLineCap &)
 
CustomLineCapoperator= (const CustomLineCap &)
 

Friends

GpCustomLineCap *& getNat (const CustomLineCap *cap)
 

Detailed Description

Definition at line 1395 of file gdiplusheaders.h.

Constructor & Destructor Documentation

◆ CustomLineCap() [1/4]

CustomLineCap::CustomLineCap ( const GraphicsPath fillPath,
const GraphicsPath strokePath,
LineCap  baseCap,
REAL  baseInset = 0 
)
inline

Definition at line 22 of file gdipluslinecaps.h.

28{
30 GpPath *nativeFillPath = fillPath ? getNat(fillPath) : NULL;
31 GpPath *nativeStrokePath = strokePath ? getNat(strokePath) : NULL;
32 lastStatus = DllExports::GdipCreateCustomLineCap(nativeFillPath, nativeStrokePath, baseCap, baseInset, &nativeCap);
33}
GpCustomLineCap * nativeCap
friend GpCustomLineCap *& getNat(const CustomLineCap *cap)
#define NULL
Definition: types.h:112

◆ ~CustomLineCap()

CustomLineCap::~CustomLineCap ( )
inline

Definition at line 35 of file gdipluslinecaps.h.

36{
37 DllExports::GdipDeleteCustomLineCap(nativeCap);
38}

◆ CustomLineCap() [2/4]

CustomLineCap::CustomLineCap ( )
inlineprotected

Definition at line 1445 of file gdiplusheaders.h.

1446 {
1447 }
@ Ok
Definition: gdiplustypes.h:26

Referenced by Clone().

◆ CustomLineCap() [3/4]

CustomLineCap::CustomLineCap ( GpCustomLineCap cap,
Status  status 
)
inlineprotected

Definition at line 1449 of file gdiplusheaders.h.

1450 {
1451 }
GLenum cap
Definition: glext.h:9639
Definition: ps.c:97

◆ CustomLineCap() [4/4]

CustomLineCap::CustomLineCap ( const CustomLineCap )
private

Member Function Documentation

◆ Clone()

CustomLineCap * CustomLineCap::Clone ( )
inline

Definition at line 41 of file gdipluslinecaps.h.

42{
44 SetStatus(DllExports::GdipCloneCustomLineCap(nativeCap, &cap));
45 if (lastStatus != Ok)
46 return NULL;
47
48 CustomLineCap *newLineCap = new CustomLineCap(cap, lastStatus);
49 if (newLineCap == NULL)
50 {
51 SetStatus(DllExports::GdipDeleteCustomLineCap(cap));
52 }
53
54 return newLineCap;
55}
Status SetStatus(Status status) const

◆ GetBaseCap()

LineCap CustomLineCap::GetBaseCap ( )
inline

Definition at line 58 of file gdipluslinecaps.h.

59{
60 LineCap baseCap;
61 SetStatus(DllExports::GdipGetCustomLineCapBaseCap(nativeCap, &baseCap));
62 return baseCap;
63}
LineCap
Definition: gdiplusenums.h:60

◆ GetBaseInset()

REAL CustomLineCap::GetBaseInset ( )
inline

Definition at line 66 of file gdipluslinecaps.h.

67{
68 REAL inset;
69 SetStatus(DllExports::GdipGetCustomLineCapBaseInset(nativeCap, &inset));
70 return inset;
71}
float REAL
Definition: types.h:41

◆ GetLastStatus()

Status CustomLineCap::GetLastStatus ( )
inline

Definition at line 74 of file gdipluslinecaps.h.

75{
76 return lastStatus;
77}

◆ GetStrokeCaps()

Status CustomLineCap::GetStrokeCaps ( LineCap startCap,
LineCap endCap 
)
inline

Definition at line 80 of file gdipluslinecaps.h.

81{
82#if 1
84#else
85 return SetStatus(DllExports::GdipGetCustomLineCapStrokeCaps(nativeCap, startCap, endCap));
86#endif
87}
@ NotImplemented
Definition: gdiplustypes.h:32

◆ GetStrokeJoin()

LineJoin CustomLineCap::GetStrokeJoin ( )
inline

Definition at line 90 of file gdipluslinecaps.h.

91{
92 LineJoin lineJoin;
93 SetStatus(DllExports::GdipGetCustomLineCapStrokeJoin(nativeCap, &lineJoin));
94 return lineJoin;
95}
LineJoin
Definition: gdiplusenums.h:105

◆ GetWidthScale()

REAL CustomLineCap::GetWidthScale ( )
inline

Definition at line 98 of file gdipluslinecaps.h.

99{
100 REAL widthScale;
101 SetStatus(DllExports::GdipGetCustomLineCapWidthScale(nativeCap, &widthScale));
102 return widthScale;
103}

◆ operator=()

CustomLineCap & CustomLineCap::operator= ( const CustomLineCap )
private

◆ SetBaseCap()

Status CustomLineCap::SetBaseCap ( LineCap  baseCap)
inline

Definition at line 106 of file gdipluslinecaps.h.

107{
108 return SetStatus(DllExports::GdipSetCustomLineCapBaseCap(nativeCap, baseCap));
109}

◆ SetBaseInset()

Status CustomLineCap::SetBaseInset ( REAL  inset)
inline

Definition at line 112 of file gdipluslinecaps.h.

113{
114 return SetStatus(DllExports::GdipSetCustomLineCapBaseInset(nativeCap, inset));
115}

◆ SetNativeCap()

void CustomLineCap::SetNativeCap ( GpCustomLineCap cap)
inlineprotected

Definition at line 1454 of file gdiplusheaders.h.

1455 {
1456 nativeCap = cap;
1457 }
#define cap
Definition: glfuncs.h:226

Referenced by AdjustableArrowCap::AdjustableArrowCap().

◆ SetStatus()

◆ SetStrokeCap()

Status CustomLineCap::SetStrokeCap ( LineCap  strokeCap)
inline

Definition at line 118 of file gdipluslinecaps.h.

119{
120 return SetStrokeCaps(strokeCap, strokeCap);
121}
Status SetStrokeCaps(LineCap startCap, LineCap endCap)

◆ SetStrokeCaps()

Status CustomLineCap::SetStrokeCaps ( LineCap  startCap,
LineCap  endCap 
)
inline

Definition at line 124 of file gdipluslinecaps.h.

125{
126 return SetStatus(DllExports::GdipSetCustomLineCapStrokeCaps(nativeCap, startCap, endCap));
127}

Referenced by SetStrokeCap().

◆ SetStrokeJoin()

Status CustomLineCap::SetStrokeJoin ( LineJoin  lineJoin)
inline

Definition at line 130 of file gdipluslinecaps.h.

131{
132 return SetStatus(DllExports::GdipSetCustomLineCapStrokeJoin(nativeCap, lineJoin));
133}

◆ SetWidthScale()

Status CustomLineCap::SetWidthScale ( IN REAL  widthScale)
inline

Definition at line 136 of file gdipluslinecaps.h.

137{
138 return SetStatus(DllExports::GdipSetCustomLineCapWidthScale(nativeCap, widthScale));
139}

Friends And Related Function Documentation

◆ getNat

GpCustomLineCap *& getNat ( const CustomLineCap cap)
friend

Definition at line 1475 of file gdiplusheaders.h.

1476 {
1477 return const_cast<CustomLineCap *>(cap)->nativeCap;
1478 }

Referenced by CustomLineCap().

Member Data Documentation

◆ lastStatus

Status CustomLineCap::lastStatus
mutableprotected

◆ nativeCap


The documentation for this class was generated from the following files: