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
pdfium::CFWL_Widget Class Referenceabstract

#include <cfwl_widget.h>

Inheritance diagram for pdfium::CFWL_Widget:
Collaboration diagram for pdfium::CFWL_Widget:

Classes

class  AdapterIface
class  Properties
class  ScopedUpdateLock

Public Member Functions

 ~CFWL_Widget () override
virtual void PreFinalize ()
void Trace (cppgc::Visitor *visitor) const override
virtual FWL_Type GetClassID () const =0
virtual bool IsForm () const
virtual CFX_RectF GetAutosizedWidgetRect ()
virtual CFX_RectF GetWidgetRect ()
virtual CFX_RectF GetClientRect ()
virtual void ModifyStyleExts (uint32_t dwStyleExtsAdded, uint32_t dwStyleExtsRemoved)
virtual void SetStates (uint32_t dwStates)
virtual void RemoveStates (uint32_t dwStates)
virtual void Update ()=0
virtual FWL_WidgetHit HitTest (const CFX_PointF &point)
virtual void DrawWidget (CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix)=0
void OnProcessMessage (CFWL_Message *pMessage) override
void OnProcessEvent (CFWL_Event *pEvent) override
void InflateWidgetRect (CFX_RectF &rect)
void SetWidgetRect (const CFX_RectF &rect)
bool IsVisible () const
bool IsOverLapper () const
bool IsPopup () const
bool IsChild () const
CFWL_WidgetMgrGetWidgetMgr () const
CFWL_WidgetGetOuter () const
CFWL_WidgetGetOutmost () const
void ModifyStyles (uint32_t dwStylesAdded, uint32_t dwStylesRemoved)
uint32_t GetStyleExts () const
uint32_t GetStates () const
CFX_PointF TransformTo (CFWL_Widget *pWidget, const CFX_PointF &point)
CFX_Matrix GetMatrix () const
IFWL_ThemeProviderGetThemeProvider () const
void SetDelegate (IFWL_WidgetDelegate *delegate)
IFWL_WidgetDelegateGetDelegate ()
const IFWL_WidgetDelegateGetDelegate () const
CFWL_AppGetFWLApp () const
uint64_t GetEventKey () const
void SetEventKey (uint64_t key)
AdapterIfaceGetAdapterIface () const
void SetAdapterIface (AdapterIface *pItem)
void RepaintRect (const CFX_RectF &pRect)
Public Member Functions inherited from pdfium::IFWL_WidgetDelegate
virtual ~IFWL_WidgetDelegate ()=default
virtual void OnDrawWidget (CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix)=0

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Protected Member Functions

 CFWL_Widget (CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
bool IsEnabled () const
bool IsLocked () const
bool HasBorder () const
CFX_RectF GetEdgeRect () const
float GetCXBorderSize () const
float GetCYBorderSize () const
CFX_RectF GetRelativeRect () const
CFX_SizeF CalcTextSize (const WideString &wsText, bool bMultiLine)
void CalcTextRect (const WideString &wsText, const FDE_TextStyle &dwTTOStyles, FDE_TextAlignment iTTOAlign, CFX_RectF *pRect)
void SetGrab (bool bSet)
void UnregisterEventTarget ()
void DispatchEvent (CFWL_Event *pEvent)
void DrawBorder (CFGAS_GEGraphics *pGraphics, CFWL_ThemePart::Part iPartBorder, const CFX_Matrix &pMatrix)

Protected Attributes

Properties m_Properties
CFX_RectF m_WidgetRect

Detailed Description

Definition at line 69 of file cfwl_widget.h.

Constructor & Destructor Documentation

◆ ~CFWL_Widget()

pdfium::CFWL_Widget::~CFWL_Widget ( )
overridedefault

◆ CFWL_Widget()

pdfium::CFWL_Widget::CFWL_Widget ( CFWL_App * app,
const Properties & properties,
CFWL_Widget * pOuter )
protected

Definition at line 42 of file cfwl_widget.cpp.

References CFWL_Widget(), and m_Properties.

Referenced by pdfium::CFWL_Edit::CFWL_Edit(), pdfium::CFWL_ListBox::CFWL_ListBox(), and CFWL_Widget().

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

Member Function Documentation

◆ CalcTextRect()

void pdfium::CFWL_Widget::CalcTextRect ( const WideString & wsText,
const FDE_TextStyle & dwTTOStyles,
FDE_TextAlignment iTTOAlign,
CFX_RectF * pRect )
protected

Definition at line 247 of file cfwl_widget.cpp.

References pdfium::CFWL_ThemeText::CFWL_ThemeText(), pdfium::IFWL_ThemeProvider::CalcTextRect(), GetThemeProvider(), pdfium::CFWL_ThemePart::kNone, pdfium::CFWL_ThemeText::m_dwTTOStyles, and pdfium::CFWL_ThemeText::m_iTTOAlign.

Here is the call graph for this function:

◆ CalcTextSize()

CFX_SizeF pdfium::CFWL_Widget::CalcTextSize ( const WideString & wsText,
bool bMultiLine )
protected

◆ DispatchEvent()

void pdfium::CFWL_Widget::DispatchEvent ( CFWL_Event * pEvent)
protected

Definition at line 268 of file cfwl_widget.cpp.

References GetFWLApp(), pdfium::CFWL_App::GetNoteDriver(), and pdfium::CFWL_NoteDriver::SendEvent().

Referenced by pdfium::CFWL_Edit::NotifyTextFull(), pdfium::CFWL_ComboBox::OnProcessEvent(), OnProcessMessage(), pdfium::CFWL_Edit::OnTextWillChange(), pdfium::CFWL_Edit::OnValidate(), pdfium::CFWL_ComboBox::ProcessSelChanged(), pdfium::CFWL_DateTimePicker::ProcessSelChanged(), pdfium::CFWL_DateTimePicker::SetEditText(), and pdfium::CFWL_ComboBox::ShowDropDownList().

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

◆ DrawBorder()

void pdfium::CFWL_Widget::DrawBorder ( CFGAS_GEGraphics * pGraphics,
CFWL_ThemePart::Part iPartBorder,
const CFX_Matrix & pMatrix )
protected

Definition at line 290 of file cfwl_widget.cpp.

References pdfium::CFWL_ThemeBackground::CFWL_ThemeBackground(), pdfium::IFWL_ThemeProvider::DrawBackground(), GetRelativeRect(), GetThemeProvider(), pdfium::CFWL_ThemePart::m_matrix, pdfium::CFWL_ThemePart::m_PartRect, CFX_Matrix::operator=(), and CFX_RectF::operator=().

Referenced by pdfium::CFWL_CheckBox::DrawWidget(), pdfium::CFWL_DateTimePicker::DrawWidget(), pdfium::CFWL_Edit::DrawWidget(), pdfium::CFWL_ListBox::DrawWidget(), pdfium::CFWL_MonthCalendar::DrawWidget(), pdfium::CFWL_PictureBox::DrawWidget(), pdfium::CFWL_PushButton::DrawWidget(), and pdfium::CFWL_ScrollBar::DrawWidget().

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

◆ DrawWidget()

◆ GetAdapterIface()

AdapterIface * pdfium::CFWL_Widget::GetAdapterIface ( ) const
inline

Definition at line 155 of file cfwl_widget.h.

Referenced by CXFA_FWLAdapterWidgetMgr::GetPopupPos(), pdfium::CFWL_Edit::HideCaret(), CXFA_FWLAdapterWidgetMgr::RepaintWidget(), and pdfium::CFWL_Edit::ShowCaret().

Here is the caller graph for this function:

◆ GetAutosizedWidgetRect()

CFX_RectF pdfium::CFWL_Widget::GetAutosizedWidgetRect ( )
virtual

Reimplemented in CFWL_Edit, CFWL_MonthCalendar, pdfium::CFWL_Edit, and pdfium::CFWL_MonthCalendar.

Definition at line 72 of file cfwl_widget.cpp.

References CFX_RectF::CFX_RectF().

Here is the call graph for this function:

◆ GetClassID()

◆ GetClientRect()

CFX_RectF pdfium::CFWL_Widget::GetClientRect ( )
virtual

Definition at line 92 of file cfwl_widget.cpp.

References GetEdgeRect().

Referenced by HitTest(), pdfium::CFWL_Edit::OnSelChanged(), pdfium::CFWL_Edit::OnTextChanged(), pdfium::CFWL_DateTimePicker::Update(), pdfium::CFWL_PictureBox::Update(), and pdfium::CFWL_PushButton::Update().

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

◆ GetCXBorderSize()

float pdfium::CFWL_Widget::GetCXBorderSize ( ) const
protected

Definition at line 220 of file cfwl_widget.cpp.

References pdfium::IFWL_ThemeProvider::GetCXBorderSize(), and GetThemeProvider().

Referenced by GetEdgeRect(), InflateWidgetRect(), and pdfium::CFWL_ComboBox::ShowDropDownList().

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

◆ GetCYBorderSize()

float pdfium::CFWL_Widget::GetCYBorderSize ( ) const
protected

Definition at line 224 of file cfwl_widget.cpp.

References pdfium::IFWL_ThemeProvider::GetCYBorderSize(), and GetThemeProvider().

Referenced by GetEdgeRect().

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

◆ GetDelegate() [1/2]

IFWL_WidgetDelegate * pdfium::CFWL_Widget::GetDelegate ( )
inline

Definition at line 144 of file cfwl_widget.h.

Referenced by pdfium::CFWL_WidgetMgr::OnDrawWidget().

Here is the caller graph for this function:

◆ GetDelegate() [2/2]

const IFWL_WidgetDelegate * pdfium::CFWL_Widget::GetDelegate ( ) const
inline

Definition at line 147 of file cfwl_widget.h.

◆ GetEdgeRect()

CFX_RectF pdfium::CFWL_Widget::GetEdgeRect ( ) const
protected

Definition at line 213 of file cfwl_widget.cpp.

References CFX_RectF::CFX_RectF(), CFX_RectF::Deflate(), GetCXBorderSize(), GetCYBorderSize(), HasBorder(), CFX_RectF::height, m_WidgetRect, and CFX_RectF::width.

Referenced by GetClientRect().

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

◆ GetEventKey()

uint64_t pdfium::CFWL_Widget::GetEventKey ( ) const
inline

Definition at line 152 of file cfwl_widget.h.

Referenced by pdfium::CFWL_NoteDriver::RegisterEventTarget(), and pdfium::CFWL_NoteDriver::UnregisterEventTarget().

Here is the caller graph for this function:

◆ GetFWLApp()

◆ GetMatrix()

CFX_Matrix pdfium::CFWL_Widget::GetMatrix ( ) const

Definition at line 161 of file cfwl_widget.cpp.

References CFX_RectF::left, CFX_RectF::top, and CFX_Matrix::TranslatePrepend().

Here is the call graph for this function:

◆ GetOuter()

CFWL_Widget * pdfium::CFWL_Widget::GetOuter ( ) const
inline

Definition at line 133 of file cfwl_widget.h.

Referenced by GetOutmost(), pdfium::CFWL_Edit::HideCaret(), pdfium::CFWL_DateTimeEdit::OnProcessMessage(), pdfium::CFWL_MonthCalendar::OnProcessMessage(), pdfium::CFWL_WidgetMgr::RepaintWidget(), and pdfium::CFWL_Edit::ShowCaret().

Here is the caller graph for this function:

◆ GetOutmost()

CFWL_Widget * pdfium::CFWL_Widget::GetOutmost ( ) const

Definition at line 206 of file cfwl_widget.cpp.

References GetOuter().

Here is the call graph for this function:

◆ GetRelativeRect()

CFX_RectF pdfium::CFWL_Widget::GetRelativeRect ( ) const
protected

Definition at line 228 of file cfwl_widget.cpp.

References CFX_RectF::CFX_RectF(), CFX_RectF::height, m_WidgetRect, and CFX_RectF::width.

Referenced by DrawBorder(), and HitTest().

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

◆ GetStates()

uint32_t pdfium::CFWL_Widget::GetStates ( ) const
inline

Definition at line 138 of file cfwl_widget.h.

References pdfium::CFWL_Widget::Properties::m_dwStates, and m_Properties.

Referenced by pdfium::CFWL_WidgetMgr::GetDefaultButton(), and pdfium::CFWL_Caret::OnTimerFired().

Here is the caller graph for this function:

◆ GetStyleExts()

uint32_t pdfium::CFWL_Widget::GetStyleExts ( ) const
inline

Definition at line 137 of file cfwl_widget.h.

References pdfium::CFWL_Widget::Properties::m_dwStyleExts, and m_Properties.

Referenced by CXFA_FFDateTimeEdit::CanCut(), CXFA_FFDateTimeEdit::CanPaste(), and pdfium::CFWL_ScrollBarTP::DrawBackground().

Here is the caller graph for this function:

◆ GetThemeProvider()

IFWL_ThemeProvider * pdfium::CFWL_Widget::GetThemeProvider ( ) const

Definition at line 177 of file cfwl_widget.cpp.

References GetFWLApp(), and pdfium::CFWL_App::GetThemeProvider().

Referenced by pdfium::CFWL_ListBox::CalcItemHeight(), CalcTextRect(), CalcTextSize(), DrawBorder(), pdfium::CFWL_CheckBox::DrawWidget(), pdfium::CFWL_ComboBox::DrawWidget(), GetCXBorderSize(), GetCYBorderSize(), pdfium::CFWL_Edit::GetWidgetRect(), and pdfium::CFWL_DateTimePicker::Update().

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

◆ GetWidgetMgr()

CFWL_WidgetMgr * pdfium::CFWL_Widget::GetWidgetMgr ( ) const
inline

Definition at line 132 of file cfwl_widget.h.

◆ GetWidgetRect()

CFX_RectF pdfium::CFWL_Widget::GetWidgetRect ( )
virtual

◆ HasBorder()

bool pdfium::CFWL_Widget::HasBorder ( ) const
protected

◆ HitTest()

FWL_WidgetHit pdfium::CFWL_Widget::HitTest ( const CFX_PointF & point)
virtual

Reimplemented in CFWL_ComboBox, CFWL_DateTimePicker, CFWL_Edit, CFWL_ListBox, pdfium::CFWL_ComboBox, pdfium::CFWL_DateTimePicker, pdfium::CFWL_Edit, and pdfium::CFWL_ListBox.

Definition at line 140 of file cfwl_widget.cpp.

References pdfium::Border, pdfium::Client, CFX_RectF::Contains(), GetClientRect(), GetRelativeRect(), HasBorder(), and pdfium::Unknown.

Here is the call graph for this function:

◆ InflateWidgetRect()

void pdfium::CFWL_Widget::InflateWidgetRect ( CFX_RectF & rect)

Definition at line 80 of file cfwl_widget.cpp.

References GetCXBorderSize(), HasBorder(), and CFX_RectF::Inflate().

Referenced by pdfium::CFWL_Edit::GetAutosizedWidgetRect(), and pdfium::CFWL_MonthCalendar::GetAutosizedWidgetRect().

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

◆ IsChild()

bool pdfium::CFWL_Widget::IsChild ( ) const

Definition at line 202 of file cfwl_widget.cpp.

References pdfium::CFWL_Widget::Properties::m_dwStyles, and m_Properties.

◆ IsEnabled()

bool pdfium::CFWL_Widget::IsEnabled ( ) const
protected

Definition at line 181 of file cfwl_widget.cpp.

References pdfium::CFWL_Widget::Properties::m_dwStates, and m_Properties.

Referenced by pdfium::CFWL_ListBox::OnProcessMessage(), and pdfium::CFWL_PushButton::OnProcessMessage().

Here is the caller graph for this function:

◆ IsForm()

bool pdfium::CFWL_Widget::IsForm ( ) const
virtual

Definition at line 68 of file cfwl_widget.cpp.

◆ IsLocked()

bool pdfium::CFWL_Widget::IsLocked ( ) const
inlineprotected

◆ IsOverLapper()

bool pdfium::CFWL_Widget::IsOverLapper ( ) const

Definition at line 193 of file cfwl_widget.cpp.

References pdfium::CFWL_Widget::Properties::m_dwStyles, and m_Properties.

◆ IsPopup()

bool pdfium::CFWL_Widget::IsPopup ( ) const

Definition at line 198 of file cfwl_widget.cpp.

References pdfium::CFWL_Widget::Properties::m_dwStyles, and m_Properties.

◆ IsVisible()

bool pdfium::CFWL_Widget::IsVisible ( ) const

Definition at line 189 of file cfwl_widget.cpp.

References pdfium::CFWL_Widget::Properties::m_dwStates, and m_Properties.

Referenced by pdfium::CFWL_WidgetMgr::GetWidgetAtPoint(), and SetStates().

Here is the caller graph for this function:

◆ ModifyStyleExts()

void pdfium::CFWL_Widget::ModifyStyleExts ( uint32_t dwStyleExtsAdded,
uint32_t dwStyleExtsRemoved )
virtual

Reimplemented in CFWL_ComboBox, and pdfium::CFWL_ComboBox.

Definition at line 102 of file cfwl_widget.cpp.

References pdfium::CFWL_Widget::Properties::m_dwStyleExts, and m_Properties.

Referenced by CXFA_FFCheckButton::LoadWidget(), CXFA_FFListBox::LoadWidget(), and pdfium::CFWL_ComboBox::ModifyStyleExts().

Here is the caller graph for this function:

◆ ModifyStyles()

void pdfium::CFWL_Widget::ModifyStyles ( uint32_t dwStylesAdded,
uint32_t dwStylesRemoved )

Definition at line 96 of file cfwl_widget.cpp.

References pdfium::CFWL_Widget::Properties::m_dwStyles, and m_Properties.

Referenced by CXFA_FFListBox::LoadWidget().

Here is the caller graph for this function:

◆ OnProcessEvent()

void pdfium::CFWL_Widget::OnProcessEvent ( CFWL_Event * pEvent)
overridevirtual

Implements pdfium::IFWL_WidgetDelegate.

Definition at line 346 of file cfwl_widget.cpp.

◆ OnProcessMessage()

void pdfium::CFWL_Widget::OnProcessMessage ( CFWL_Message * pMessage)
overridevirtual

Implements pdfium::IFWL_WidgetDelegate.

Definition at line 329 of file cfwl_widget.cpp.

References pdfium::CFWL_EventMouse::CFWL_EventMouse(), DispatchEvent(), pdfium::CFWL_Message::GetDstTarget(), pdfium::CFWL_Message::GetType(), pdfium::CFWL_Message::kMouse, and pdfium::CFWL_MessageMouse::m_dwCmd.

Referenced by pdfium::CFWL_CheckBox::OnProcessMessage(), pdfium::CFWL_ComboBox::OnProcessMessage(), pdfium::CFWL_DateTimePicker::OnProcessMessage(), pdfium::CFWL_Edit::OnProcessMessage(), pdfium::CFWL_ListBox::OnProcessMessage(), pdfium::CFWL_MonthCalendar::OnProcessMessage(), and pdfium::CFWL_PushButton::OnProcessMessage().

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

◆ PreFinalize()

void pdfium::CFWL_Widget::PreFinalize ( )
virtual

Reimplemented in CFWL_DateTimePicker, CFWL_Edit, pdfium::CFWL_DateTimePicker, and pdfium::CFWL_Edit.

Definition at line 54 of file cfwl_widget.cpp.

References IsLocked().

Referenced by pdfium::CFWL_DateTimePicker::PreFinalize(), and pdfium::CFWL_Edit::PreFinalize().

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

◆ RemoveStates()

void pdfium::CFWL_Widget::RemoveStates ( uint32_t dwStates)
virtual

Reimplemented in CFWL_ComboBox, and pdfium::CFWL_ComboBox.

Definition at line 136 of file cfwl_widget.cpp.

References pdfium::CFWL_Widget::Properties::m_dwStates, and m_Properties.

Referenced by pdfium::CFWL_Caret::OnTimerFired(), pdfium::CFWL_ComboBox::RemoveStates(), and pdfium::CFWL_Caret::ShowCaret().

Here is the caller graph for this function:

◆ RepaintRect()

◆ SetAdapterIface()

void pdfium::CFWL_Widget::SetAdapterIface ( AdapterIface * pItem)
inline

◆ SetDelegate()

void pdfium::CFWL_Widget::SetDelegate ( IFWL_WidgetDelegate * delegate)
inline

◆ SetEventKey()

void pdfium::CFWL_Widget::SetEventKey ( uint64_t key)
inline

Definition at line 153 of file cfwl_widget.h.

Referenced by pdfium::CFWL_NoteDriver::RegisterEventTarget().

Here is the caller graph for this function:

◆ SetGrab()

void pdfium::CFWL_Widget::SetGrab ( bool bSet)
protected

Definition at line 258 of file cfwl_widget.cpp.

References GetFWLApp(), pdfium::CFWL_App::GetNoteDriver(), and pdfium::CFWL_NoteDriver::SetGrab().

Here is the call graph for this function:

◆ SetStates()

void pdfium::CFWL_Widget::SetStates ( uint32_t dwStates)
virtual

Reimplemented in CFWL_ComboBox, CFWL_Edit, CFWL_PushButton, pdfium::CFWL_ComboBox, pdfium::CFWL_Edit, and pdfium::CFWL_PushButton.

Definition at line 119 of file cfwl_widget.cpp.

References pdfium::CFWL_WidgetMgr::GetFirstChildWidget(), GetFWLApp(), pdfium::CFWL_WidgetMgr::GetNextSiblingWidget(), pdfium::CFWL_App::GetNoteDriver(), pdfium::CFWL_App::GetWidgetMgr(), IsVisible(), pdfium::CFWL_Widget::Properties::m_dwStates, m_Properties, pdfium::NotifyHideChildWidget(), and pdfium::CFWL_NoteDriver::NotifyTargetHide().

Referenced by pdfium::CFWL_Caret::HideCaret(), pdfium::CFWL_Caret::OnTimerFired(), pdfium::CFWL_ComboBox::SetStates(), pdfium::CFWL_Edit::SetStates(), pdfium::CFWL_PushButton::SetStates(), and pdfium::CFWL_Caret::ShowCaret().

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

◆ SetWidgetRect()

void pdfium::CFWL_Widget::SetWidgetRect ( const CFX_RectF & rect)

Definition at line 88 of file cfwl_widget.cpp.

References m_WidgetRect, and CFX_RectF::operator=().

Referenced by CXFA_FFField::SetFWLRect().

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

◆ Trace()

void pdfium::CFWL_Widget::Trace ( cppgc::Visitor * visitor) const
override

Definition at line 60 of file cfwl_widget.cpp.

◆ TransformTo()

CFX_PointF pdfium::CFWL_Widget::TransformTo ( CFWL_Widget * pWidget,
const CFX_PointF & point )

Definition at line 148 of file cfwl_widget.cpp.

◆ UnregisterEventTarget()

void pdfium::CFWL_Widget::UnregisterEventTarget ( )
protected

Definition at line 263 of file cfwl_widget.cpp.

References GetFWLApp(), pdfium::CFWL_App::GetNoteDriver(), and pdfium::CFWL_NoteDriver::UnregisterEventTarget().

Referenced by pdfium::CFWL_DateTimePicker::PreFinalize().

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

◆ Update()

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

pdfium::CFWL_Widget::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 100 of file cfwl_widget.h.

◆ m_Properties

◆ m_WidgetRect


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