PDF SDK Documentation

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

Loading...
Searching...
No Matches
pattern.h
1// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3#ifndef PDFSDK_CXX_PDF_PATTERN_H_INCLUDED_
4#define PDFSDK_CXX_PDF_PATTERN_H_INCLUDED_
5
7#include <pdfsdk/cxx/math.h>
8
9#include "wrapper_base.h"
10
11namespace PDF {
12
18class Pattern : public detail::RefCountedHandle<PDEPattern> {
19public:
25 static Pattern CreateFromPdfObject(const Object& object);
26
32
37 PDEPatternType GetPatternType() const;
38
44
49 void SetMatrix(const Matrix& matrix);
50
55 PDETilingPatternPaintType GetTilingPaintType() const;
56
61 void SetTilingPaintType(PDETilingPatternPaintType paintType);
62
67 PDETilingPatternTilingType GetTilingType() const;
68
73 void SetTilingType(PDETilingPatternTilingType tilingType);
74
80
85 void SetTilingBBox(const PDRectF& bbox);
86
91 float GetTilingXStep() const;
92
97 void SetTilingXStep(float xstep);
98
103 float GetTilingYStep() const;
104
109 void SetTilingYStep(float ystep);
110
116
122
127 void SetShading(const Shading& shading);
128
134
139 void SetShadingExtGState(const GState& extGState);
140
141 PDF_CXX_CORE_WRAPPER_DEFINE_MEMBERS_(Pattern, PDEPattern)
142};
143
144} // namespace PDF
145
146#include "pattern_impl.inl"
147
148#endif // PDFSDK_CXX_PDF_PATTERN_H_INCLUDED_
Represents the content of a PDF page.
Definition content.h:20
Represents the graphics state of a PDF document.
Definition gstate.h:19
Represents a PDF object.
Definition object.h:20
Represents a shading or tiling pattern in a PDF document.
Definition pattern.h:18
PDEPatternType GetPatternType() const
Gets the type of the pattern.
PDETilingPatternTilingType GetTilingType() const
Gets the tiling type of the tiling pattern.
Object GetPdfObject() const
float GetTilingYStep() const
Gets the vertical step of the tiling pattern.
void SetMatrix(const Matrix &matrix)
Sets the transformation matrix of the pattern.
void SetTilingYStep(float ystep)
Sets the vertical step of the tiling pattern.
void SetShadingExtGState(const GState &extGState)
Sets the extended graphics state of the shading.
Content GetTilingContent() const
Gets the content of the tiling pattern.
PDRectF GetTilingBBox() const
Gets the bounding box of the tiling pattern.
void SetTilingPaintType(PDETilingPatternPaintType paintType)
Sets the paint type of the tiling pattern.
void SetTilingXStep(float xstep)
Sets the horizontal step of the tiling pattern.
static Pattern CreateFromPdfObject(const Object &object)
float GetTilingXStep() const
Gets the horizontal step of the tiling pattern.
void SetTilingType(PDETilingPatternTilingType tilingType)
Sets the tiling type of the tiling pattern.
Matrix GetMatrix() const
Gets the transformation matrix of the pattern.
PDETilingPatternPaintType GetTilingPaintType() const
Gets the paint type of the tiling pattern.
Shading GetShading() const
Gets the shading of the pattern.
void SetShading(const Shading &shading)
Sets the shading of the pattern.
void SetTilingBBox(const PDRectF &bbox)
Sets the bounding box of the tiling pattern.
GState GetShadingExtGState() const
Gets the extended graphics state of the shading.
Represents a shading in a PDF document.
Definition shading.h:17
Content API.
Definition math.h:1053
Definition math_types.h:30