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_WidgetTP Class Reference

#include <cfwl_widgettp.h>

+ Inheritance diagram for CFWL_WidgetTP:
+ Collaboration diagram for CFWL_WidgetTP:

Classes

struct  CColorData
 

Public Member Functions

virtual ~CFWL_WidgetTP ()
 
virtual void DrawBackground (const CFWL_ThemeBackground &pParams)
 
virtual void DrawText (const CFWL_ThemeText &pParams)
 
void Trace (cppgc::Visitor *visitor) const
 

Protected Member Functions

 CFWL_WidgetTP ()
 
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)
 
void FillSolidRect (CFGAS_GEGraphics *pGraphics, FX_ARGB fillColor, const CFX_RectF &rect, const CFX_Matrix &matrix)
 
void DrawFocus (CFGAS_GEGraphics *pGraphics, const CFX_RectF &rect, const CFX_Matrix &matrix)
 
void DrawArrow (CFGAS_GEGraphics *pGraphics, const CFX_RectF &rect, FWLTHEME_DIRECTION eDict, FX_ARGB argSign, 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)
 

Protected Attributes

std::unique_ptr< CFDE_TextOutm_pTextOut
 
std::unique_ptr< CColorDatam_pColorData
 

Detailed Description

Definition at line 25 of file cfwl_widgettp.h.

Constructor & Destructor Documentation

◆ ~CFWL_WidgetTP()

CFWL_WidgetTP::~CFWL_WidgetTP ( )
virtualdefault

◆ CFWL_WidgetTP()

CFWL_WidgetTP::CFWL_WidgetTP ( )
protecteddefault

Member Function Documentation

◆ DrawArrow()

void CFWL_WidgetTP::DrawArrow ( CFGAS_GEGraphics * pGraphics,
const CFX_RectF & rect,
FWLTHEME_DIRECTION eDict,
FX_ARGB argSign,
const CFX_Matrix & matrix )
protected

Definition at line 134 of file cfwl_widgettp.cpp.

References CFGAS_GEColor::CFGAS_GEColor(), CFGAS_GEGraphics::FillPath(), CFX_RectF::height, kDown, kLeft, kRight, kUp, CFX_FillRenderOptions::kWinding, CFX_RectF::left, CFGAS_GEPath::LineTo(), CFGAS_GEPath::MoveTo(), CFGAS_GEGraphics::SetFillColor(), CFX_RectF::top, and CFX_RectF::width.

+ Here is the call graph for this function:

◆ DrawArrowBtn()

void CFWL_WidgetTP::DrawArrowBtn ( CFGAS_GEGraphics * pGraphics,
const CFX_RectF & rect,
FWLTHEME_DIRECTION eDict,
FWLTHEME_STATE eState,
const CFX_Matrix & matrix )
protected

Definition at line 198 of file cfwl_widgettp.cpp.

References DrawBtn(), and InitializeArrowColorData().

Referenced by CFWL_ComboBoxTP::DrawBackground(), CFWL_DateTimePickerTP::DrawBackground(), and CFWL_MonthCalendarTP::DrawBackground().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawBackground()

◆ DrawBorder()

void CFWL_WidgetTP::DrawBorder ( CFGAS_GEGraphics * pGraphics,
const CFX_RectF & rect,
const CFX_Matrix & matrix )
protected

Definition at line 81 of file cfwl_widgettp.cpp.

References CFGAS_GEColor::CFGAS_GEColor(), CFGAS_GEGraphics::StateRestorer::StateRestorer(), CFGAS_GEPath::AddRectangle(), ArgbEncode(), CFGAS_GEGraphics::FillPath(), CFX_RectF::height, CFX_FillRenderOptions::kEvenOdd, CFX_RectF::left, CFGAS_GEGraphics::SetFillColor(), CFX_RectF::top, and CFX_RectF::width.

Referenced by CFWL_BarcodeTP::DrawBackground(), CFWL_ComboBoxTP::DrawBackground(), CFWL_DateTimePickerTP::DrawBackground(), CFWL_EditTP::DrawBackground(), CFWL_ListBoxTP::DrawBackground(), CFWL_MonthCalendarTP::DrawBackground(), CFWL_PictureBoxTP::DrawBackground(), and CFWL_PushButtonTP::DrawBackground().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawBtn()

void CFWL_WidgetTP::DrawBtn ( CFGAS_GEGraphics * pGraphics,
const CFX_RectF & rect,
FWLTHEME_STATE eState,
const CFX_Matrix & matrix )
protected

Definition at line 182 of file cfwl_widgettp.cpp.

References CFGAS_GEPath::AddRectangle(), CFX_RectF::height, InitializeArrowColorData(), CFX_RectF::left, CFGAS_GEGraphics::StrokePath(), CFX_RectF::top, and CFX_RectF::width.

Referenced by DrawArrowBtn().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawFocus()

void CFWL_WidgetTP::DrawFocus ( CFGAS_GEGraphics * pGraphics,
const CFX_RectF & rect,
const CFX_Matrix & matrix )
protected

Definition at line 118 of file cfwl_widgettp.cpp.

References CFGAS_GEColor::CFGAS_GEColor(), CFGAS_GEGraphics::StateRestorer::StateRestorer(), CFGAS_GEPath::AddRectangle(), CFX_RectF::height, CFX_RectF::left, CFGAS_GEGraphics::SetLineDash(), CFGAS_GEGraphics::SetStrokeColor(), CFGAS_GEGraphics::StrokePath(), CFX_RectF::top, and CFX_RectF::width.

Referenced by CFWL_PushButtonTP::DrawBackground().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawText()

void CFWL_WidgetTP::DrawText ( const CFWL_ThemeText & pParams)
virtual

Reimplemented in CFWL_CheckBoxTP, and CFWL_MonthCalendarTP.

Definition at line 32 of file cfwl_widgettp.cpp.

References CFX_Matrix::Concat(), EnsureTTOInitialized(), CFWL_ThemeText::GetGraphics(), CFGAS_GEGraphics::GetMatrix(), CFWL_ThemePart::GetWidget(), and CFWL_ThemePart::m_matrix.

Referenced by CFWL_CheckBoxTP::DrawText(), and CFWL_MonthCalendarTP::DrawText().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EnsureTTOInitialized()

void CFWL_WidgetTP::EnsureTTOInitialized ( IFWL_ThemeProvider * pProvider)
protected

Definition at line 71 of file cfwl_widgettp.cpp.

Referenced by CFWL_CheckBoxTP::DrawText(), CFWL_MonthCalendarTP::DrawText(), and DrawText().

+ Here is the caller graph for this function:

◆ FillBackground()

void CFWL_WidgetTP::FillBackground ( CFGAS_GEGraphics * pGraphics,
const CFX_RectF & rect,
const CFX_Matrix & matrix )
protected

Definition at line 97 of file cfwl_widgettp.cpp.

References FillSolidRect().

Referenced by CFWL_BarcodeTP::DrawBackground().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FillSolidRect()

void CFWL_WidgetTP::FillSolidRect ( CFGAS_GEGraphics * pGraphics,
FX_ARGB fillColor,
const CFX_RectF & rect,
const CFX_Matrix & matrix )
protected

Definition at line 103 of file cfwl_widgettp.cpp.

References CFGAS_GEColor::CFGAS_GEColor(), CFGAS_GEGraphics::StateRestorer::StateRestorer(), CFGAS_GEPath::AddRectangle(), CFGAS_GEGraphics::FillPath(), CFX_RectF::height, CFX_FillRenderOptions::kWinding, CFX_RectF::left, CFGAS_GEGraphics::SetFillColor(), CFX_RectF::top, and CFX_RectF::width.

Referenced by CFWL_ListBoxTP::DrawBackground(), and FillBackground().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitializeArrowColorData()

void CFWL_WidgetTP::InitializeArrowColorData ( )
protected

Definition at line 48 of file cfwl_widgettp.cpp.

Referenced by DrawArrowBtn(), and DrawBtn().

+ Here is the caller graph for this function:

◆ Trace()

void CFWL_WidgetTP::Trace ( cppgc::Visitor * visitor) const

Definition at line 28 of file cfwl_widgettp.cpp.

Member Data Documentation

◆ m_pColorData

std::unique_ptr<CColorData> CFWL_WidgetTP::m_pColorData
protected

Definition at line 77 of file cfwl_widgettp.h.

◆ m_pTextOut

std::unique_ptr<CFDE_TextOut> CFWL_WidgetTP::m_pTextOut
protected

Definition at line 76 of file cfwl_widgettp.h.


The documentation for this class was generated from the following files: