PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
gstate.h
1// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3#ifndef PDFSDK_CXX_PDF_GSTATE_H_INCLUDED_
4#define PDFSDK_CXX_PDF_GSTATE_H_INCLUDED_
5
7#include <pdfsdk/cxx/math.h>
8
9#include "forward_declarations.h"
10#include "wrapper_base.h"
11
12namespace PDF {
13
19class GState : public detail::RefCountedHandle<PDEGState> {
20public:
25 static GState New();
26
31 GState Copy() const;
32
38
43 void SetFillColor(const Color& color);
44
49 void SetFillColorValue(PDColorValue colorValue);
50
56
61 void SetStrokeColor(const Color& color);
62
67 void SetStrokeColorValue(PDColorValue colorValue);
68
73 float GetLineWidth() const;
74
79 void SetLineWidth(float lineWidth);
80
85 PDELineCap GetLineCap() const;
86
91 void SetLineCap(PDELineCap lineCap);
92
97 PDELineJoin GetLineJoin() const;
98
103 void SetLineJoin(PDELineJoin lineJoin);
104
109 float GetMiterLimit() const;
110
115 void SetMiterLimit(float miterLimit);
116
122
127 void SetDash(const PDEDash& dash);
128
133 PDERenderingIntent GetIntent() const;
134
139 void SetIntent(PDERenderingIntent intent);
140
146
151 void SetStrokeAdjustment(bool adjustStrokes);
152
157 PDEBlendMode GetBlendMode() const;
158
163 void SetBlendMode(PDEBlendMode blendMode);
164
170
175 void SetSoftMask(const SoftMask& softMask);
176
182
187 void SetSoftMaskMatrix(const Matrix& softMaskMatrix);
188
193 float GetFillAlpha() const;
194
199 void SetFillAlpha(float fillAlpha);
200
205 float GetStrokeAlpha() const;
206
211 void SetStrokeAlpha(float strokeAlpha);
212
217 bool GetAlphaIsShape() const;
218
223 void SetAlphaIsShape(bool alphaIsShape);
224
229 bool GetFillOverprint() const;
230
235 void SetFillOverprint(bool fillOverprint);
236
241 bool GetStrokeOverprint() const;
242
247 void SetStrokeOverprint(bool strokeOverprint);
248
253 int GetOverprintMode() const;
254
259 void SetOverprintMode(int overprintMode);
260
265 float GetFlatness() const;
266
271 void SetFlatness(float flatness);
272
277 float GetSmoothness() const;
278
283 void SetSmoothness(float smoothness);
284
289 PDEGStateFlags GetFlags() const;
290
291 PDF_CXX_CORE_WRAPPER_DEFINE_MEMBERS_(GState, PDEGState)
292};
293
294} // namespace PDF
295
296#include "gstate_impl.inl"
297
298#endif // PDFSDK_CXX_PDF_GSTATE_H_INCLUDED_
Represents a color in a PDF document.
Definition color.h:20
Represents the graphics state of a PDF document.
Definition gstate.h:19
void SetFillColor(const Color &color)
SoftMask GetSoftMask() const
void SetSoftMaskMatrix(const Matrix &softMaskMatrix)
bool GetAlphaIsShape() const
void SetStrokeAdjustment(bool adjustStrokes)
void SetSoftMask(const SoftMask &softMask)
void SetStrokeColor(const Color &color)
Color GetFillColor() const
PDERenderingIntent GetIntent() const
void SetOverprintMode(int overprintMode)
Matrix GetSoftMaskMatrix() const
PDELineJoin GetLineJoin() const
bool GetStrokeOverprint() const
void SetFillColorValue(PDColorValue colorValue)
Color GetStrokeColor() const
void SetLineCap(PDELineCap lineCap)
float GetStrokeAlpha() const
void SetSmoothness(float smoothness)
void SetIntent(PDERenderingIntent intent)
bool GetStrokeAdjustment() const
int GetOverprintMode() const
void SetMiterLimit(float miterLimit)
void SetBlendMode(PDEBlendMode blendMode)
void SetAlphaIsShape(bool alphaIsShape)
PDEBlendMode GetBlendMode() const
float GetMiterLimit() const
void SetDash(const PDEDash &dash)
float GetFillAlpha() const
void SetLineJoin(PDELineJoin lineJoin)
float GetLineWidth() const
PDEGStateFlags GetFlags() const
void SetLineWidth(float lineWidth)
float GetSmoothness() const
void SetStrokeColorValue(PDColorValue colorValue)
void SetStrokeAlpha(float strokeAlpha)
void SetStrokeOverprint(bool strokeOverprint)
PDEDash GetDash() const
void SetFillAlpha(float fillAlpha)
float GetFlatness() const
bool GetFillOverprint() const
void SetFlatness(float flatness)
PDELineCap GetLineCap() const
GState Copy() const
static GState New()
void SetFillOverprint(bool fillOverprint)
Represents a soft mask in a PDF document.
Definition soft_mask.h:16
Content API.
Definition content.h:89
Definition math.h:1053