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
44
49 std::vector<float> GetFillColorComponents() const;
50
56
61 void SetFillColor(const Color& color);
62
67 void SetFillColorSpace(const ColorSpace& colorSpace);
68
73 void SetFillColorComponents(const std::vector<float>& components);
74
80 void SetFillColorComponents(const std::vector<float>& components, const Pattern& pattern);
81
86 void SetFillColorValue(PDColorValue colorValue);
87
93
99
104 std::vector<float> GetStrokeColorComponents() const;
105
111
116 void SetStrokeColor(const Color& color);
117
122 void SetStrokeColorSpace(const ColorSpace& colorSpace);
123
128 void SetStrokeColorComponents(const std::vector<float>& components);
129
135 void SetStrokeColorComponents(const std::vector<float>& components, const Pattern& pattern);
136
141 void SetStrokeColorValue(PDColorValue colorValue);
142
147 float GetLineWidth() const;
148
153 void SetLineWidth(float lineWidth);
154
160
165 void SetLineCap(PDELineCap lineCap);
166
172
177 void SetLineJoin(PDELineJoin lineJoin);
178
183 float GetMiterLimit() const;
184
189 void SetMiterLimit(float miterLimit);
190
196
201 void SetDash(const PDEDash& dash);
202
208
214
220
225 void SetStrokeAdjustment(bool adjustStrokes);
226
232
237 void SetBlendMode(PDEBlendMode blendMode);
238
244
249 void SetSoftMask(const SoftMask& softMask);
250
256
261 void SetSoftMaskMatrix(const Matrix& softMaskMatrix);
262
267 float GetFillAlpha() const;
268
273 void SetFillAlpha(float fillAlpha);
274
279 float GetStrokeAlpha() const;
280
285 void SetStrokeAlpha(float strokeAlpha);
286
291 bool GetAlphaIsShape() const;
292
297 void SetAlphaIsShape(bool alphaIsShape);
298
303 bool GetFillOverprint() const;
304
309 void SetFillOverprint(bool fillOverprint);
310
315 bool GetStrokeOverprint() const;
316
321 void SetStrokeOverprint(bool strokeOverprint);
322
327 int GetOverprintMode() const;
328
333 void SetOverprintMode(int overprintMode);
334
339 float GetFlatness() const;
340
345 void SetFlatness(float flatness);
346
351 float GetSmoothness() const;
352
357 void SetSmoothness(float smoothness);
358
363 PDEGStateFlags GetChangeFlags() const;
364
365 PDF_CXX_CORE_WRAPPER_DEFINE_MEMBERS_(GState, PDEGState)
366};
367
368} // namespace PDF
369
370#include "gstate_impl.inl"
371
372#endif // PDFSDK_CXX_PDF_GSTATE_H_INCLUDED_
Represents a color in a PDF document.
Definition color.h:20
Represents a color space in a PDF document.
Definition color_space.h:18
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 SetFillColorComponents(const std::vector< float > &components, const Pattern &pattern)
void SetFillColorComponents(const std::vector< float > &components)
Pattern GetFillColorPattern() const
void SetSoftMask(const SoftMask &softMask)
void SetStrokeColor(const Color &color)
Color GetFillColor() const
PDERenderingIntent GetIntent() const
void SetStrokeColorSpace(const ColorSpace &colorSpace)
void SetOverprintMode(int overprintMode)
Matrix GetSoftMaskMatrix() const
PDELineJoin GetLineJoin() const
bool GetStrokeOverprint() const
void SetFillColorSpace(const ColorSpace &colorSpace)
void SetFillColorValue(PDColorValue colorValue)
Color GetStrokeColor() const
void SetLineCap(PDELineCap lineCap)
float GetStrokeAlpha() const
void SetStrokeColorComponents(const std::vector< float > &components, const Pattern &pattern)
Pattern GetStrokeColorPattern() const
void SetSmoothness(float smoothness)
void SetIntent(PDERenderingIntent intent)
bool GetStrokeAdjustment() const
int GetOverprintMode() const
void SetMiterLimit(float miterLimit)
ColorSpace GetFillColorSpace() const
ColorSpace GetStrokeColorSpace() const
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 GetChangeFlags() const
void SetStrokeColorComponents(const std::vector< float > &components)
void SetLineWidth(float lineWidth)
float GetSmoothness() const
void SetStrokeColorValue(PDColorValue colorValue)
void SetStrokeAlpha(float strokeAlpha)
void SetStrokeOverprint(bool strokeOverprint)
std::vector< float > GetFillColorComponents() const
PDEDash GetDash() const
void SetFillAlpha(float fillAlpha)
float GetFlatness() const
bool GetFillOverprint() const
void SetFlatness(float flatness)
PDELineCap GetLineCap() const
GState Copy() const
std::vector< float > GetStrokeColorComponents() const
static GState New()
void SetFillOverprint(bool fillOverprint)
Represents a shading or tiling pattern in a PDF document.
Definition pattern.h:18
Represents a soft mask in a PDF document.
Definition soft_mask.h:16
Content API.
PDERenderingIntent
Specifies the way to reproduce colour on a target device.
Definition content.h:130
PDELineCap
Specifies the style of line cap endings.
Definition content.h:64
PDEBlendMode
Specifies the type of function/mode used to determine how new content interacts with existing content...
Definition content.h:93
PDELineJoin
Specifies the shape to be used when joining corners of paths that are stroked and meet at acute angle...
Definition content.h:76
Definition content.h:149
Definition math.h:1037