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_themetext.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_THEMETEXT_H_
8#define XFA_FWL_CFWL_THEMETEXT_H_
9
10#include "core/fxcrt/fx_memory.h"
11#include "core/fxcrt/unowned_ptr.h"
12#include "core/fxcrt/widestring.h"
13#include "xfa/fde/cfde_data.h"
14#include "xfa/fwl/cfwl_themepart.h"
15
17
18namespace pdfium {
19
20class CFWL_ThemeText final : public CFWL_ThemePart {
21 public:
22 FX_STACK_ALLOCATED();
23
24 CFWL_ThemeText(Part iPart, CFWL_Widget* pWidget, CFGAS_GEGraphics* pGraphics);
26
27 CFGAS_GEGraphics* GetGraphics() const { return m_pGraphics; }
28
32
33 private:
34 UnownedPtr<CFGAS_GEGraphics> const m_pGraphics;
35};
36
37} // namespace pdfium
38
39// TODO(crbug.com/42271761): Remove.
40using pdfium::CFWL_ThemeText;
41
42#endif // XFA_FWL_CFWL_THEMETEXT_H_
#define FWL_STATE_CKB_CheckMask
#define FWL_STATE_CKB_Hovered
#define FWL_STATE_CKB_Unchecked
#define FWL_STATE_CKB_Pressed
#define FWL_STATE_CKB_Neutral
#define FWL_STATE_CKB_Checked
#define FWL_STYLEEXT_CKB_3State
#define FWL_STYLEEXT_CKB_RadioButton
#define FWL_STATE_WGT_MAX
Definition cfwl_widget.h:46
#define FWL_STATE_WGT_Focused
Definition cfwl_widget.h:44
#define FWL_STATE_WGT_Disabled
Definition cfwl_widget.h:43
CFX_Matrix & operator=(const CFX_Matrix &other)=default
void Inflate(float x, float y)
CFX_RectF & operator=(const CFX_RectF &other)=default
float right() const
constexpr CFX_RectF(float dst_left, float dst_top, float dst_width, float dst_height)
static WideString FromASCII(ByteStringView str)
void SetBoxSize(float fHeight)
FWL_Type GetClassID() const override
~CFWL_CheckBox() override
void Update() override
void OnProcessMessage(CFWL_Message *pMessage) override
void OnDrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
void DrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
CFWL_MessageKey(CFWL_Widget *pDstTarget, KeyCommand subtype, Mask< XFA_FWL_KeyFlag > flags, uint32_t dwKeyCodeOrChar)
const uint32_t m_dwKeyCodeOrChar
const KeyCommand m_dwCmd
const Mask< XFA_FWL_KeyFlag > m_dwFlags
Type GetType() const
CFWL_Widget * GetDstTarget() const
FDE_TextStyle m_dwTTOStyles
CFGAS_GEGraphics * GetGraphics() const
CFWL_ThemeText(Part iPart, CFWL_Widget *pWidget, CFGAS_GEGraphics *pGraphics)
FDE_TextAlignment m_iTTOAlign
void OnProcessMessage(CFWL_Message *pMessage) override
void RepaintRect(const CFX_RectF &pRect)
bool HasBorder() const
void DispatchEvent(CFWL_Event *pEvent)
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()
IFWL_ThemeProvider * GetThemeProvider() const
bool IsLocked() const
void CalcTextRect(const WideString &wsText, const FDE_TextStyle &dwTTOStyles, FDE_TextAlignment iTTOAlign, CFX_RectF *pRect)
Properties m_Properties
virtual void DrawText(const CFWL_ThemeText &pParams)=0
virtual void DrawBackground(const CFWL_ThemeBackground &pParams)=0
int FXSYS_roundf(float f)
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32
FDE_TextAlignment
Definition cfde_data.h:14
@ XFA_FWL_VKEY_Return
@ XFA_FWL_VKEY_Tab
@ XFA_FWL_VKEY_Space
fxcrt::WideString WideString
Definition widestring.h:207