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

#include <cpwl_caret.h>

+ Inheritance diagram for CPWL_Caret:
+ Collaboration diagram for CPWL_Caret:

Public Member Functions

 CPWL_Caret (const CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData)
 
 ~CPWL_Caret () override
 
void DrawThisAppearance (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device) override
 
bool InvalidateRect (const CFX_FloatRect *pRect) override
 
bool SetVisible (bool bVisible) override
 
void OnTimerFired () override
 
void SetCaret (bool bVisible, const CFX_PointF &ptHead, const CFX_PointF &ptFoot)
 
void SetInvalidRect (const CFX_FloatRect &rc)
 
- Public Member Functions inherited from CPWL_Wnd
 CPWL_Wnd (const CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData)
 
virtual ~CPWL_Wnd ()
 
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 OnLButtonDown (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point)
 
virtual bool OnLButtonUp (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 SetScrollInfo (const PWL_SCROLL_INFO &info)
 
virtual void SetScrollPosition (float pos)
 
virtual void ScrollWindowVertically (float pos)
 
virtual void NotifyLButtonDown (CPWL_Wnd *child, const CFX_PointF &pos)
 
virtual void NotifyLButtonUp (CPWL_Wnd *child, const CFX_PointF &pos)
 
virtual void NotifyMouseMove (CPWL_Wnd *child, const CFX_PointF &pos)
 
virtual void SetFocus ()
 
virtual void KillFocus ()
 
virtual void SetCursor ()
 
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
 

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)
 
- Static Public Attributes inherited from CPWL_Wnd
static const CFX_Color kDefaultBlackColor
 
static const CFX_Color kDefaultWhiteColor
 
- Protected Member Functions inherited from CPWL_Wnd
virtual void CreateChildWnd (const CreateParams &cp)
 
virtual bool RepositionChildWnd ()
 
virtual void OnCreated ()
 
virtual void OnDestroy ()
 
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 15 of file cpwl_caret.h.

Constructor & Destructor Documentation

◆ CPWL_Caret()

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

Definition at line 17 of file cpwl_caret.cpp.

◆ ~CPWL_Caret()

CPWL_Caret::~CPWL_Caret ( )
overridedefault

Member Function Documentation

◆ DrawThisAppearance()

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

Reimplemented from CPWL_Wnd.

Definition at line 24 of file cpwl_caret.cpp.

References CFX_Path::AppendPoint(), ArgbEncode(), CFX_FloatRect::bottom, CFX_RenderDevice::DrawPath(), CFX_FillRenderOptions::EvenOddOptions(), CPWL_Wnd::GetClipRect(), CFX_FloatRect::Intersect(), CFX_FloatRect::IsEmpty(), CPWL_Wnd::IsVisible(), CFX_Path::Point::kLine, CFX_Path::Point::kMove, CFX_FloatRect::left, CFX_GraphStateData::m_LineWidth, and CFX_FloatRect::top.

+ Here is the call graph for this function:

◆ InvalidateRect()

bool CPWL_Caret::InvalidateRect ( const CFX_FloatRect * pRect)
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 114 of file cpwl_caret.cpp.

References CFX_FloatRect::bottom, CFX_FloatRect::Inflate(), CPWL_Wnd::InvalidateRect(), CFX_FloatRect::IsEmpty(), CFX_FloatRect::Normalize(), and CFX_FloatRect::top.

Referenced by OnTimerFired().

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

◆ OnTimerFired()

void CPWL_Caret::OnTimerFired ( )
overridevirtual

Implements CFX_Timer::CallbackIface.

Definition at line 56 of file cpwl_caret.cpp.

References InvalidateRect().

+ Here is the call graph for this function:

◆ SetCaret()

void CPWL_Caret::SetCaret ( bool bVisible,
const CFX_PointF & ptHead,
const CFX_PointF & ptFoot )

Definition at line 68 of file cpwl_caret.cpp.

References CPWL_Wnd::IsVisible(), CPWL_Wnd::Move(), and CPWL_Wnd::SetVisible().

+ Here is the call graph for this function:

◆ SetInvalidRect()

void CPWL_Caret::SetInvalidRect ( const CFX_FloatRect & rc)
inline

Definition at line 33 of file cpwl_caret.h.

References CFX_FloatRect::operator=().

+ Here is the call graph for this function:

◆ SetVisible()

bool CPWL_Caret::SetVisible ( bool bVisible)
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 128 of file cpwl_caret.cpp.


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