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
cbc_qrcode.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 FXBARCODE_CBC_QRCODE_H_
8#define FXBARCODE_CBC_QRCODE_H_
9
10#include "core/fxcrt/widestring.h"
11#include "fxbarcode/cbc_codebase.h"
12
13class CBC_QRCodeWriter;
14class CFX_Matrix;
16
17class CBC_QRCode final : public CBC_CodeBase {
18 public:
19 CBC_QRCode();
20 ~CBC_QRCode() override;
21
22 // CBC_CodeBase:
23 bool Encode(WideStringView contents) override;
24 bool RenderDevice(CFX_RenderDevice* device,
25 const CFX_Matrix& matrix) override;
26 BC_TYPE GetType() override;
27
28 private:
29 CBC_QRCodeWriter* GetQRCodeWriter();
30};
31
32#endif // FXBARCODE_CBC_QRCODE_H_
BC_TYPE
Definition BC_Library.h:25
~CBC_QRCode() override
bool Encode(WideStringView contents) override
BC_TYPE GetType() override
bool RenderDevice(CFX_RenderDevice *device, const CFX_Matrix &matrix) override
bool RenderResult(pdfium::span< const uint8_t > code, int32_t codeWidth, int32_t codeHeight)
void RenderDeviceResult(CFX_RenderDevice *device, const CFX_Matrix &matrix)