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

#include <cfwl_listbox.h>

Inheritance diagram for pdfium::CFWL_ListBox:
Collaboration diagram for pdfium::CFWL_ListBox:

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
ItemGetItem (const CFWL_Widget *pWidget, int32_t nIndex) const
int32_t GetItemIndex (CFWL_Widget *pWidget, Item *pItem)
ItemAddString (const WideString &wsAdd)
void RemoveAt (int32_t iIndex)
void DeleteString (Item *pItem)
void DeleteAll ()
int32_t CountSelItems ()
ItemGetSelItem (int32_t nIndexSel)
int32_t GetSelIndex (int32_t nIndex)
void SetSelItem (Item *hItem, bool bSelect)
float CalcItemHeight ()
Public Member Functions inherited from pdfium::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_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

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Public Attributes inherited from pdfium::CFWL_Widget
 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Protected Member Functions

 CFWL_ListBox (CFWL_App *pApp, const Properties &properties, CFWL_Widget *pOuter)
ItemGetListItem (Item *hItem, XFA_FWL_VKEYCODE dwKeyCode)
void SetSelection (Item *hStart, Item *hEnd, bool bSelected)
ItemGetItemAtPoint (const CFX_PointF &point)
bool ScrollToVisible (Item *hItem)
void InitVerticalScrollBar ()
void InitHorizontalScrollBar ()
bool IsShowVertScrollBar () const
bool IsShowHorzScrollBar () const
bool ScrollBarPropertiesPresent () const
CFWL_ScrollBarGetVertScrollBar () const
const CFX_RectFGetRTClient () const
Protected Member Functions inherited from pdfium::CFWL_Widget
 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)

Additional Inherited Members

Protected Attributes inherited from pdfium::CFWL_Widget
Properties m_Properties
CFX_RectF m_WidgetRect

Detailed Description

Definition at line 32 of file cfwl_listbox.h.

Constructor & Destructor Documentation

◆ ~CFWL_ListBox()

pdfium::CFWL_ListBox::~CFWL_ListBox ( )
overridedefault

◆ CFWL_ListBox()

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

Definition at line 36 of file cfwl_listbox.cpp.

References pdfium::CFWL_Widget::CFWL_Widget().

Here is the call graph for this function:

Member Function Documentation

◆ AddString()

CFWL_ListBox::Item * pdfium::CFWL_ListBox::AddString ( const WideString & wsAdd)

Definition at line 833 of file cfwl_listbox.cpp.

◆ CalcItemHeight()

float pdfium::CFWL_ListBox::CalcItemHeight ( )

Definition at line 549 of file cfwl_listbox.cpp.

References pdfium::CFWL_Widget::GetThemeProvider(), and pdfium::CFWL_ThemePart::kNone.

Referenced by pdfium::CFWL_ComboBox::ShowDropDownList().

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

◆ CountItems()

int32_t pdfium::CFWL_ListBox::CountItems ( const CFWL_Widget * pWidget) const

Definition at line 812 of file cfwl_listbox.cpp.

Referenced by CountSelItems(), DeleteString(), GetItem(), GetItemAtPoint(), GetListItem(), GetSelIndex(), pdfium::CFWL_ComboList::MatchItem(), SetSelection(), and pdfium::CFWL_ComboBox::ShowDropDownList().

Here is the caller graph for this function:

◆ CountSelItems()

int32_t pdfium::CFWL_ListBox::CountSelItems ( )

Definition at line 112 of file cfwl_listbox.cpp.

References CountItems(), GetItem(), and pdfium::CFWL_ListBox::Item::IsSelected().

Here is the call graph for this function:

◆ DeleteAll()

void pdfium::CFWL_ListBox::DeleteAll ( )

Definition at line 860 of file cfwl_listbox.cpp.

◆ DeleteString()

void pdfium::CFWL_ListBox::DeleteString ( Item * pItem)

Definition at line 844 of file cfwl_listbox.cpp.

References CountItems(), GetItem(), GetItemIndex(), and pdfium::CFWL_ListBox::Item::SetSelected().

Here is the call graph for this function:

◆ DrawWidget()

void pdfium::CFWL_ListBox::DrawWidget ( CFGAS_GEGraphics * pGraphics,
const CFX_Matrix & matrix )
overridevirtual

Implements pdfium::CFWL_Widget.

Definition at line 90 of file cfwl_listbox.cpp.

References CFX_RectF::CFX_RectF(), CFGAS_GEGraphics::StateRestorer::StateRestorer(), pdfium::CFWL_Widget::DrawBorder(), pdfium::CFWL_Widget::HasBorder(), CFX_RectF::height, IsShowHorzScrollBar(), IsShowVertScrollBar(), pdfium::CFWL_ThemePart::kBorder, pdfium::CFWL_Widget::Properties::m_dwStyles, pdfium::CFWL_Widget::m_Properties, CFGAS_GEGraphics::SetClipRect(), CFX_Matrix::TransformRect(), and CFX_RectF::width.

Referenced by OnDrawWidget().

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

◆ GetClassID()

FWL_Type pdfium::CFWL_ListBox::GetClassID ( ) const
overridevirtual

Implements pdfium::CFWL_Widget.

Definition at line 49 of file cfwl_listbox.cpp.

References pdfium::ListBox.

◆ GetItem()

CFWL_ListBox::Item * pdfium::CFWL_ListBox::GetItem ( const CFWL_Widget * pWidget,
int32_t nIndex ) const

Definition at line 816 of file cfwl_listbox.cpp.

References CountItems().

Referenced by pdfium::CFWL_ComboList::ChangeSelected(), CountSelItems(), DeleteString(), GetItemAtPoint(), GetListItem(), GetSelIndex(), GetSelItem(), pdfium::CFWL_ComboList::MatchItem(), and SetSelection().

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

◆ GetItemAtPoint()

CFWL_ListBox::Item * pdfium::CFWL_ListBox::GetItemAtPoint ( const CFX_PointF & point)
protected

Definition at line 268 of file cfwl_listbox.cpp.

References CountItems(), GetItem(), pdfium::CFWL_ListBox::Item::GetRect(), and CFX_RectF::Offset().

Here is the call graph for this function:

◆ GetItemIndex()

int32_t pdfium::CFWL_ListBox::GetItemIndex ( CFWL_Widget * pWidget,
Item * pItem )

Definition at line 823 of file cfwl_listbox.cpp.

Referenced by pdfium::CFWL_ComboList::ChangeSelected(), DeleteString(), GetListItem(), and SetSelection().

Here is the caller graph for this function:

◆ GetListItem()

CFWL_ListBox::Item * pdfium::CFWL_ListBox::GetListItem ( Item * hItem,
XFA_FWL_VKEYCODE dwKeyCode )
protected

Definition at line 162 of file cfwl_listbox.cpp.

References CountItems(), GetItem(), GetItemIndex(), pdfium::XFA_FWL_VKEY_Down, pdfium::XFA_FWL_VKEY_End, pdfium::XFA_FWL_VKEY_Home, and pdfium::XFA_FWL_VKEY_Up.

Here is the call graph for this function:

◆ GetRTClient()

const CFX_RectF & pdfium::CFWL_ListBox::GetRTClient ( ) const
inlineprotected

Definition at line 97 of file cfwl_listbox.h.

◆ GetSelIndex()

int32_t pdfium::CFWL_ListBox::GetSelIndex ( int32_t nIndex)

Definition at line 130 of file cfwl_listbox.cpp.

References CountItems(), GetItem(), and pdfium::CFWL_ListBox::Item::IsSelected().

Referenced by GetSelItem().

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

◆ GetSelItem()

CFWL_ListBox::Item * pdfium::CFWL_ListBox::GetSelItem ( int32_t nIndexSel)

Definition at line 123 of file cfwl_listbox.cpp.

References GetItem(), and GetSelIndex().

Referenced by pdfium::CFWL_ComboList::ChangeSelected().

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

◆ GetVertScrollBar()

CFWL_ScrollBar * pdfium::CFWL_ListBox::GetVertScrollBar ( ) const
inlineprotected

Definition at line 96 of file cfwl_listbox.h.

Referenced by pdfium::CFWL_ComboList::OnProcessMessage().

Here is the caller graph for this function:

◆ HitTest()

FWL_WidgetHit pdfium::CFWL_ListBox::HitTest ( const CFX_PointF & point)
overridevirtual

Reimplemented from pdfium::CFWL_Widget.

Definition at line 74 of file cfwl_listbox.cpp.

References pdfium::Client, CFX_RectF::Contains(), pdfium::HScrollBar, IsShowHorzScrollBar(), IsShowVertScrollBar(), pdfium::Unknown, and pdfium::VScrollBar.

Here is the call graph for this function:

◆ InitHorizontalScrollBar()

void pdfium::CFWL_ListBox::InitHorizontalScrollBar ( )
protected

Definition at line 563 of file cfwl_listbox.cpp.

◆ InitVerticalScrollBar()

void pdfium::CFWL_ListBox::InitVerticalScrollBar ( )
protected

Definition at line 554 of file cfwl_listbox.cpp.

◆ IsShowHorzScrollBar()

bool pdfium::CFWL_ListBox::IsShowHorzScrollBar ( ) const
protected

Definition at line 577 of file cfwl_listbox.cpp.

Referenced by DrawWidget(), and HitTest().

Here is the caller graph for this function:

◆ IsShowVertScrollBar()

bool pdfium::CFWL_ListBox::IsShowVertScrollBar ( ) const
protected

Definition at line 572 of file cfwl_listbox.cpp.

Referenced by DrawWidget(), HitTest(), and pdfium::CFWL_ComboList::OnProcessMessage().

Here is the caller graph for this function:

◆ OnDrawWidget()

void pdfium::CFWL_ListBox::OnDrawWidget ( CFGAS_GEGraphics * pGraphics,
const CFX_Matrix & matrix )
overridevirtual

Implements pdfium::IFWL_WidgetDelegate.

Definition at line 642 of file cfwl_listbox.cpp.

References DrawWidget().

Here is the call graph for this function:

◆ OnProcessEvent()

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

Implements pdfium::IFWL_WidgetDelegate.

Definition at line 627 of file cfwl_listbox.cpp.

References pdfium::CFWL_EventScroll::GetPos(), pdfium::CFWL_EventScroll::GetScrollCode(), pdfium::CFWL_Event::GetSrcTarget(), pdfium::CFWL_Event::GetType(), and pdfium::CFWL_Event::Scroll.

Here is the call graph for this function:

◆ OnProcessMessage()

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

Implements pdfium::IFWL_WidgetDelegate.

Definition at line 587 of file cfwl_listbox.cpp.

References pdfium::CFWL_Message::GetDstTarget(), pdfium::CFWL_Message::GetType(), pdfium::CFWL_Widget::IsEnabled(), pdfium::CFWL_Message::kKey, pdfium::CFWL_MessageKey::kKeyDown, pdfium::CFWL_Message::kKillFocus, pdfium::CFWL_MessageMouse::kLeftButtonDown, pdfium::CFWL_MessageMouse::kLeftButtonUp, pdfium::CFWL_Message::kMouse, pdfium::CFWL_Message::kMouseWheel, pdfium::CFWL_Message::kSetFocus, pdfium::CFWL_MessageKey::m_dwCmd, pdfium::CFWL_MessageMouse::m_dwCmd, and pdfium::CFWL_Widget::OnProcessMessage().

Referenced by pdfium::CFWL_ComboList::OnProcessMessage().

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

◆ RemoveAt()

void pdfium::CFWL_ListBox::RemoveAt ( int32_t iIndex)

Definition at line 838 of file cfwl_listbox.cpp.

◆ ScrollBarPropertiesPresent()

bool pdfium::CFWL_ListBox::ScrollBarPropertiesPresent ( ) const
protected

◆ ScrollToVisible()

bool pdfium::CFWL_ListBox::ScrollToVisible ( Item * hItem)
protected

Definition at line 292 of file cfwl_listbox.cpp.

References CFX_RectF::CFX_RectF(), CFX_RectF::bottom(), pdfium::CFWL_ListBox::Item::GetRect(), CFX_RectF::Offset(), pdfium::CFWL_Widget::RepaintRect(), and CFX_RectF::top.

Here is the call graph for this function:

◆ SetSelection()

void pdfium::CFWL_ListBox::SetSelection ( Item * hStart,
Item * hEnd,
bool bSelected )
protected

Definition at line 192 of file cfwl_listbox.cpp.

References CountItems(), GetItem(), GetItemIndex(), and pdfium::CFWL_ListBox::Item::SetSelected().

Referenced by SetSelItem().

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

◆ SetSelItem()

void pdfium::CFWL_ListBox::SetSelItem ( Item * hItem,
bool bSelect )

Definition at line 146 of file cfwl_listbox.cpp.

References pdfium::CFWL_ListBox::Item::SetSelected(), and SetSelection().

Referenced by pdfium::CFWL_ComboList::ChangeSelected().

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

◆ Trace()

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

Definition at line 43 of file cfwl_listbox.cpp.

◆ Update()

void pdfium::CFWL_ListBox::Update ( )
overridevirtual

Implements pdfium::CFWL_Widget.

Definition at line 53 of file cfwl_listbox.cpp.

References pdfium::CFWL_Widget::IsLocked(), pdfium::kCenter, pdfium::kCenterLeft, pdfium::kCenterRight, pdfium::CFWL_Widget::Properties::m_dwStyleExts, pdfium::CFWL_Widget::m_Properties, and pdfium::FDE_TextStyle::single_line_.

Here is the call graph for this function:

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

pdfium::CFWL_ListBox::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 54 of file cfwl_listbox.h.


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