Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdf_tilingpattern.h
Go to the documentation of this file.
1// Copyright 2016 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef CORE_FPDFAPI_PAGE_CPDF_TILINGPATTERN_H_
8#define CORE_FPDFAPI_PAGE_CPDF_TILINGPATTERN_H_
9
10#include <memory>
11
12#include "core/fpdfapi/page/cpdf_pattern.h"
13#include "core/fxcrt/fx_coordinates.h"
14#include "core/fxcrt/retain_ptr.h"
15
16class CPDF_Document;
17class CPDF_Form;
18class CPDF_Object;
19class CPDF_PageObject;
20
21class CPDF_TilingPattern final : public CPDF_Pattern {
22 public:
24 ~CPDF_TilingPattern() override;
25
26 // CPDF_Pattern:
27 CPDF_TilingPattern* AsTilingPattern() override;
28
30
31 bool colored() const { return m_bColored; }
32 const CFX_FloatRect& bbox() const { return m_BBox; }
33 float x_step() const { return m_XStep; }
34 float y_step() const { return m_YStep; }
35
36 private:
37 CPDF_TilingPattern(CPDF_Document* pDoc,
38 RetainPtr<CPDF_Object> pPatternObj,
39 const CFX_Matrix& parentMatrix);
40 CPDF_TilingPattern(const CPDF_TilingPattern&) = delete;
41 CPDF_TilingPattern& operator=(const CPDF_TilingPattern&) = delete;
42
43 bool m_bColored;
44 CFX_FloatRect m_BBox;
45 float m_XStep = 0.0f;
46 float m_YStep = 0.0f;
47};
48
49#endif // CORE_FPDFAPI_PAGE_CPDF_TILINGPATTERN_H_
static RetainPtr< CPDF_ColorSpace > GetStockCS(Family family)
CPDF_Color * GetMutableFillColor()
FX_COLORREF GetStrokeColorRef() const
FX_COLORREF GetFillColorRef() const
void SetFillColor(RetainPtr< CPDF_ColorSpace > colorspace, std::vector< float > values)
void SetStrokeColor(RetainPtr< CPDF_ColorSpace > colorspace, std::vector< float > values)
CPDF_ColorState(const CPDF_ColorState &that)
CPDF_Color * GetMutableStrokeColor()
void SetStrokeColorRef(FX_COLORREF colorref)
void SetFillPattern(RetainPtr< CPDF_Pattern > pattern, pdfium::span< float > values)
const CPDF_Color * GetStrokeColor() const
void SetStrokePattern(RetainPtr< CPDF_Pattern > pattern, pdfium::span< float > values)
const CPDF_Color * GetFillColor() const
bool HasFillColor() const
bool HasStrokeColor() const
void SetFillColorRef(FX_COLORREF colorref)
void SetValueForPattern(RetainPtr< CPDF_Pattern > pattern, pdfium::span< float > values)
bool IsPattern() const
void SetColorSpace(RetainPtr< CPDF_ColorSpace > colorspace)
bool GetRGB(int *R, int *G, int *B) const
bool IsNull() const
Definition cpdf_color.h:31
uint32_t CountComponents() const
std::unique_ptr< CPDF_Form > Load(CPDF_PageObject *pPageObj)
~CPDF_TilingPattern() override
CPDF_TilingPattern * AsTilingPattern() override
const CFX_FloatRect & bbox() const
constexpr uint32_t FXSYS_BGR(uint8_t b, uint8_t g, uint8_t r)
Definition fx_dib.h:69
#define CONSTRUCT_VIA_MAKE_RETAIN
Definition retain_ptr.h:224