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
cfgas_gepattern.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 XFA_FGAS_GRAPHICS_CFGAS_GEPATTERN_H_
8#define XFA_FGAS_GRAPHICS_CFGAS_GEPATTERN_H_
9
10#include "core/fxge/dib/fx_dib.h"
11
12class CFGAS_GEPattern final {
13 public:
14 enum class HatchStyle {
15 Horizontal = 0,
16 Vertical = 1,
19 Cross = 4,
21 };
22
23 CFGAS_GEPattern(HatchStyle hatchStyle, FX_ARGB foreArgb, FX_ARGB backArgb);
25
26 HatchStyle GetHatchStyle() const { return m_hatchStyle; }
27 FX_ARGB GetForeArgb() const { return m_foreArgb; }
28 FX_ARGB GetBackArgb() const { return m_backArgb; }
29
30 private:
31 const HatchStyle m_hatchStyle;
32 const FX_ARGB m_foreArgb;
33 const FX_ARGB m_backArgb;
34};
35
36#endif // XFA_FGAS_GRAPHICS_CFGAS_GEPATTERN_H_
StateRestorer(CFGAS_GEGraphics *graphics)
void FillPath(const CFGAS_GEPath &path, CFX_FillRenderOptions::FillType fill_type, const CFX_Matrix &matrix)
void SetLineDash(float dashPhase, pdfium::span< const float > dashArray)
void SetLineWidth(float lineWidth)
CFX_RenderDevice * GetRenderDevice()
CFGAS_GEGraphics(CFX_RenderDevice *renderDevice)
void SetClipRect(const CFX_RectF &rect)
void SetStrokeColor(const CFGAS_GEColor &color)
void ConcatMatrix(const CFX_Matrix &matrix)
const CFX_Matrix * GetMatrix() const
CFX_RectF GetClipRect() const
void SetLineCap(CFX_GraphStateData::LineCap lineCap)
void SetFillColor(const CFGAS_GEColor &color)
void StrokePath(const CFGAS_GEPath &path, const CFX_Matrix &matrix)
const CFX_Path & GetPath() const
CFGAS_GEPattern(HatchStyle hatchStyle, FX_ARGB foreArgb, FX_ARGB backArgb)
FX_ARGB GetForeArgb() const
FX_ARGB GetBackArgb() const
HatchStyle GetHatchStyle() const
bool Attach(RetainPtr< CFX_DIBitmap > pBitmap)
FX_RECT ToRoundedFxRect() const
CFX_FloatRect TransformRect(const CFX_FloatRect &rect) const
CFX_Matrix(float a1, float b1, float c1, float d1, float e1, float f1)
bool IsIdentity() const
void Concat(const CFX_Matrix &right)
CFX_Matrix()=default
CFX_FloatRect GetBoundingBox() const
Definition cfx_path.cpp:322
constexpr CFX_RectF(float dst_left, float dst_top, float dst_width, float dst_height)
FXDIB_Format
Definition fx_dib.h:19
#define CHECK(cvref)
constexpr CFX_FillRenderOptions(FillType fill_type)
int Height() const
int32_t bottom
int32_t right
int Width() const
int32_t top
int32_t left