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
18class CFWL_ThemeText final : public CFWL_ThemePart {
19 public:
20 FX_STACK_ALLOCATED();
21
22 CFWL_ThemeText(Part iPart, CFWL_Widget* pWidget, CFGAS_GEGraphics* pGraphics);
24
25 CFGAS_GEGraphics* GetGraphics() const { return m_pGraphics; }
26
29 WideString m_wsText;
30
31 private:
32 UnownedPtr<CFGAS_GEGraphics> const m_pGraphics;
33};
34
35#endif // XFA_FWL_CFWL_THEMETEXT_H_
FDE_TextAlignment
Definition cfde_data.h:12
#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
CFWL_PartState
#define FWL_STATE_WGT_MAX
Definition cfwl_widget.h:44
FWL_Type
Definition cfwl_widget.h:46
#define FWL_STATE_WGT_Focused
Definition cfwl_widget.h:42
#define FWL_STATE_WGT_Disabled
Definition cfwl_widget.h:41
void OnDrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
~CFWL_CheckBox() override
void SetBoxSize(float fHeight)
void DrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
void OnProcessMessage(CFWL_Message *pMessage) override
void Update() override
FWL_Type GetClassID() const override
~CFWL_MessageKey() override
const KeyCommand m_dwCmd
const uint32_t m_dwKeyCodeOrChar
CFWL_MessageKey(CFWL_Widget *pDstTarget, KeyCommand subtype, Mask< XFA_FWL_KeyFlag > flags, uint32_t dwKeyCodeOrChar)
const Mask< XFA_FWL_KeyFlag > m_dwFlags
const MouseCommand m_dwCmd
Type GetType() const
CFWL_Widget * GetDstTarget() const
CFX_RectF m_PartRect
CFX_Matrix m_matrix
FDE_TextStyle m_dwTTOStyles
CFWL_ThemeText(Part iPart, CFWL_Widget *pWidget, CFGAS_GEGraphics *pGraphics)
CFGAS_GEGraphics * GetGraphics() const
FDE_TextAlignment m_iTTOAlign
WideString m_wsText
CFWL_Widget(CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
Properties m_Properties
void OnProcessMessage(CFWL_Message *pMessage) override
bool HasBorder() const
CFX_RectF m_WidgetRect
void DrawBorder(CFGAS_GEGraphics *pGraphics, CFWL_ThemePart::Part iPartBorder, const CFX_Matrix &pMatrix)
void RepaintRect(const CFX_RectF &pRect)
IFWL_ThemeProvider * GetThemeProvider() const
void CalcTextRect(const WideString &wsText, const FDE_TextStyle &dwTTOStyles, FDE_TextAlignment iTTOAlign, CFX_RectF *pRect)
virtual CFX_RectF GetClientRect()
void DispatchEvent(CFWL_Event *pEvent)
bool IsLocked() const
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)
virtual void DrawBackground(const CFWL_ThemeBackground &pParams)=0
virtual void DrawText(const CFWL_ThemeText &pParams)=0
XFA_FWL_KeyFlag
@ XFA_FWL_VKEY_Space
@ XFA_FWL_VKEY_Return
@ XFA_FWL_VKEY_Tab
int FXSYS_roundf(float f)
Definition fx_system.cpp:92
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32
bool single_line_
Definition cfde_data.h:29
void Reset()
Definition cfde_data.h:23