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_themebackground.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_FWL_CFWL_THEMEBACKGROUND_H_
8#define XFA_FWL_CFWL_THEMEBACKGROUND_H_
9
10#include "core/fxcrt/fx_memory.h"
11#include "core/fxcrt/unowned_ptr.h"
12#include "xfa/fwl/cfwl_themepart.h"
13
15class CFGAS_GEPath;
16
17namespace pdfium {
18
19class CFWL_ThemeBackground final : public CFWL_ThemePart {
20 public:
21 FX_STACK_ALLOCATED();
22
24 CFWL_Widget* pWidget,
25 CFGAS_GEGraphics* pGraphics);
27
28 CFGAS_GEGraphics* GetGraphics() const { return m_pGraphics; }
29 const CFGAS_GEPath* GetPath() const { return m_pPath; }
30 void SetPath(const CFGAS_GEPath* pPath) { m_pPath = pPath; }
31
32 private:
33 UnownedPtr<const CFGAS_GEPath> m_pPath;
34 UnownedPtr<CFGAS_GEGraphics> const m_pGraphics;
35};
36
37} // namespace pdfium
38
39// TODO(crbug.com/42271761): Remove.
40using pdfium::CFWL_ThemeBackground;
41
42#endif // XFA_FWL_CFWL_THEMEBACKGROUND_H_
#define FWL_STATE_WGT_Invisible
Definition cfwl_widget.h:45
CFX_Matrix & operator=(const CFX_Matrix &other)=default
CFX_RectF & operator=(const CFX_RectF &other)=default
constexpr CFX_RectF(float dst_left, float dst_top, float dst_width, float dst_height)
void OnDrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
FWL_Type GetClassID() const override
void OnProcessMessage(CFWL_Message *pMessage) override
void DrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
~CFWL_Caret() override
void OnTimerFired() override
void Update() override
CFGAS_GEGraphics * GetGraphics() const
CFWL_ThemeBackground(Part iPart, CFWL_Widget *pWidget, CFGAS_GEGraphics *pGraphics)
const CFGAS_GEPath * GetPath() const
void SetPath(const CFGAS_GEPath *pPath)
virtual CFX_RectF GetWidgetRect()
void RepaintRect(const CFX_RectF &pRect)
virtual void RemoveStates(uint32_t dwStates)
CFWL_Widget(CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
uint32_t GetStates() const
IFWL_ThemeProvider * GetThemeProvider() const
Properties m_Properties
virtual void SetStates(uint32_t dwStates)
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32