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_listbox.h>
Classes | |
class | Item |
Public Member Functions | |
~CFWL_ListBox () override | |
void | Trace (cppgc::Visitor *visitor) const override |
FWL_Type | GetClassID () const override |
void | Update () override |
FWL_WidgetHit | HitTest (const CFX_PointF &point) override |
void | DrawWidget (CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override |
void | OnProcessMessage (CFWL_Message *pMessage) override |
void | OnProcessEvent (CFWL_Event *pEvent) override |
void | OnDrawWidget (CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override |
int32_t | CountItems (const CFWL_Widget *pWidget) const |
Item * | GetItem (const CFWL_Widget *pWidget, int32_t nIndex) const |
int32_t | GetItemIndex (CFWL_Widget *pWidget, Item *pItem) |
Item * | AddString (const WideString &wsAdd) |
void | RemoveAt (int32_t iIndex) |
void | DeleteString (Item *pItem) |
void | DeleteAll () |
int32_t | CountSelItems () |
Item * | GetSelItem (int32_t nIndexSel) |
int32_t | GetSelIndex (int32_t nIndex) |
void | SetSelItem (Item *hItem, bool bSelect) |
float | CalcItemHeight () |
Public Member Functions inherited from CFWL_Widget | |
~CFWL_Widget () override | |
virtual void | PreFinalize () |
void | Trace (cppgc::Visitor *visitor) const override |
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) |
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_WidgetMgr * | GetWidgetMgr () const |
CFWL_Widget * | GetOuter () const |
CFWL_Widget * | GetOutmost () 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_ThemeProvider * | GetThemeProvider () const |
void | SetDelegate (IFWL_WidgetDelegate *delegate) |
IFWL_WidgetDelegate * | GetDelegate () |
const IFWL_WidgetDelegate * | GetDelegate () const |
CFWL_App * | GetFWLApp () const |
uint64_t | GetEventKey () const |
void | SetEventKey (uint64_t key) |
AdapterIface * | GetAdapterIface () const |
void | SetAdapterIface (AdapterIface *pItem) |
void | RepaintRect (const CFX_RectF &pRect) |
Public Member Functions inherited from IFWL_WidgetDelegate | |
virtual | ~IFWL_WidgetDelegate ()=default |
Public Attributes | |
CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED | |
Public Attributes inherited from CFWL_Widget | |
CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED | |
Additional Inherited Members | |
Protected Attributes inherited from CFWL_Widget | |
Properties | m_Properties |
CFX_RectF | m_WidgetRect |
Definition at line 30 of file cfwl_listbox.h.
|
overridedefault |
|
protected |
Definition at line 34 of file cfwl_listbox.cpp.
References CFWL_Widget::CFWL_Widget().
CFWL_ListBox::Item * CFWL_ListBox::AddString | ( | const WideString & | wsAdd | ) |
Definition at line 831 of file cfwl_listbox.cpp.
float CFWL_ListBox::CalcItemHeight | ( | ) |
Definition at line 547 of file cfwl_listbox.cpp.
References CFWL_Widget::GetThemeProvider(), and CFWL_ThemePart::kNone.
Referenced by CFWL_ComboBox::ShowDropDownList().
int32_t CFWL_ListBox::CountItems | ( | const CFWL_Widget * | pWidget | ) | const |
Definition at line 810 of file cfwl_listbox.cpp.
Referenced by CountSelItems(), DeleteString(), GetItem(), GetItemAtPoint(), GetListItem(), GetSelIndex(), CFWL_ComboList::MatchItem(), SetSelection(), and CFWL_ComboBox::ShowDropDownList().
int32_t CFWL_ListBox::CountSelItems | ( | ) |
Definition at line 110 of file cfwl_listbox.cpp.
References CountItems(), GetItem(), and CFWL_ListBox::Item::IsSelected().
void CFWL_ListBox::DeleteAll | ( | ) |
Definition at line 858 of file cfwl_listbox.cpp.
Definition at line 842 of file cfwl_listbox.cpp.
References CountItems(), GetItem(), GetItemIndex(), and CFWL_ListBox::Item::SetSelected().
|
overridevirtual |
Implements CFWL_Widget.
Definition at line 88 of file cfwl_listbox.cpp.
References CFX_RectF::CFX_RectF(), CFGAS_GEGraphics::StateRestorer::StateRestorer(), CFWL_Widget::DrawBorder(), CFWL_Widget::HasBorder(), CFX_RectF::height, IsShowHorzScrollBar(), IsShowVertScrollBar(), CFWL_ThemePart::kBorder, CFWL_Widget::Properties::m_dwStyles, CFWL_Widget::m_Properties, CFGAS_GEGraphics::SetClipRect(), CFX_Matrix::TransformRect(), and CFX_RectF::width.
Referenced by OnDrawWidget().
|
overridevirtual |
CFWL_ListBox::Item * CFWL_ListBox::GetItem | ( | const CFWL_Widget * | pWidget, |
int32_t | nIndex ) const |
Definition at line 814 of file cfwl_listbox.cpp.
References CountItems().
Referenced by CFWL_ComboList::ChangeSelected(), CountSelItems(), DeleteString(), GetItemAtPoint(), GetListItem(), GetSelIndex(), GetSelItem(), CFWL_ComboList::MatchItem(), and SetSelection().
|
protected |
Definition at line 266 of file cfwl_listbox.cpp.
References CountItems(), GetItem(), CFWL_ListBox::Item::GetRect(), and CFX_RectF::Offset().
int32_t CFWL_ListBox::GetItemIndex | ( | CFWL_Widget * | pWidget, |
Item * | pItem ) |
Definition at line 821 of file cfwl_listbox.cpp.
Referenced by CFWL_ComboList::ChangeSelected(), DeleteString(), GetListItem(), and SetSelection().
|
protected |
Definition at line 160 of file cfwl_listbox.cpp.
References CountItems(), GetItem(), GetItemIndex(), XFA_FWL_VKEY_Down, XFA_FWL_VKEY_End, XFA_FWL_VKEY_Home, and XFA_FWL_VKEY_Up.
|
inlineprotected |
Definition at line 95 of file cfwl_listbox.h.
int32_t CFWL_ListBox::GetSelIndex | ( | int32_t | nIndex | ) |
Definition at line 128 of file cfwl_listbox.cpp.
References CountItems(), GetItem(), and CFWL_ListBox::Item::IsSelected().
Referenced by GetSelItem().
CFWL_ListBox::Item * CFWL_ListBox::GetSelItem | ( | int32_t | nIndexSel | ) |
Definition at line 121 of file cfwl_listbox.cpp.
References GetItem(), and GetSelIndex().
Referenced by CFWL_ComboList::ChangeSelected().
|
inlineprotected |
Definition at line 94 of file cfwl_listbox.h.
Referenced by CFWL_ComboList::OnProcessMessage().
|
overridevirtual |
Reimplemented from CFWL_Widget.
Definition at line 72 of file cfwl_listbox.cpp.
References Client, CFX_RectF::Contains(), HScrollBar, IsShowHorzScrollBar(), IsShowVertScrollBar(), Unknown, and VScrollBar.
|
protected |
Definition at line 561 of file cfwl_listbox.cpp.
|
protected |
Definition at line 552 of file cfwl_listbox.cpp.
|
protected |
Definition at line 575 of file cfwl_listbox.cpp.
Referenced by DrawWidget(), and HitTest().
|
protected |
Definition at line 570 of file cfwl_listbox.cpp.
Referenced by DrawWidget(), HitTest(), and CFWL_ComboList::OnProcessMessage().
|
overridevirtual |
Implements IFWL_WidgetDelegate.
Definition at line 640 of file cfwl_listbox.cpp.
References DrawWidget().
|
overridevirtual |
Implements IFWL_WidgetDelegate.
Definition at line 625 of file cfwl_listbox.cpp.
References CFWL_EventScroll::GetPos(), CFWL_EventScroll::GetScrollCode(), CFWL_Event::GetSrcTarget(), CFWL_Event::GetType(), and CFWL_Event::Scroll.
|
overridevirtual |
Implements IFWL_WidgetDelegate.
Definition at line 585 of file cfwl_listbox.cpp.
References CFWL_Message::GetDstTarget(), CFWL_Message::GetType(), CFWL_Widget::IsEnabled(), CFWL_Message::kKey, CFWL_MessageKey::kKeyDown, CFWL_Message::kKillFocus, CFWL_MessageMouse::kLeftButtonDown, CFWL_MessageMouse::kLeftButtonUp, CFWL_Message::kMouse, CFWL_Message::kMouseWheel, CFWL_Message::kSetFocus, CFWL_MessageKey::m_dwCmd, CFWL_MessageMouse::m_dwCmd, and CFWL_Widget::OnProcessMessage().
Referenced by CFWL_ComboList::OnProcessMessage().
void CFWL_ListBox::RemoveAt | ( | int32_t | iIndex | ) |
Definition at line 836 of file cfwl_listbox.cpp.
|
protected |
Definition at line 580 of file cfwl_listbox.cpp.
References CFWL_Widget::Properties::m_dwStates, CFWL_Widget::Properties::m_dwStyleExts, and CFWL_Widget::m_Properties.
|
protected |
Definition at line 290 of file cfwl_listbox.cpp.
References CFX_RectF::CFX_RectF(), CFX_RectF::bottom(), CFWL_ListBox::Item::GetRect(), CFX_RectF::Offset(), CFWL_Widget::RepaintRect(), and CFX_RectF::top.
Definition at line 190 of file cfwl_listbox.cpp.
References CountItems(), GetItem(), GetItemIndex(), and CFWL_ListBox::Item::SetSelected().
Referenced by SetSelItem().
Definition at line 144 of file cfwl_listbox.cpp.
References CFWL_ListBox::Item::SetSelected(), and SetSelection().
Referenced by CFWL_ComboList::ChangeSelected().
|
override |
Definition at line 41 of file cfwl_listbox.cpp.
|
overridevirtual |
Implements CFWL_Widget.
Definition at line 51 of file cfwl_listbox.cpp.
References CFWL_Widget::IsLocked(), kCenter, kCenterLeft, kCenterRight, CFWL_Widget::Properties::m_dwStyleExts, CFWL_Widget::m_Properties, and FDE_TextStyle::single_line_.
CFWL_ListBox::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED |
Definition at line 52 of file cfwl_listbox.h.