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
cfwl_picturebox.h
Go to the documentation of this file.
1// Copyright 2014 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_FWL_CFWL_PICTUREBOX_H_
8#define XFA_FWL_CFWL_PICTUREBOX_H_
9
10#include "xfa/fwl/cfwl_widget.h"
11
12namespace pdfium {
13
14class CFWL_PictureBox final : public CFWL_Widget {
15 public:
17 ~CFWL_PictureBox() override;
18
19 // CFWL_Widget
20 FWL_Type GetClassID() const override;
21 void Update() override;
22 void DrawWidget(CFGAS_GEGraphics* pGraphics,
23 const CFX_Matrix& matrix) override;
24 void OnDrawWidget(CFGAS_GEGraphics* pGraphics,
25 const CFX_Matrix& matrix) override;
26
27 private:
28 explicit CFWL_PictureBox(CFWL_App* pApp);
29
30 CFX_RectF m_ClientRect;
31 CFX_RectF m_ImageRect;
32 CFX_Matrix m_matrix;
33};
34
35} // namespace pdfium
36
37// TODO(crbug.com/42271761): Remove.
38using pdfium::CFWL_PictureBox;
39
40#endif // XFA_FWL_CFWL_PICTUREBOX_H_
void DrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
FWL_Type GetClassID() const override
void OnDrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
bool HasBorder() const
CFWL_Widget(CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
void DrawBorder(CFGAS_GEGraphics *pGraphics, CFWL_ThemePart::Part iPartBorder, const CFX_Matrix &pMatrix)
virtual CFX_RectF GetClientRect()
bool IsLocked() const
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32