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_pushbuttontp.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_THEME_CFWL_PUSHBUTTONTP_H_
8#define XFA_FWL_THEME_CFWL_PUSHBUTTONTP_H_
9
10#include <memory>
11
12#include "fxjs/gc/heap.h"
13#include "xfa/fwl/cfwl_themepart.h"
14#include "xfa/fwl/theme/cfwl_widgettp.h"
15
16class CFWL_PushButtonTP final : public CFWL_WidgetTP {
17 public:
19 ~CFWL_PushButtonTP() override;
20
21 // CFWL_WidgetTP:
22 void DrawBackground(const CFWL_ThemeBackground& pParams) override;
23
24 private:
25 struct PBThemeData {
26 FX_ARGB clrBorder[5];
27 FX_ARGB clrStart[5];
28 FX_ARGB clrEnd[5];
29 FX_ARGB clrFill[5];
30 };
31
32 CFWL_PushButtonTP();
33
34 int32_t GetColorID(Mask<CFWL_PartState> dwStates) const;
35 void SetThemeData();
36
37 std::unique_ptr<PBThemeData> m_pThemeData;
38};
39
40#endif // XFA_FWL_THEME_CFWL_PUSHBUTTONTP_H_
CFWL_PartState
FWLTHEME_DIRECTION
Definition cfwl_utils.h:17
FWLTHEME_STATE
Definition cfwl_utils.h:15
void DrawBackground(const CFWL_ThemeBackground &pParams) override
~CFWL_BarcodeTP() override
void DrawBackground(const CFWL_ThemeBackground &pParams) override
~CFWL_CaretTP() override
void DrawBackground(const CFWL_ThemeBackground &pParams) override
void DrawText(const CFWL_ThemeText &pParams) override
~CFWL_CheckBoxTP() override
void DrawBackground(const CFWL_ThemeBackground &pParams) override
~CFWL_ComboBoxTP() override
~CFWL_DateTimePickerTP() override
void DrawBackground(const CFWL_ThemeBackground &pParams) override
void DrawBackground(const CFWL_ThemeBackground &pParams) override
~CFWL_EditTP() override
~CFWL_ListBoxTP() override
void DrawBackground(const CFWL_ThemeBackground &pParams) override
void DrawBackground(const CFWL_ThemeBackground &pParams) override
~CFWL_MonthCalendarTP() override
void DrawText(const CFWL_ThemeText &pParams) override
~CFWL_PictureBoxTP() override
void DrawBackground(const CFWL_ThemeBackground &pParams) override
void DrawBackground(const CFWL_ThemeBackground &pParams) override
~CFWL_PushButtonTP() override
std::unique_ptr< CFDE_TextOut > m_pTextOut
void Trace(cppgc::Visitor *visitor) const
void InitializeArrowColorData()
void EnsureTTOInitialized(IFWL_ThemeProvider *pProvider)
void DrawBorder(CFGAS_GEGraphics *pGraphics, const CFX_RectF &rect, const CFX_Matrix &matrix)
void FillBackground(CFGAS_GEGraphics *pGraphics, const CFX_RectF &rect, const CFX_Matrix &matrix)
virtual void DrawBackground(const CFWL_ThemeBackground &pParams)
void DrawArrow(CFGAS_GEGraphics *pGraphics, const CFX_RectF &rect, FWLTHEME_DIRECTION eDict, FX_ARGB argSign, const CFX_Matrix &matrix)
std::unique_ptr< CColorData > m_pColorData
virtual ~CFWL_WidgetTP()
void DrawFocus(CFGAS_GEGraphics *pGraphics, const CFX_RectF &rect, const CFX_Matrix &matrix)
void DrawBtn(CFGAS_GEGraphics *pGraphics, const CFX_RectF &rect, FWLTHEME_STATE eState, const CFX_Matrix &matrix)
void DrawArrowBtn(CFGAS_GEGraphics *pGraphics, const CFX_RectF &rect, FWLTHEME_DIRECTION eDict, FWLTHEME_STATE eState, const CFX_Matrix &matrix)
virtual void DrawText(const CFWL_ThemeText &pParams)
void FillSolidRect(CFGAS_GEGraphics *pGraphics, FX_ARGB fillColor, const CFX_RectF &rect, const CFX_Matrix &matrix)
virtual FWL_Type GetClassID() const =0
CFWL_WidgetTP * GetTheme(const CFWL_Widget *pWidget) const
IFWL_ThemeProvider(cppgc::Heap *pHeap)
virtual ~IFWL_ThemeProvider()
void Trace(cppgc::Visitor *visitor) const override
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32
Definition heap.h:12