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
CPWL_ScrollBar Class Referencefinal

#include <cpwl_scroll_bar.h>

+ Inheritance diagram for CPWL_ScrollBar:
+ Collaboration diagram for CPWL_ScrollBar:

Public Member Functions

 CPWL_ScrollBar (const CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData)
 
 ~CPWL_ScrollBar () override
 
void OnDestroy () override
 
bool RepositionChildWnd () override
 
void DrawThisAppearance (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device) override
 
bool OnLButtonDown (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override
 
bool OnLButtonUp (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override
 
void SetScrollInfo (const PWL_SCROLL_INFO &info) override
 
void SetScrollPosition (float pos) override
 
void NotifyLButtonDown (CPWL_Wnd *child, const CFX_PointF &pos) override
 
void NotifyLButtonUp (CPWL_Wnd *child, const CFX_PointF &pos) override
 
void NotifyMouseMove (CPWL_Wnd *child, const CFX_PointF &pos) override
 
void CreateChildWnd (const CreateParams &cp) override
 
void OnTimerFired () override
 
float GetScrollBarWidth () const
 
- Public Member Functions inherited from CPWL_Wnd
 CPWL_Wnd (const CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData)
 
virtual ~CPWL_Wnd ()
 
virtual bool InvalidateRect (const CFX_FloatRect *pRect)
 
virtual bool OnKeyDown (FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlag)
 
virtual bool OnChar (uint16_t nChar, Mask< FWL_EVENTFLAG > nFlag)
 
virtual bool OnLButtonDblClk (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point)
 
virtual bool OnRButtonDown (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point)
 
virtual bool OnRButtonUp (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point)
 
virtual bool OnMouseMove (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point)
 
virtual bool OnMouseWheel (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point, const CFX_Vector &delta)
 
virtual void ScrollWindowVertically (float pos)
 
virtual void SetFocus ()
 
virtual void KillFocus ()
 
virtual void SetCursor ()
 
virtual bool SetVisible (bool bVisible)
 
virtual void SetFontSize (float fFontSize)
 
virtual float GetFontSize () const
 
virtual WideString GetText ()
 
virtual WideString GetSelectedText ()
 
virtual void ReplaceAndKeepSelection (const WideString &text)
 
virtual void ReplaceSelection (const WideString &text)
 
virtual bool SelectAllText ()
 
virtual bool CanUndo ()
 
virtual bool CanRedo ()
 
virtual bool Undo ()
 
virtual bool Redo ()
 
virtual CFX_FloatRect GetFocusRect () const
 
virtual CFX_FloatRect GetClientRect () const
 
virtual void OnSetFocus ()
 
virtual void OnKillFocus ()
 
void AddChild (std::unique_ptr< CPWL_Wnd > pWnd)
 
void RemoveChild (CPWL_Wnd *pWnd)
 
void Realize ()
 
void Destroy ()
 
bool Move (const CFX_FloatRect &rcNew, bool bReset, bool bRefresh)
 
void InvalidateProvider (ProviderIface *provider)
 
void DrawAppearance (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device)
 
int32_t GetBorderWidth () const
 
CFX_FloatRect GetWindowRect () const
 
bool IsVisible () const
 
bool HasFlag (uint32_t dwFlags) const
 
void RemoveFlag (uint32_t dwFlags)
 
void SetClipRect (const CFX_FloatRect &rect)
 
IPWL_FillerNotify::PerWindowDataGetAttachedData () const
 
std::unique_ptr< IPWL_FillerNotify::PerWindowDataCloneAttachedData () const
 
std::vector< UnownedPtr< CPWL_Wnd > > GetAncestors ()
 
bool WndHitTest (const CFX_PointF &point) const
 
bool ClientHitTest (const CFX_PointF &point) const
 
bool IsCaptureMouse () const
 
bool IsFocused () const
 
bool IsReadOnly () const
 
void SetTransparency (int32_t nTransparency)
 
CFX_Matrix GetWindowMatrix () const
 
- Public Member Functions inherited from fxcrt::Observable
 Observable ()
 
 Observable (const Observable &that)=delete
 
Observableoperator= (const Observable &that)=delete
 
 ~Observable ()
 
void AddObserver (ObserverIface *pObserver)
 
void RemoveObserver (ObserverIface *pObserver)
 
void NotifyObservers ()
 
- Public Member Functions inherited from CFX_Timer::CallbackIface
virtual ~CallbackIface ()=default
 

Static Public Attributes

static constexpr float kWidth = 12.0f
 
static constexpr uint8_t kTransparency = 150
 
- Static Public Attributes inherited from CPWL_Wnd
static const CFX_Color kDefaultBlackColor
 
static const CFX_Color kDefaultWhiteColor
 

Additional Inherited Members

- Static Public Member Functions inherited from CPWL_Wnd
static bool IsSHIFTKeyDown (Mask< FWL_EVENTFLAG > nFlag)
 
static bool IsCTRLKeyDown (Mask< FWL_EVENTFLAG > nFlag)
 
static bool IsALTKeyDown (Mask< FWL_EVENTFLAG > nFlag)
 
static bool IsMETAKeyDown (Mask< FWL_EVENTFLAG > nFlag)
 
static bool IsPlatformShortcutKey (Mask< FWL_EVENTFLAG > nFlag)
 
- Protected Member Functions inherited from CPWL_Wnd
virtual void OnCreated ()
 
bool IsValid () const
 
CreateParamsGetCreationParams ()
 
ProviderIfaceGetProvider () const
 
CFX_Timer::HandlerIfaceGetTimerHandler () const
 
IPWL_FillerNotifyGetFillerNotify () const
 
CPWL_WndGetParentWindow () const
 
CPWL_ScrollBarGetVScrollBar () const
 
bool InvalidateRectMove (const CFX_FloatRect &rcOld, const CFX_FloatRect &rcNew)
 
void SetCapture ()
 
void ReleaseCapture ()
 
bool IsWndCaptureMouse (const CPWL_Wnd *pWnd) const
 
bool IsWndCaptureKeyboard (const CPWL_Wnd *pWnd) const
 
CFX_Color GetBackgroundColor () const
 
CFX_Color GetBorderColor () const
 
CFX_Color GetTextColor () const
 
CFX_Color GetBorderLeftTopColor (BorderStyle nBorderStyle) const
 
CFX_Color GetBorderRightBottomColor (BorderStyle nBorderStyle) const
 
BorderStyle GetBorderStyle () const
 
const CPWL_DashGetBorderDash () const
 
int32_t GetTransparency ()
 
int32_t GetInnerBorderWidth () const
 
CFX_PointF GetCenterPoint () const
 
const CFX_FloatRectGetClipRect () const
 
IPVT_FontMapGetFontMap () const
 
- Protected Member Functions inherited from fxcrt::Observable
size_t ActiveObserversForTesting () const
 

Detailed Description

Definition at line 92 of file cpwl_scroll_bar.h.

Constructor & Destructor Documentation

◆ CPWL_ScrollBar()

CPWL_ScrollBar::CPWL_ScrollBar ( const CreateParams & cp,
std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData )

Definition at line 108 of file cpwl_scroll_bar.cpp.

References CPWL_Wnd::GetCreationParams(), and IPWL_FillerNotify::kArrow.

+ Here is the call graph for this function:

◆ ~CPWL_ScrollBar()

CPWL_ScrollBar::~CPWL_ScrollBar ( )
overridedefault

Member Function Documentation

◆ CreateChildWnd()

void CPWL_ScrollBar::CreateChildWnd ( const CreateParams & cp)
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 517 of file cpwl_scroll_bar.cpp.

◆ DrawThisAppearance()

void CPWL_ScrollBar::DrawThisAppearance ( CFX_RenderDevice * pDevice,
const CFX_Matrix & mtUser2Device )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 169 of file cpwl_scroll_bar.cpp.

References CFX_FloatRect::bottom, CFX_RenderDevice::DrawStrokeLine(), CPWL_Wnd::GetBackgroundColor(), CPWL_Wnd::GetTransparency(), CPWL_Wnd::GetWindowRect(), CFX_FloatRect::IsEmpty(), CPWL_Wnd::IsVisible(), CFX_FloatRect::left, CFX_FloatRect::right, and CFX_FloatRect::top.

+ Here is the call graph for this function:

◆ GetScrollBarWidth()

float CPWL_ScrollBar::GetScrollBarWidth ( ) const

Definition at line 326 of file cpwl_scroll_bar.cpp.

References CPWL_Wnd::IsVisible(), and kWidth.

Referenced by CPWL_Wnd::GetClientRect().

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

◆ NotifyLButtonDown()

void CPWL_ScrollBar::NotifyLButtonDown ( CPWL_Wnd * child,
const CFX_PointF & pos )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 265 of file cpwl_scroll_bar.cpp.

◆ NotifyLButtonUp()

void CPWL_ScrollBar::NotifyLButtonUp ( CPWL_Wnd * child,
const CFX_PointF & pos )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 274 of file cpwl_scroll_bar.cpp.

◆ NotifyMouseMove()

void CPWL_ScrollBar::NotifyMouseMove ( CPWL_Wnd * child,
const CFX_PointF & pos )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 283 of file cpwl_scroll_bar.cpp.

◆ OnDestroy()

void CPWL_ScrollBar::OnDestroy ( )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 117 of file cpwl_scroll_bar.cpp.

References CPWL_Wnd::OnDestroy().

+ Here is the call graph for this function:

◆ OnLButtonDown()

bool CPWL_ScrollBar::OnLButtonDown ( Mask< FWL_EVENTFLAG > nFlag,
const CFX_PointF & point )
overridevirtual

◆ OnLButtonUp()

bool CPWL_ScrollBar::OnLButtonUp ( Mask< FWL_EVENTFLAG > nFlag,
const CFX_PointF & point )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 232 of file cpwl_scroll_bar.cpp.

References CPWL_Wnd::GetTransparency(), CPWL_Wnd::HasFlag(), CPWL_Wnd::InvalidateRect(), kTransparency, CPWL_Wnd::OnLButtonUp(), and CPWL_Wnd::SetTransparency().

+ Here is the call graph for this function:

◆ OnTimerFired()

void CPWL_ScrollBar::OnTimerFired ( )
overridevirtual

Implements CFX_Timer::CallbackIface.

Definition at line 521 of file cpwl_scroll_bar.cpp.

References PWL_SCROLL_PRIVATEDATA::AddSmall(), PWL_SCROLL_PRIVATEDATA::operator==(), and PWL_SCROLL_PRIVATEDATA::SubSmall().

+ Here is the call graph for this function:

◆ RepositionChildWnd()

bool CPWL_ScrollBar::RepositionChildWnd ( )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 128 of file cpwl_scroll_bar.cpp.

References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::bottom, CPWL_Wnd::GetClientRect(), CFX_FloatRect::left, CFX_FloatRect::operator=(), CFX_FloatRect::right, CPWL_Wnd::SetVisible(), and CFX_FloatRect::top.

+ Here is the call graph for this function:

◆ SetScrollInfo()

void CPWL_ScrollBar::SetScrollInfo ( const PWL_SCROLL_INFO & info)
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 249 of file cpwl_scroll_bar.cpp.

References PWL_SCROLL_INFO::fBigStep, PWL_SCROLL_INFO::fContentMax, PWL_SCROLL_INFO::fContentMin, PWL_SCROLL_INFO::fPlateWidth, PWL_SCROLL_INFO::fSmallStep, and PWL_SCROLL_INFO::operator==().

+ Here is the call graph for this function:

◆ SetScrollPosition()

void CPWL_ScrollBar::SetScrollPosition ( float pos)
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 260 of file cpwl_scroll_bar.cpp.

References PWL_SCROLL_INFO::fContentMax.

Member Data Documentation

◆ kTransparency

uint8_t CPWL_ScrollBar::kTransparency = 150
staticconstexpr

Definition at line 95 of file cpwl_scroll_bar.h.

Referenced by OnLButtonUp().

◆ kWidth

float CPWL_ScrollBar::kWidth = 12.0f
staticconstexpr

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