Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cfwl_widget.h>
Classes | |
class | AdapterIface |
class | Properties |
class | ScopedUpdateLock |
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 |
Definition at line 67 of file cfwl_widget.h.
|
overridedefault |
|
protected |
Definition at line 40 of file cfwl_widget.cpp.
References CFWL_Widget(), and m_Properties.
Referenced by CFWL_Edit::CFWL_Edit(), CFWL_ListBox::CFWL_ListBox(), and CFWL_Widget().
|
protected |
Definition at line 245 of file cfwl_widget.cpp.
References CFWL_ThemeText::CFWL_ThemeText(), IFWL_ThemeProvider::CalcTextRect(), GetThemeProvider(), CFWL_ThemePart::kNone, CFWL_ThemeText::m_dwTTOStyles, and CFWL_ThemeText::m_iTTOAlign.
|
protected |
Definition at line 230 of file cfwl_widget.cpp.
References CFWL_ThemeText::CFWL_ThemeText(), CFX_RectF::CFX_RectF(), IFWL_ThemeProvider::CalcTextRect(), GetThemeProvider(), CFX_RectF::height, CFWL_ThemePart::kNone, kTopLeft, FDE_TextStyle::line_wrap_, CFWL_ThemeText::m_dwTTOStyles, CFWL_ThemeText::m_iTTOAlign, FDE_TextStyle::single_line_, and CFX_RectF::width.
|
protected |
Definition at line 266 of file cfwl_widget.cpp.
References GetFWLApp(), CFWL_App::GetNoteDriver(), and CFWL_NoteDriver::SendEvent().
Referenced by CFWL_Edit::NotifyTextFull(), CFWL_ComboBox::OnProcessEvent(), OnProcessMessage(), CFWL_Edit::OnTextWillChange(), CFWL_Edit::OnValidate(), CFWL_ComboBox::ProcessSelChanged(), CFWL_DateTimePicker::ProcessSelChanged(), CFWL_DateTimePicker::SetEditText(), and CFWL_ComboBox::ShowDropDownList().
|
protected |
Definition at line 288 of file cfwl_widget.cpp.
References CFWL_ThemeBackground::CFWL_ThemeBackground(), IFWL_ThemeProvider::DrawBackground(), GetRelativeRect(), GetThemeProvider(), CFWL_ThemePart::m_matrix, CFWL_ThemePart::m_PartRect, CFX_Matrix::operator=(), and CFX_RectF::operator=().
Referenced by CFWL_CheckBox::DrawWidget(), CFWL_DateTimePicker::DrawWidget(), CFWL_Edit::DrawWidget(), CFWL_ListBox::DrawWidget(), CFWL_MonthCalendar::DrawWidget(), CFWL_PictureBox::DrawWidget(), CFWL_PushButton::DrawWidget(), and CFWL_ScrollBar::DrawWidget().
|
pure virtual |
Implemented in CFWL_Barcode, CFWL_Caret, CFWL_CheckBox, CFWL_ComboBox, CFWL_DateTimePicker, CFWL_Edit, CFWL_ListBox, CFWL_MonthCalendar, CFWL_PictureBox, CFWL_PushButton, and CFWL_ScrollBar.
|
inline |
Definition at line 153 of file cfwl_widget.h.
Referenced by CXFA_FWLAdapterWidgetMgr::GetPopupPos(), CFWL_Edit::HideCaret(), CXFA_FWLAdapterWidgetMgr::RepaintWidget(), and CFWL_Edit::ShowCaret().
|
virtual |
Reimplemented in CFWL_Edit, and CFWL_MonthCalendar.
Definition at line 70 of file cfwl_widget.cpp.
References CFX_RectF::CFX_RectF().
|
pure virtual |
Implemented in CFWL_Barcode, CFWL_Caret, CFWL_CheckBox, CFWL_ComboBox, CFWL_DateTimePicker, CFWL_Edit, CFWL_ListBox, CFWL_MonthCalendar, CFWL_PictureBox, CFWL_PushButton, and CFWL_ScrollBar.
Referenced by CFWL_WidgetMgr::GetDefaultButton(), and IFWL_ThemeProvider::GetTheme().
|
virtual |
Definition at line 90 of file cfwl_widget.cpp.
References GetEdgeRect().
Referenced by HitTest(), CFWL_Edit::OnSelChanged(), CFWL_Edit::OnTextChanged(), CFWL_DateTimePicker::Update(), CFWL_PictureBox::Update(), and CFWL_PushButton::Update().
|
protected |
Definition at line 218 of file cfwl_widget.cpp.
References IFWL_ThemeProvider::GetCXBorderSize(), and GetThemeProvider().
Referenced by GetEdgeRect(), InflateWidgetRect(), and CFWL_ComboBox::ShowDropDownList().
|
protected |
Definition at line 222 of file cfwl_widget.cpp.
References IFWL_ThemeProvider::GetCYBorderSize(), and GetThemeProvider().
Referenced by GetEdgeRect().
|
inline |
Definition at line 142 of file cfwl_widget.h.
Referenced by CFWL_WidgetMgr::OnDrawWidget().
|
inline |
Definition at line 145 of file cfwl_widget.h.
|
protected |
Definition at line 211 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().
|
inline |
Definition at line 150 of file cfwl_widget.h.
Referenced by CFWL_NoteDriver::RegisterEventTarget(), and CFWL_NoteDriver::UnregisterEventTarget().
|
inline |
Definition at line 149 of file cfwl_widget.h.
Referenced by DispatchEvent(), GetThemeProvider(), CXFA_FFBarcode::LoadWidget(), CXFA_FFCheckButton::LoadWidget(), CXFA_FFComboBox::LoadWidget(), CXFA_FFDateTimeEdit::LoadWidget(), CXFA_FFImageEdit::LoadWidget(), CXFA_FFListBox::LoadWidget(), CXFA_FFNumericEdit::LoadWidget(), CXFA_FFPasswordEdit::LoadWidget(), CXFA_FFPushButton::LoadWidget(), CXFA_FFTextEdit::LoadWidget(), CFWL_WidgetMgr::OnProcessMessageToForm(), SetGrab(), SetStates(), and UnregisterEventTarget().
CFX_Matrix CFWL_Widget::GetMatrix | ( | ) | const |
Definition at line 159 of file cfwl_widget.cpp.
References CFX_RectF::left, CFX_RectF::top, and CFX_Matrix::TranslatePrepend().
|
inline |
Definition at line 131 of file cfwl_widget.h.
Referenced by GetOutmost(), CFWL_Edit::HideCaret(), CFWL_DateTimeEdit::OnProcessMessage(), CFWL_MonthCalendar::OnProcessMessage(), CFWL_WidgetMgr::RepaintWidget(), and CFWL_Edit::ShowCaret().
CFWL_Widget * CFWL_Widget::GetOutmost | ( | ) | const |
Definition at line 204 of file cfwl_widget.cpp.
References GetOuter().
|
protected |
Definition at line 226 of file cfwl_widget.cpp.
References CFX_RectF::CFX_RectF(), CFX_RectF::height, m_WidgetRect, and CFX_RectF::width.
Referenced by DrawBorder(), and HitTest().
|
inline |
Definition at line 136 of file cfwl_widget.h.
References CFWL_Widget::Properties::m_dwStates, and m_Properties.
Referenced by CFWL_WidgetMgr::GetDefaultButton(), and CFWL_Caret::OnTimerFired().
|
inline |
Definition at line 135 of file cfwl_widget.h.
References CFWL_Widget::Properties::m_dwStyleExts, and m_Properties.
Referenced by CXFA_FFDateTimeEdit::CanCut(), CXFA_FFDateTimeEdit::CanPaste(), and CFWL_ScrollBarTP::DrawBackground().
IFWL_ThemeProvider * CFWL_Widget::GetThemeProvider | ( | ) | const |
Definition at line 175 of file cfwl_widget.cpp.
References GetFWLApp(), and CFWL_App::GetThemeProvider().
Referenced by CFWL_ListBox::CalcItemHeight(), CalcTextRect(), CalcTextSize(), DrawBorder(), CFWL_CheckBox::DrawWidget(), CFWL_ComboBox::DrawWidget(), GetCXBorderSize(), GetCYBorderSize(), CFWL_Edit::GetWidgetRect(), and CFWL_DateTimePicker::Update().
|
inline |
Definition at line 130 of file cfwl_widget.h.
|
virtual |
Reimplemented in CFWL_Edit.
Definition at line 74 of file cfwl_widget.cpp.
References m_WidgetRect.
Referenced by CXFA_FFField::FWLToClient(), CFWL_WidgetMgr::GetWidgetAtPoint(), CFWL_Edit::OnCaretChanged(), CFWL_ComboList::OnProcessMessage(), CFWL_DateTimeEdit::OnProcessMessage(), CFWL_Caret::OnTimerFired(), CXFA_FFField::PtInActiveRect(), CXFA_FFField::RenderWidget(), CFWL_WidgetMgr::RepaintWidget(), and CFWL_Edit::ShowCaret().
|
protected |
Definition at line 183 of file cfwl_widget.cpp.
References CFWL_Widget::Properties::m_dwStyles, and m_Properties.
Referenced by CFWL_CheckBox::DrawWidget(), CFWL_DateTimePicker::DrawWidget(), CFWL_Edit::DrawWidget(), CFWL_ListBox::DrawWidget(), CFWL_MonthCalendar::DrawWidget(), CFWL_PictureBox::DrawWidget(), CFWL_PushButton::DrawWidget(), CFWL_ScrollBar::DrawWidget(), GetEdgeRect(), HitTest(), and InflateWidgetRect().
|
virtual |
Reimplemented in CFWL_ComboBox, CFWL_DateTimePicker, CFWL_Edit, and CFWL_ListBox.
Definition at line 138 of file cfwl_widget.cpp.
References Border, Client, CFX_RectF::Contains(), GetClientRect(), GetRelativeRect(), HasBorder(), and Unknown.
Definition at line 78 of file cfwl_widget.cpp.
References GetCXBorderSize(), HasBorder(), and CFX_RectF::Inflate().
Referenced by CFWL_Edit::GetAutosizedWidgetRect(), and CFWL_MonthCalendar::GetAutosizedWidgetRect().
bool CFWL_Widget::IsChild | ( | ) | const |
Definition at line 200 of file cfwl_widget.cpp.
References CFWL_Widget::Properties::m_dwStyles, and m_Properties.
|
protected |
Definition at line 179 of file cfwl_widget.cpp.
References CFWL_Widget::Properties::m_dwStates, and m_Properties.
Referenced by CFWL_ListBox::OnProcessMessage(), and CFWL_PushButton::OnProcessMessage().
|
virtual |
Definition at line 66 of file cfwl_widget.cpp.
|
inlineprotected |
Definition at line 161 of file cfwl_widget.h.
Referenced by PreFinalize(), CFWL_Barcode::Update(), CFWL_CheckBox::Update(), CFWL_ComboBox::Update(), CFWL_DateTimePicker::Update(), CFWL_Edit::Update(), CFWL_ListBox::Update(), CFWL_MonthCalendar::Update(), CFWL_PictureBox::Update(), CFWL_PushButton::Update(), and CFWL_ScrollBar::Update().
bool CFWL_Widget::IsOverLapper | ( | ) | const |
Definition at line 191 of file cfwl_widget.cpp.
References CFWL_Widget::Properties::m_dwStyles, and m_Properties.
bool CFWL_Widget::IsPopup | ( | ) | const |
Definition at line 196 of file cfwl_widget.cpp.
References CFWL_Widget::Properties::m_dwStyles, and m_Properties.
bool CFWL_Widget::IsVisible | ( | ) | const |
Definition at line 187 of file cfwl_widget.cpp.
References CFWL_Widget::Properties::m_dwStates, and m_Properties.
Referenced by CFWL_WidgetMgr::GetWidgetAtPoint(), and SetStates().
|
virtual |
Reimplemented in CFWL_ComboBox.
Definition at line 100 of file cfwl_widget.cpp.
References CFWL_Widget::Properties::m_dwStyleExts, and m_Properties.
Referenced by CXFA_FFCheckButton::LoadWidget(), CXFA_FFListBox::LoadWidget(), and CFWL_ComboBox::ModifyStyleExts().
void CFWL_Widget::ModifyStyles | ( | uint32_t | dwStylesAdded, |
uint32_t | dwStylesRemoved ) |
Definition at line 94 of file cfwl_widget.cpp.
References CFWL_Widget::Properties::m_dwStyles, and m_Properties.
Referenced by CXFA_FFListBox::LoadWidget().
|
overridevirtual |
Implements IFWL_WidgetDelegate.
Definition at line 344 of file cfwl_widget.cpp.
|
overridevirtual |
Implements IFWL_WidgetDelegate.
Definition at line 327 of file cfwl_widget.cpp.
References CFWL_EventMouse::CFWL_EventMouse(), DispatchEvent(), CFWL_Message::GetDstTarget(), CFWL_Message::GetType(), CFWL_Message::kMouse, and CFWL_MessageMouse::m_dwCmd.
Referenced by CFWL_CheckBox::OnProcessMessage(), CFWL_ComboBox::OnProcessMessage(), CFWL_DateTimePicker::OnProcessMessage(), CFWL_Edit::OnProcessMessage(), CFWL_ListBox::OnProcessMessage(), CFWL_MonthCalendar::OnProcessMessage(), and CFWL_PushButton::OnProcessMessage().
|
virtual |
Reimplemented in CFWL_DateTimePicker, and CFWL_Edit.
Definition at line 52 of file cfwl_widget.cpp.
References IsLocked().
Referenced by CFWL_DateTimePicker::PreFinalize(), and CFWL_Edit::PreFinalize().
|
virtual |
Reimplemented in CFWL_ComboBox.
Definition at line 134 of file cfwl_widget.cpp.
References CFWL_Widget::Properties::m_dwStates, and m_Properties.
Referenced by CFWL_Caret::OnTimerFired(), CFWL_ComboBox::RemoveStates(), and CFWL_Caret::ShowCaret().
Definition at line 275 of file cfwl_widget.cpp.
Referenced by CFWL_ComboList::ChangeSelected(), CFWL_ComboEdit::ClearSelected(), CFWL_Edit::HideCaret(), CFWL_Edit::OnCaretChanged(), CFWL_DateTimeEdit::OnProcessMessage(), CFWL_Edit::OnSelChanged(), CFWL_Edit::OnTextChanged(), CFWL_Caret::OnTimerFired(), CFWL_ComboBox::ProcessSelChanged(), CFWL_DateTimePicker::ProcessSelChanged(), CFWL_ListBox::ScrollToVisible(), CFWL_DateTimePicker::SetEditText(), and CFWL_Edit::ShowCaret().
|
inline |
Definition at line 154 of file cfwl_widget.h.
Referenced by CXFA_FFBarcode::LoadWidget(), CXFA_FFCheckButton::LoadWidget(), CXFA_FFComboBox::LoadWidget(), CXFA_FFDateTimeEdit::LoadWidget(), CXFA_FFImageEdit::LoadWidget(), CXFA_FFListBox::LoadWidget(), CXFA_FFNumericEdit::LoadWidget(), CXFA_FFPasswordEdit::LoadWidget(), CXFA_FFPushButton::LoadWidget(), and CXFA_FFTextEdit::LoadWidget().
|
inline |
Definition at line 141 of file cfwl_widget.h.
Referenced by CXFA_FFBarcode::LoadWidget(), CXFA_FFCheckButton::LoadWidget(), CXFA_FFComboBox::LoadWidget(), CXFA_FFDateTimeEdit::LoadWidget(), CXFA_FFImageEdit::LoadWidget(), CXFA_FFListBox::LoadWidget(), CXFA_FFNumericEdit::LoadWidget(), CXFA_FFPasswordEdit::LoadWidget(), CXFA_FFPushButton::LoadWidget(), and CXFA_FFTextEdit::LoadWidget().
|
inline |
Definition at line 151 of file cfwl_widget.h.
Referenced by CFWL_NoteDriver::RegisterEventTarget().
|
protected |
Definition at line 256 of file cfwl_widget.cpp.
References GetFWLApp(), CFWL_App::GetNoteDriver(), and CFWL_NoteDriver::SetGrab().
|
virtual |
Reimplemented in CFWL_ComboBox, CFWL_Edit, and CFWL_PushButton.
Definition at line 117 of file cfwl_widget.cpp.
References CFWL_WidgetMgr::GetFirstChildWidget(), GetFWLApp(), CFWL_WidgetMgr::GetNextSiblingWidget(), CFWL_App::GetNoteDriver(), CFWL_App::GetWidgetMgr(), IsVisible(), CFWL_Widget::Properties::m_dwStates, m_Properties, NotifyHideChildWidget(), and CFWL_NoteDriver::NotifyTargetHide().
Referenced by CFWL_Caret::HideCaret(), CFWL_Caret::OnTimerFired(), CFWL_ComboBox::SetStates(), CFWL_Edit::SetStates(), CFWL_PushButton::SetStates(), and CFWL_Caret::ShowCaret().
Definition at line 86 of file cfwl_widget.cpp.
References m_WidgetRect, and CFX_RectF::operator=().
Referenced by CXFA_FFField::SetFWLRect().
|
override |
Definition at line 58 of file cfwl_widget.cpp.
CFX_PointF CFWL_Widget::TransformTo | ( | CFWL_Widget * | pWidget, |
const CFX_PointF & | point ) |
Definition at line 146 of file cfwl_widget.cpp.
|
protected |
Definition at line 261 of file cfwl_widget.cpp.
References GetFWLApp(), CFWL_App::GetNoteDriver(), and CFWL_NoteDriver::UnregisterEventTarget().
Referenced by CFWL_DateTimePicker::PreFinalize().
|
pure virtual |
Implemented in CFWL_Barcode, CFWL_Caret, CFWL_CheckBox, CFWL_ComboBox, CFWL_DateTimePicker, CFWL_Edit, CFWL_ListBox, CFWL_MonthCalendar, CFWL_PictureBox, CFWL_PushButton, and CFWL_ScrollBar.
Referenced by CXFA_FFField::PerformLayout(), and CXFA_FFField::UpdateFWL().
CFWL_Widget::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED |
Definition at line 98 of file cfwl_widget.h.
|
protected |
Definition at line 179 of file cfwl_widget.h.
Referenced by CFWL_Widget(), CFWL_Barcode::DrawWidget(), CFWL_CheckBox::DrawWidget(), CFWL_ListBox::DrawWidget(), GetStates(), GetStyleExts(), CFWL_Edit::GetWidgetRect(), HasBorder(), CFWL_Edit::HitTest(), IsChild(), IsEnabled(), IsOverLapper(), IsPopup(), IsVisible(), CFWL_ComboBox::ModifyStyleExts(), ModifyStyleExts(), ModifyStyles(), CFWL_Edit::OnCaretChanged(), CFWL_ComboEdit::OnProcessMessage(), CFWL_DateTimeEdit::OnProcessMessage(), CFWL_Edit::OnTextChanged(), CFWL_Edit::PreFinalize(), RemoveStates(), CFWL_ListBox::ScrollBarPropertiesPresent(), CFWL_ComboEdit::SetSelected(), CFWL_Edit::SetStates(), CFWL_PushButton::SetStates(), SetStates(), and CFWL_ListBox::Update().
|
protected |
Definition at line 180 of file cfwl_widget.h.
Referenced by CFWL_ComboBox::GetBBox(), CFWL_DateTimePicker::GetBBox(), GetEdgeRect(), GetRelativeRect(), CFWL_Edit::GetWidgetRect(), GetWidgetRect(), CFWL_ComboBox::HitTest(), CFWL_DateTimePicker::HitTest(), SetWidgetRect(), CFWL_Edit::ShowCaret(), CFWL_ComboBox::ShowDropDownList(), and CFWL_DateTimePicker::ShowMonthCalendar().