ReactOS  0.4.15-dev-309-g7c8d563
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.

27  : nativeCap(NULL)
28 {
29  nativeCap = NULL;
30  GpPath *nativeFillPath = fillPath ? getNat(fillPath) : NULL;
31  GpPath *nativeStrokePath = strokePath ? getNat(strokePath) : NULL;
32  lastStatus = DllExports::GdipCreateCustomLineCap(nativeFillPath, nativeStrokePath, baseCap, baseInset, &nativeCap);
33 }
GpStatus WINGDIPAPI GdipCreateCustomLineCap(GpPath *fillPath, GpPath *strokePath, GpLineCap baseCap, REAL baseInset, GpCustomLineCap **customCap)
smooth NULL
Definition: ftsmooth.c:416
friend GpCustomLineCap *& getNat(const CustomLineCap *cap)
GpCustomLineCap * nativeCap

◆ ~CustomLineCap()

CustomLineCap::~CustomLineCap ( )
inline

Definition at line 35 of file gdipluslinecaps.h.

36 {
38 }
GpStatus WINGDIPAPI GdipDeleteCustomLineCap(GpCustomLineCap *customCap)
GpCustomLineCap * nativeCap

◆ CustomLineCap() [2/4]

CustomLineCap::CustomLineCap ( )
inlineprotected

Definition at line 1445 of file gdiplusheaders.h.

1446  {
1447  }
smooth NULL
Definition: ftsmooth.c:416
GpCustomLineCap * nativeCap

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
GpCustomLineCap * nativeCap
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 {
45  if (lastStatus != Ok)
46  return NULL;
47 
48  CustomLineCap *newLineCap = new CustomLineCap(cap, lastStatus);
49  if (newLineCap == NULL)
50  {
52  }
53 
54  return newLineCap;
55 }
Status SetStatus(Status status) const
GpStatus WINGDIPAPI GdipDeleteCustomLineCap(GpCustomLineCap *customCap)
GLenum cap
Definition: glext.h:9639
smooth NULL
Definition: ftsmooth.c:416
GpStatus WINGDIPAPI GdipCloneCustomLineCap(GpCustomLineCap *from, GpCustomLineCap **to)
Definition: customlinecap.c:34
GpCustomLineCap * nativeCap

◆ GetBaseCap()

LineCap CustomLineCap::GetBaseCap ( )
inline

Definition at line 58 of file gdipluslinecaps.h.

59 {
60  LineCap baseCap;
62  return baseCap;
63 }
Status SetStatus(Status status) const
LineCap
Definition: gdiplusenums.h:59
GpCustomLineCap * nativeCap
GpStatus WINGDIPAPI GdipGetCustomLineCapBaseCap(GpCustomLineCap *customCap, GpLineCap *baseCap)

◆ GetBaseInset()

REAL CustomLineCap::GetBaseInset ( )
inline

Definition at line 66 of file gdipluslinecaps.h.

67 {
68  REAL inset;
70  return inset;
71 }
GpStatus WINGDIPAPI GdipGetCustomLineCapBaseInset(GpCustomLineCap *custom, REAL *inset)
Status SetStatus(Status status) const
GpCustomLineCap * nativeCap
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
83  return SetStatus(NotImplemented);
84 #else
85  return SetStatus(DllExports::GdipGetCustomLineCapStrokeCaps(nativeCap, startCap, endCap));
86 #endif
87 }
Status SetStatus(Status status) const
GpCustomLineCap * nativeCap

◆ GetStrokeJoin()

LineJoin CustomLineCap::GetStrokeJoin ( )
inline

Definition at line 90 of file gdipluslinecaps.h.

91 {
92  LineJoin lineJoin;
94  return lineJoin;
95 }
Status SetStatus(Status status) const
LineJoin
Definition: gdiplusenums.h:104
GpCustomLineCap * nativeCap
GpStatus WINGDIPAPI GdipGetCustomLineCapStrokeJoin(GpCustomLineCap *customCap, GpLineJoin *lineJoin)

◆ GetWidthScale()

REAL CustomLineCap::GetWidthScale ( )
inline

Definition at line 98 of file gdipluslinecaps.h.

99 {
100  REAL widthScale;
102  return widthScale;
103 }
GpStatus WINGDIPAPI GdipGetCustomLineCapWidthScale(GpCustomLineCap *custom, REAL *widthScale)
Status SetStatus(Status status) const
GpCustomLineCap * nativeCap
float REAL
Definition: types.h:41

◆ operator=()

◆ SetBaseCap()

Status CustomLineCap::SetBaseCap ( LineCap  baseCap)
inline

Definition at line 106 of file gdipluslinecaps.h.

107 {
109 }
GpStatus WINGDIPAPI GdipSetCustomLineCapBaseCap(GpCustomLineCap *custom, GpLineCap base)
Status SetStatus(Status status) const
GpCustomLineCap * nativeCap

◆ SetBaseInset()

Status CustomLineCap::SetBaseInset ( REAL  inset)
inline

Definition at line 112 of file gdipluslinecaps.h.

113 {
115 }
Status SetStatus(Status status) const
GpCustomLineCap * nativeCap
GpStatus WINGDIPAPI GdipSetCustomLineCapBaseInset(GpCustomLineCap *custom, REAL inset)

◆ 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
GpCustomLineCap * nativeCap

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 {
127 }
GpStatus WINGDIPAPI GdipSetCustomLineCapStrokeCaps(GpCustomLineCap *custom, GpLineCap start, GpLineCap end)
Status SetStatus(Status status) const
GpCustomLineCap * nativeCap

Referenced by SetStrokeCap().

◆ SetStrokeJoin()

Status CustomLineCap::SetStrokeJoin ( LineJoin  lineJoin)
inline

Definition at line 130 of file gdipluslinecaps.h.

131 {
133 }
Status SetStatus(Status status) const
GpCustomLineCap * nativeCap
GpStatus WINGDIPAPI GdipSetCustomLineCapStrokeJoin(GpCustomLineCap *custom, GpLineJoin join)

◆ SetWidthScale()

Status CustomLineCap::SetWidthScale ( IN REAL  widthScale)
inline

Definition at line 136 of file gdipluslinecaps.h.

137 {
139 }
Status SetStatus(Status status) const
GpStatus WINGDIPAPI GdipSetCustomLineCapWidthScale(GpCustomLineCap *custom, REAL width)
GpCustomLineCap * nativeCap

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  }
GLenum cap
Definition: glext.h:9639

Referenced by CustomLineCap().

Member Data Documentation

◆ lastStatus

Status CustomLineCap::lastStatus
mutableprotected

◆ nativeCap


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