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
17class CFWL_ThemeBackground final : public CFWL_ThemePart {
18 public:
19 FX_STACK_ALLOCATED();
20
22 CFWL_Widget* pWidget,
23 CFGAS_GEGraphics* pGraphics);
25
26 CFGAS_GEGraphics* GetGraphics() const { return m_pGraphics; }
27 const CFGAS_GEPath* GetPath() const { return m_pPath; }
28 void SetPath(const CFGAS_GEPath* pPath) { m_pPath = pPath; }
29
30 private:
31 UnownedPtr<const CFGAS_GEPath> m_pPath;
32 UnownedPtr<CFGAS_GEGraphics> const m_pGraphics;
33};
34
35#endif // XFA_FWL_CFWL_THEMEBACKGROUND_H_
CFWL_PartState
#define FWL_STATE_WGT_Invisible
Definition cfwl_widget.h:43
FWL_Type
Definition cfwl_widget.h:46
FWL_Type GetClassID() const override
void ShowCaret()
void DrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
void OnDrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
void HideCaret()
void OnProcessMessage(CFWL_Message *pMessage) override
void Update() override
void OnTimerFired() override
~CFWL_Caret() override
CFGAS_GEGraphics * GetGraphics() const
const CFGAS_GEPath * GetPath() const
CFWL_ThemeBackground(Part iPart, CFWL_Widget *pWidget, CFGAS_GEGraphics *pGraphics)
void SetPath(const CFGAS_GEPath *pPath)
CFX_RectF m_PartRect
CFX_Matrix m_matrix
CFWL_Widget(CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
virtual void SetStates(uint32_t dwStates)
Properties m_Properties
uint32_t GetStates() const
void RepaintRect(const CFX_RectF &pRect)
virtual CFX_RectF GetWidgetRect()
IFWL_ThemeProvider * GetThemeProvider() const
virtual void RemoveStates(uint32_t dwStates)
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)
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32