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

#include <cpwl_wnd.h>

+ Inheritance diagram for CPWL_Wnd:
+ Collaboration diagram for CPWL_Wnd:

Classes

class  CreateParams
 
class  ProviderIface
 
class  SharedCaptureFocusState
 

Public Member Functions

 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 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 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 ()
 

Static Public Member Functions

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

static const CFX_Color kDefaultBlackColor
 
static const CFX_Color kDefaultWhiteColor
 

Protected Member Functions

virtual void CreateChildWnd (const CreateParams &cp)
 
virtual bool RepositionChildWnd ()
 
virtual void DrawThisAppearance (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device)
 
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 77 of file cpwl_wnd.h.

Constructor & Destructor Documentation

◆ CPWL_Wnd()

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

Definition at line 151 of file cpwl_wnd.cpp.

References CPWL_Wnd().

Referenced by CPWL_Wnd().

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

◆ ~CPWL_Wnd()

CPWL_Wnd::~CPWL_Wnd ( )
virtual

Definition at line 156 of file cpwl_wnd.cpp.

Member Function Documentation

◆ AddChild()

void CPWL_Wnd::AddChild ( std::unique_ptr< CPWL_Wnd > pWnd)

Definition at line 410 of file cpwl_wnd.cpp.

◆ CanRedo()

bool CPWL_Wnd::CanRedo ( )
virtual

Reimplemented in CPWL_ComboBox, and CPWL_Edit.

Definition at line 381 of file cpwl_wnd.cpp.

Referenced by CFFL_FormField::CanRedo().

+ Here is the caller graph for this function:

◆ CanUndo()

bool CPWL_Wnd::CanUndo ( )
virtual

Reimplemented in CPWL_ComboBox, and CPWL_Edit.

Definition at line 377 of file cpwl_wnd.cpp.

Referenced by CFFL_FormField::CanUndo().

+ Here is the caller graph for this function:

◆ ClientHitTest()

bool CPWL_Wnd::ClientHitTest ( const CFX_PointF & point) const

Definition at line 571 of file cpwl_wnd.cpp.

References CFX_FloatRect::Contains(), GetClientRect(), IsValid(), and IsVisible().

Referenced by CPWL_Edit::OnLButtonDown(), CPWL_ListBox::OnLButtonDown(), CPWL_CBListBox::OnLButtonUp(), CPWL_Edit::OnLButtonUp(), and CPWL_Edit::OnRButtonUp().

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

◆ CloneAttachedData()

std::unique_ptr< IPWL_FillerNotify::PerWindowData > CPWL_Wnd::CloneAttachedData ( ) const

Definition at line 554 of file cpwl_wnd.cpp.

◆ CreateChildWnd()

void CPWL_Wnd::CreateChildWnd ( const CreateParams & cp)
protectedvirtual

Reimplemented in CPWL_ComboBox, CPWL_Edit, and CPWL_ScrollBar.

Definition at line 638 of file cpwl_wnd.cpp.

Referenced by Realize().

+ Here is the caller graph for this function:

◆ Destroy()

void CPWL_Wnd::Destroy ( )

Definition at line 194 of file cpwl_wnd.cpp.

References KillFocus(), and OnDestroy().

+ Here is the call graph for this function:

◆ DrawAppearance()

void CPWL_Wnd::DrawAppearance ( CFX_RenderDevice * pDevice,
const CFX_Matrix & mtUser2Device )

Definition at line 242 of file cpwl_wnd.cpp.

References DrawThisAppearance(), IsValid(), and IsVisible().

Referenced by CFFL_FormField::OnDraw().

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

◆ DrawThisAppearance()

void CPWL_Wnd::DrawThisAppearance ( CFX_RenderDevice * pDevice,
const CFX_Matrix & mtUser2Device )
protectedvirtual

Reimplemented in CPWL_Caret, CPWL_CBButton, CPWL_Edit, CPWL_ListBox, CPWL_SBButton, and CPWL_ScrollBar.

Definition at line 250 of file cpwl_wnd.cpp.

References CFX_RenderDevice::DrawBorder(), CFX_RenderDevice::DrawFillRect(), GetBackgroundColor(), GetBorderColor(), GetBorderLeftTopColor(), GetBorderRightBottomColor(), GetBorderStyle(), GetBorderWidth(), CFX_FloatRect::GetDeflated(), GetInnerBorderWidth(), GetTransparency(), GetWindowRect(), HasFlag(), and CFX_FloatRect::IsEmpty().

Referenced by DrawAppearance(), CPWL_CBButton::DrawThisAppearance(), CPWL_Edit::DrawThisAppearance(), and CPWL_ListBox::DrawThisAppearance().

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

◆ GetAncestors()

std::vector< UnownedPtr< CPWL_Wnd > > CPWL_Wnd::GetAncestors ( )

Definition at line 559 of file cpwl_wnd.cpp.

References GetParentWindow().

+ Here is the call graph for this function:

◆ GetAttachedData()

IPWL_FillerNotify::PerWindowData * CPWL_Wnd::GetAttachedData ( ) const
inline

Definition at line 209 of file cpwl_wnd.h.

Referenced by CFFL_FormField::CreateOrUpdatePWLWindow(), CPWL_ListBox::DrawThisAppearance(), CFFL_FormField::GetPerPWLWindowData(), GetWindowMatrix(), CPWL_ComboBox::OnChar(), CPWL_Edit::OnChar(), CPWL_ComboBox::OnKeyDown(), CPWL_Edit::OnKeyDown(), and CPWL_ListBox::OnNotifySelectionChanged().

+ Here is the caller graph for this function:

◆ GetBackgroundColor()

CFX_Color CPWL_Wnd::GetBackgroundColor ( ) const
protected

Definition at line 470 of file cpwl_wnd.cpp.

Referenced by CPWL_ScrollBar::DrawThisAppearance(), DrawThisAppearance(), and GetBorderRightBottomColor().

+ Here is the caller graph for this function:

◆ GetBorderColor()

CFX_Color CPWL_Wnd::GetBorderColor ( ) const
protected

Definition at line 490 of file cpwl_wnd.cpp.

Referenced by CPWL_Edit::DrawThisAppearance(), and DrawThisAppearance().

+ Here is the caller graph for this function:

◆ GetBorderDash()

const CPWL_Dash & CPWL_Wnd::GetBorderDash ( ) const
protected

Definition at line 494 of file cpwl_wnd.cpp.

Referenced by CPWL_Edit::DrawThisAppearance().

+ Here is the caller graph for this function:

◆ GetBorderLeftTopColor()

CFX_Color CPWL_Wnd::GetBorderLeftTopColor ( BorderStyle nBorderStyle) const
protected

Definition at line 706 of file cpwl_wnd.cpp.

References CFX_Color::CFX_Color(), kBeveled, CFX_Color::kGray, and kInset.

Referenced by DrawThisAppearance().

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

◆ GetBorderRightBottomColor()

CFX_Color CPWL_Wnd::GetBorderRightBottomColor ( BorderStyle nBorderStyle) const
protected

Definition at line 717 of file cpwl_wnd.cpp.

References CFX_Color::CFX_Color(), GetBackgroundColor(), kBeveled, CFX_Color::kGray, kInset, and CFX_Color::operator/().

Referenced by DrawThisAppearance().

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

◆ GetBorderStyle()

BorderStyle CPWL_Wnd::GetBorderStyle ( ) const
protected

Definition at line 478 of file cpwl_wnd.cpp.

Referenced by CPWL_Edit::DrawThisAppearance(), and DrawThisAppearance().

+ Here is the caller graph for this function:

◆ GetBorderWidth()

int32_t CPWL_Wnd::GetBorderWidth ( ) const

Definition at line 482 of file cpwl_wnd.cpp.

Referenced by CPWL_Edit::DrawThisAppearance(), DrawThisAppearance(), CPWL_Edit::GetClientRect(), GetClientRect(), CPWL_PushButton::GetFocusRect(), CPWL_ListBox::GetListRect(), CPWL_ComboBox::RepositionChildWnd(), and RepositionChildWnd().

+ Here is the caller graph for this function:

◆ GetCenterPoint()

CFX_PointF CPWL_Wnd::GetCenterPoint ( ) const
protected

Definition at line 456 of file cpwl_wnd.cpp.

References CFX_FloatRect::bottom, GetClientRect(), CFX_FloatRect::left, CFX_FloatRect::right, and CFX_FloatRect::top.

+ Here is the call graph for this function:

◆ GetClientRect()

CFX_FloatRect CPWL_Wnd::GetClientRect ( ) const
virtual

Reimplemented in CPWL_Edit.

Definition at line 444 of file cpwl_wnd.cpp.

References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::Contains(), GetBorderWidth(), CFX_FloatRect::GetDeflated(), GetInnerBorderWidth(), CPWL_ScrollBar::GetScrollBarWidth(), GetVScrollBar(), GetWindowRect(), CFX_FloatRect::Normalize(), and CFX_FloatRect::right.

Referenced by ClientHitTest(), CPWL_ListBox::DrawThisAppearance(), GetCenterPoint(), CPWL_ListBox::GetFocusRect(), CPWL_ScrollBar::OnLButtonDown(), CPWL_ComboBox::RepositionChildWnd(), and CPWL_ScrollBar::RepositionChildWnd().

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

◆ GetClipRect()

const CFX_FloatRect & CPWL_Wnd::GetClipRect ( ) const
protected

Definition at line 606 of file cpwl_wnd.cpp.

Referenced by CPWL_Caret::DrawThisAppearance(), and InvalidateRect().

+ Here is the caller graph for this function:

◆ GetCreationParams()

CreateParams * CPWL_Wnd::GetCreationParams ( )
inlineprotected

Definition at line 238 of file cpwl_wnd.h.

Referenced by CPWL_Button::CPWL_Button(), CPWL_ComboBox::CPWL_ComboBox(), CPWL_Edit::CPWL_Edit(), CPWL_SBButton::CPWL_SBButton(), CPWL_ScrollBar::CPWL_ScrollBar(), CPWL_Edit::OnCreated(), and SetCursor().

+ Here is the caller graph for this function:

◆ GetFillerNotify()

IPWL_FillerNotify * CPWL_Wnd::GetFillerNotify ( ) const
inlineprotected

Definition at line 245 of file cpwl_wnd.h.

Referenced by CPWL_ListBox::DrawThisAppearance(), CPWL_ComboBox::OnChar(), CPWL_Edit::OnChar(), CPWL_ComboBox::OnKeyDown(), CPWL_Edit::OnKeyDown(), CPWL_ListBox::OnNotifySelectionChanged(), CPWL_Edit::SetCursor(), and SetCursor().

+ Here is the caller graph for this function:

◆ GetFocusRect()

CFX_FloatRect CPWL_Wnd::GetFocusRect ( ) const
virtual

Reimplemented in CPWL_ComboBox, CPWL_Edit, CPWL_ListBox, and CPWL_PushButton.

Definition at line 689 of file cpwl_wnd.cpp.

References GetWindowRect(), CFX_FloatRect::Inflate(), CFX_FloatRect::IsEmpty(), and CFX_FloatRect::Normalize().

Referenced by CFFL_FormField::GetFocusBox(), and CPWL_ListBox::GetFocusRect().

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

◆ GetFontMap()

IPVT_FontMap * CPWL_Wnd::GetFontMap ( ) const
inlineprotected

Definition at line 274 of file cpwl_wnd.h.

Referenced by CPWL_Edit::OnChar(), and CPWL_Edit::SetCharArray().

+ Here is the caller graph for this function:

◆ GetFontSize()

float CPWL_Wnd::GetFontSize ( ) const
virtual

Reimplemented in CPWL_Edit, and CPWL_ListBox.

Definition at line 698 of file cpwl_wnd.cpp.

◆ GetInnerBorderWidth()

int32_t CPWL_Wnd::GetInnerBorderWidth ( ) const
protected

Definition at line 486 of file cpwl_wnd.cpp.

Referenced by DrawThisAppearance(), CPWL_Edit::GetClientRect(), GetClientRect(), CPWL_ListBox::GetListRect(), and RepositionChildWnd().

+ Here is the caller graph for this function:

◆ GetParentWindow()

CPWL_Wnd * CPWL_Wnd::GetParentWindow ( ) const
inlineprotected

Definition at line 249 of file cpwl_wnd.h.

Referenced by GetAncestors(), CPWL_CBButton::OnLButtonDown(), CPWL_SBButton::OnLButtonDown(), CPWL_CBListBox::OnLButtonUp(), CPWL_SBButton::OnLButtonUp(), and CPWL_SBButton::OnMouseMove().

+ Here is the caller graph for this function:

◆ GetProvider()

ProviderIface * CPWL_Wnd::GetProvider ( ) const
inlineprotected

Definition at line 239 of file cpwl_wnd.h.

Referenced by GetWindowMatrix(), and CPWL_Edit::OnSetFocus().

+ Here is the caller graph for this function:

◆ GetSelectedText()

WideString CPWL_Wnd::GetSelectedText ( )
virtual

Reimplemented in CPWL_ComboBox, and CPWL_Edit.

Definition at line 365 of file cpwl_wnd.cpp.

References fxcrt::WideString::WideString().

Referenced by CFFL_FormField::GetSelectedText().

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

◆ GetText()

WideString CPWL_Wnd::GetText ( )
virtual

Reimplemented in CPWL_ComboBox, CPWL_Edit, and CPWL_ListBox.

Definition at line 361 of file cpwl_wnd.cpp.

References fxcrt::WideString::WideString().

Referenced by CFFL_FormField::GetText().

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

◆ GetTextColor()

CFX_Color CPWL_Wnd::GetTextColor ( ) const
protected

Definition at line 474 of file cpwl_wnd.cpp.

◆ GetTimerHandler()

CFX_Timer::HandlerIface * CPWL_Wnd::GetTimerHandler ( ) const
inlineprotected

Definition at line 242 of file cpwl_wnd.h.

◆ GetTransparency()

int32_t CPWL_Wnd::GetTransparency ( )
protected

Definition at line 728 of file cpwl_wnd.cpp.

Referenced by CPWL_CBButton::DrawThisAppearance(), CPWL_SBButton::DrawThisAppearance(), CPWL_ScrollBar::DrawThisAppearance(), DrawThisAppearance(), CPWL_ScrollBar::OnLButtonDown(), and CPWL_ScrollBar::OnLButtonUp().

+ Here is the caller graph for this function:

◆ GetVScrollBar()

CPWL_ScrollBar * CPWL_Wnd::GetVScrollBar ( ) const
protected

Definition at line 498 of file cpwl_wnd.cpp.

Referenced by CPWL_Edit::GetClientRect(), GetClientRect(), CPWL_Edit::OnCreated(), CPWL_Edit::OnKillFocus(), CPWL_ListBox::OnSetScrollInfoY(), CPWL_Edit::RepositionChildWnd(), RepositionChildWnd(), CPWL_Edit::SetScrollInfo(), CPWL_ListBox::SetScrollInfo(), CPWL_Edit::SetScrollPosition(), and CPWL_ListBox::SetScrollPosition().

+ Here is the caller graph for this function:

◆ GetWindowMatrix()

CFX_Matrix CPWL_Wnd::GetWindowMatrix ( ) const

Definition at line 739 of file cpwl_wnd.cpp.

References CFX_Matrix::Concat(), GetAttachedData(), GetProvider(), and CPWL_Wnd::ProviderIface::GetWindowMatrix().

+ Here is the call graph for this function:

◆ GetWindowRect()

CFX_FloatRect CPWL_Wnd::GetWindowRect ( ) const

◆ HasFlag()

bool CPWL_Wnd::HasFlag ( uint32_t dwFlags) const

Definition at line 462 of file cpwl_wnd.cpp.

Referenced by CPWL_Edit::DrawThisAppearance(), DrawThisAppearance(), InvalidateRect(), IsReadOnly(), CPWL_ComboBox::OnChar(), CPWL_ListBox::OnCreated(), CPWL_Edit::OnLButtonDown(), CPWL_ScrollBar::OnLButtonDown(), CPWL_ScrollBar::OnLButtonUp(), CPWL_Edit::OnMouseWheel(), CPWL_Edit::OnRButtonUp(), Realize(), and CPWL_Edit::SetCharArray().

+ Here is the caller graph for this function:

◆ InvalidateProvider()

void CPWL_Wnd::InvalidateProvider ( ProviderIface * provider)

Definition at line 189 of file cpwl_wnd.cpp.

◆ InvalidateRect()

bool CPWL_Wnd::InvalidateRect ( const CFX_FloatRect * pRect)
nodiscardvirtual

Reimplemented in CPWL_Caret.

Definition at line 278 of file cpwl_wnd.cpp.

References GetClipRect(), GetWindowRect(), HasFlag(), CFX_FloatRect::Inflate(), CFX_FloatRect::Intersect(), CFX_FloatRect::IsEmpty(), IsValid(), and CFX_FloatRect::Normalize().

Referenced by CPWL_Caret::InvalidateRect(), InvalidateRectMove(), CPWL_ListBox::OnInvalidateRect(), CPWL_Edit::OnLButtonDown(), CPWL_ScrollBar::OnLButtonDown(), CPWL_ScrollBar::OnLButtonUp(), and SetVisible().

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

◆ InvalidateRectMove()

bool CPWL_Wnd::InvalidateRectMove ( const CFX_FloatRect & rcOld,
const CFX_FloatRect & rcNew )
nodiscardprotected

Definition at line 234 of file cpwl_wnd.cpp.

References InvalidateRect(), and CFX_FloatRect::Union().

Referenced by Move().

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

◆ IsALTKeyDown()

bool CPWL_Wnd::IsALTKeyDown ( Mask< FWL_EVENTFLAG > nFlag)
static

Definition at line 133 of file cpwl_wnd.cpp.

References FWL_EVENTFLAG_AltKey.

Referenced by CPDFSDK_PageView::OnKeyDown().

+ Here is the caller graph for this function:

◆ IsCaptureMouse()

bool CPWL_Wnd::IsCaptureMouse ( ) const

Definition at line 670 of file cpwl_wnd.cpp.

References IsWndCaptureMouse().

+ Here is the call graph for this function:

◆ IsCTRLKeyDown()

◆ IsFocused()

bool CPWL_Wnd::IsFocused ( ) const

Definition at line 684 of file cpwl_wnd.cpp.

References CPWL_Wnd::SharedCaptureFocusState::IsMainCaptureKeyboard().

Referenced by CPWL_Edit::OnLButtonUp().

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

◆ IsMETAKeyDown()

bool CPWL_Wnd::IsMETAKeyDown ( Mask< FWL_EVENTFLAG > nFlag)
static

Definition at line 138 of file cpwl_wnd.cpp.

References FWL_EVENTFLAG_MetaKey.

◆ IsPlatformShortcutKey()

bool CPWL_Wnd::IsPlatformShortcutKey ( Mask< FWL_EVENTFLAG > nFlag)
static

Definition at line 143 of file cpwl_wnd.cpp.

References IsCTRLKeyDown().

+ Here is the call graph for this function:

◆ IsReadOnly()

bool CPWL_Wnd::IsReadOnly ( ) const

Definition at line 610 of file cpwl_wnd.cpp.

References HasFlag().

Referenced by CPWL_Edit::CanCut(), CPWL_Edit::CreateChildWnd(), CFFL_CheckBox::OnChar(), CFFL_RadioButton::OnChar(), CPWL_CheckBox::OnChar(), CPWL_RadioButton::OnChar(), CPWL_CheckBox::OnLButtonUp(), CPWL_RadioButton::OnLButtonUp(), and CPWL_Edit::OnSetFocus().

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

◆ IsSHIFTKeyDown()

◆ IsValid()

bool CPWL_Wnd::IsValid ( ) const
inlineprotected

Definition at line 237 of file cpwl_wnd.h.

Referenced by ClientHitTest(), DrawAppearance(), InvalidateRect(), Move(), OnChar(), OnKeyDown(), OnMouseWheel(), CPWL_Edit::SetCursor(), SetCursor(), SetVisible(), and WndHitTest().

+ Here is the caller graph for this function:

◆ IsVisible()

bool CPWL_Wnd::IsVisible ( ) const
inline

◆ IsWndCaptureKeyboard()

bool CPWL_Wnd::IsWndCaptureKeyboard ( const CPWL_Wnd * pWnd) const
protected

Definition at line 679 of file cpwl_wnd.cpp.

References CPWL_Wnd::SharedCaptureFocusState::IsWndCaptureKeyboard().

Referenced by OnChar(), OnKeyDown(), and OnMouseWheel().

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

◆ IsWndCaptureMouse()

bool CPWL_Wnd::IsWndCaptureMouse ( const CPWL_Wnd * pWnd) const
protected

Definition at line 674 of file cpwl_wnd.cpp.

References CPWL_Wnd::SharedCaptureFocusState::IsWndCaptureMouse().

Referenced by IsCaptureMouse().

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

◆ KillFocus()

void CPWL_Wnd::KillFocus ( )
virtual

Reimplemented in CPWL_ComboBox.

Definition at line 542 of file cpwl_wnd.cpp.

References CPWL_Wnd::SharedCaptureFocusState::IsWndCaptureKeyboard(), and CPWL_Wnd::SharedCaptureFocusState::ReleaseFocus().

Referenced by Destroy(), CPWL_ComboBox::KillFocus(), and CFFL_FormField::KillFocusForAnnot().

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

◆ Move()

bool CPWL_Wnd::Move ( const CFX_FloatRect & rcNew,
bool bReset,
bool bRefresh )

Definition at line 211 of file cpwl_wnd.cpp.

References CFX_FloatRect::bottom, GetWindowRect(), InvalidateRectMove(), IsValid(), CFX_FloatRect::left, CFX_FloatRect::Normalize(), CFX_FloatRect::operator=(), RepositionChildWnd(), CFX_FloatRect::right, and CFX_FloatRect::top.

Referenced by CPWL_Edit::OnKillFocus(), CPWL_Edit::RepositionChildWnd(), RepositionChildWnd(), and CPWL_Caret::SetCaret().

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

◆ NotifyLButtonDown()

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

Reimplemented in CPWL_ComboBox, and CPWL_ScrollBar.

Definition at line 434 of file cpwl_wnd.cpp.

Referenced by CPWL_CBButton::OnLButtonDown(), and CPWL_SBButton::OnLButtonDown().

+ Here is the caller graph for this function:

◆ NotifyLButtonUp()

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

Reimplemented in CPWL_ComboBox, and CPWL_ScrollBar.

Definition at line 436 of file cpwl_wnd.cpp.

Referenced by CPWL_CBListBox::OnLButtonUp(), and CPWL_SBButton::OnLButtonUp().

+ Here is the caller graph for this function:

◆ NotifyMouseMove()

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

Reimplemented in CPWL_ScrollBar.

Definition at line 438 of file cpwl_wnd.cpp.

Referenced by CPWL_SBButton::OnMouseMove().

+ Here is the caller graph for this function:

◆ OnChar()

bool CPWL_Wnd::OnChar ( uint16_t nChar,
Mask< FWL_EVENTFLAG > nFlag )
virtual

Reimplemented in CPWL_CheckBox, CPWL_ComboBox, CPWL_Edit, CPWL_ListBox, and CPWL_RadioButton.

Definition at line 309 of file cpwl_wnd.cpp.

References IsValid(), IsVisible(), and IsWndCaptureKeyboard().

Referenced by CFFL_FormField::OnChar(), and CPWL_ListBox::OnChar().

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

◆ OnCreated()

void CPWL_Wnd::OnCreated ( )
protectedvirtual

Reimplemented in CPWL_Edit, and CPWL_ListBox.

Definition at line 185 of file cpwl_wnd.cpp.

Referenced by Realize().

+ Here is the caller graph for this function:

◆ OnDestroy()

void CPWL_Wnd::OnDestroy ( )
protectedvirtual

Reimplemented in CPWL_ComboBox, CPWL_Edit, CPWL_ListBox, and CPWL_ScrollBar.

Definition at line 187 of file cpwl_wnd.cpp.

Referenced by Destroy(), CPWL_ComboBox::OnDestroy(), and CPWL_ScrollBar::OnDestroy().

+ Here is the caller graph for this function:

◆ OnKeyDown()

bool CPWL_Wnd::OnKeyDown ( FWL_VKEYCODE nKeyCode,
Mask< FWL_EVENTFLAG > nFlag )
virtual

Reimplemented in CPWL_ComboBox, CPWL_Edit, and CPWL_ListBox.

Definition at line 297 of file cpwl_wnd.cpp.

References IsValid(), IsVisible(), and IsWndCaptureKeyboard().

Referenced by CFFL_FormField::OnKeyDown(), and CPWL_ListBox::OnKeyDown().

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

◆ OnKillFocus()

void CPWL_Wnd::OnKillFocus ( )
virtual

Reimplemented in CPWL_Edit.

Definition at line 552 of file cpwl_wnd.cpp.

Referenced by CPWL_Wnd::SharedCaptureFocusState::ReleaseFocus().

+ Here is the caller graph for this function:

◆ OnLButtonDblClk()

virtual bool CPWL_Wnd::OnLButtonDblClk ( Mask< FWL_EVENTFLAG > nFlag,
const CFX_PointF & point )
virtual

Reimplemented in CPWL_Edit.

Referenced by CFFL_FormField::OnLButtonDblClk(), and CPWL_Edit::OnLButtonDblClk().

+ Here is the caller graph for this function:

◆ OnLButtonDown()

virtual bool CPWL_Wnd::OnLButtonDown ( Mask< FWL_EVENTFLAG > nFlag,
const CFX_PointF & point )
virtual

Reimplemented in CPWL_Button, CPWL_CBButton, CPWL_Edit, CPWL_ListBox, CPWL_SBButton, and CPWL_ScrollBar.

Referenced by CFFL_FormField::OnLButtonDown(), CPWL_Button::OnLButtonDown(), CPWL_CBButton::OnLButtonDown(), CPWL_Edit::OnLButtonDown(), CPWL_ListBox::OnLButtonDown(), CPWL_SBButton::OnLButtonDown(), and CPWL_ScrollBar::OnLButtonDown().

+ Here is the caller graph for this function:

◆ OnLButtonUp()

virtual bool CPWL_Wnd::OnLButtonUp ( Mask< FWL_EVENTFLAG > nFlag,
const CFX_PointF & point )
virtual

◆ OnMouseMove()

virtual bool CPWL_Wnd::OnMouseMove ( Mask< FWL_EVENTFLAG > nFlag,
const CFX_PointF & point )
virtual

Reimplemented in CPWL_Edit, CPWL_ListBox, and CPWL_SBButton.

Referenced by CFFL_FormField::OnMouseMove(), CPWL_Edit::OnMouseMove(), CPWL_ListBox::OnMouseMove(), and CPWL_SBButton::OnMouseMove().

+ Here is the caller graph for this function:

◆ OnMouseWheel()

bool CPWL_Wnd::OnMouseWheel ( Mask< FWL_EVENTFLAG > nFlag,
const CFX_PointF & point,
const CFX_Vector & delta )
virtual

Reimplemented in CPWL_Edit, and CPWL_ListBox.

Definition at line 393 of file cpwl_wnd.cpp.

References IsValid(), IsVisible(), IsWndCaptureKeyboard(), and SetCursor().

Referenced by CFFL_FormField::OnMouseWheel().

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

◆ OnRButtonDown()

bool CPWL_Wnd::OnRButtonDown ( Mask< FWL_EVENTFLAG > nFlag,
const CFX_PointF & point )
virtual

Definition at line 352 of file cpwl_wnd.cpp.

Referenced by CFFL_FormField::OnRButtonDown().

+ Here is the caller graph for this function:

◆ OnRButtonUp()

bool CPWL_Wnd::OnRButtonUp ( Mask< FWL_EVENTFLAG > nFlag,
const CFX_PointF & point )
virtual

Reimplemented in CPWL_Edit.

Definition at line 357 of file cpwl_wnd.cpp.

Referenced by CFFL_FormField::OnRButtonUp(), and CPWL_Edit::OnRButtonUp().

+ Here is the caller graph for this function:

◆ OnSetFocus()

void CPWL_Wnd::OnSetFocus ( )
virtual

Reimplemented in CPWL_Edit.

Definition at line 550 of file cpwl_wnd.cpp.

Referenced by CPWL_Wnd::SharedCaptureFocusState::SetFocus().

+ Here is the caller graph for this function:

◆ Realize()

void CPWL_Wnd::Realize ( )

Definition at line 160 of file cpwl_wnd.cpp.

References CreateChildWnd(), CPWL_Wnd::CreateParams::dwFlags, HasFlag(), CFX_FloatRect::Inflate(), CFX_FloatRect::IsEmpty(), CFX_FloatRect::Normalize(), OnCreated(), CFX_FloatRect::operator=(), and RepositionChildWnd().

+ Here is the call graph for this function:

◆ Redo()

bool CPWL_Wnd::Redo ( )
virtual

Reimplemented in CPWL_ComboBox, and CPWL_Edit.

Definition at line 389 of file cpwl_wnd.cpp.

Referenced by CFFL_FormField::Redo().

+ Here is the caller graph for this function:

◆ ReleaseCapture()

void CPWL_Wnd::ReleaseCapture ( )
protected

Definition at line 524 of file cpwl_wnd.cpp.

References CPWL_Wnd::SharedCaptureFocusState::ReleaseCapture().

Referenced by CPWL_Button::OnLButtonUp(), CPWL_CBButton::OnLButtonUp(), CPWL_CBListBox::OnLButtonUp(), CPWL_Edit::OnLButtonUp(), CPWL_ListBox::OnLButtonUp(), CPWL_SBButton::OnLButtonUp(), and CPWL_Edit::SetReadyToInput().

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

◆ RemoveChild()

void CPWL_Wnd::RemoveChild ( CPWL_Wnd * pWnd)

Definition at line 416 of file cpwl_wnd.cpp.

◆ RemoveFlag()

void CPWL_Wnd::RemoveFlag ( uint32_t dwFlags)

Definition at line 466 of file cpwl_wnd.cpp.

Referenced by CPWL_Edit::OnCreated().

+ Here is the caller graph for this function:

◆ ReplaceAndKeepSelection()

void CPWL_Wnd::ReplaceAndKeepSelection ( const WideString & text)
virtual

Reimplemented in CPWL_ComboBox, and CPWL_Edit.

Definition at line 369 of file cpwl_wnd.cpp.

Referenced by CFFL_FormField::ReplaceAndKeepSelection().

+ Here is the caller graph for this function:

◆ ReplaceSelection()

void CPWL_Wnd::ReplaceSelection ( const WideString & text)
virtual

Reimplemented in CPWL_ComboBox, and CPWL_Edit.

Definition at line 371 of file cpwl_wnd.cpp.

Referenced by CFFL_FormField::ReplaceSelection().

+ Here is the caller graph for this function:

◆ RepositionChildWnd()

bool CPWL_Wnd::RepositionChildWnd ( )
nodiscardprotectedvirtual

Reimplemented in CPWL_ComboBox, CPWL_Edit, CPWL_ListBox, and CPWL_ScrollBar.

Definition at line 614 of file cpwl_wnd.cpp.

References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::bottom, CFX_FloatRect::Deflate(), GetBorderWidth(), GetInnerBorderWidth(), GetVScrollBar(), GetWindowRect(), CFX_FloatRect::IsEmpty(), CPWL_ScrollBar::kWidth, Move(), CFX_FloatRect::Normalize(), CFX_FloatRect::right, and CFX_FloatRect::top.

Referenced by Move(), Realize(), CPWL_ListBox::RepositionChildWnd(), and SetVisible().

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

◆ ScrollWindowVertically()

void CPWL_Wnd::ScrollWindowVertically ( float pos)
virtual

Reimplemented in CPWL_Edit, and CPWL_ListBox.

Definition at line 432 of file cpwl_wnd.cpp.

◆ SelectAllText()

bool CPWL_Wnd::SelectAllText ( )
virtual

Reimplemented in CPWL_ComboBox, and CPWL_Edit.

Definition at line 373 of file cpwl_wnd.cpp.

Referenced by CFFL_FormField::SelectAllText().

+ Here is the caller graph for this function:

◆ SetCapture()

void CPWL_Wnd::SetCapture ( )
protected

Definition at line 518 of file cpwl_wnd.cpp.

References CPWL_Wnd::SharedCaptureFocusState::SetCapture().

Referenced by CPWL_Button::OnLButtonDown(), CPWL_CBButton::OnLButtonDown(), CPWL_Edit::OnLButtonDown(), CPWL_ListBox::OnLButtonDown(), and CPWL_SBButton::OnLButtonDown().

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

◆ SetClipRect()

void CPWL_Wnd::SetClipRect ( const CFX_FloatRect & rect)

Definition at line 601 of file cpwl_wnd.cpp.

References CFX_FloatRect::Normalize(), and CFX_FloatRect::operator=().

+ Here is the call graph for this function:

◆ SetCursor()

void CPWL_Wnd::SetCursor ( )
virtual

Reimplemented in CPWL_Edit.

Definition at line 640 of file cpwl_wnd.cpp.

References CPWL_Wnd::CreateParams::eCursorType, GetCreationParams(), GetFillerNotify(), IsValid(), and IPWL_FillerNotify::SetCursor().

Referenced by OnMouseWheel().

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

◆ SetFocus()

void CPWL_Wnd::SetFocus ( )
virtual

Reimplemented in CPWL_ComboBox.

Definition at line 533 of file cpwl_wnd.cpp.

References CPWL_Wnd::SharedCaptureFocusState::IsMainCaptureKeyboard(), CPWL_Wnd::SharedCaptureFocusState::ReleaseFocus(), and CPWL_Wnd::SharedCaptureFocusState::SetFocus().

Referenced by CFFL_TextField::OnChar(), CPWL_ListBox::OnLButtonDown(), CPWL_Edit::OnLButtonUp(), CPWL_Edit::OnRButtonUp(), CFFL_TextField::SetActionData(), and CFFL_FormField::SetFocusForAnnot().

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

◆ SetFontSize()

void CPWL_Wnd::SetFontSize ( float fFontSize)
virtual

Reimplemented in CPWL_Edit, and CPWL_ListBox.

Definition at line 702 of file cpwl_wnd.cpp.

◆ SetScrollInfo()

void CPWL_Wnd::SetScrollInfo ( const PWL_SCROLL_INFO & info)
virtual

Reimplemented in CPWL_Edit, CPWL_ListBox, and CPWL_ScrollBar.

Definition at line 428 of file cpwl_wnd.cpp.

Referenced by CPWL_Edit::SetScrollInfo(), and CPWL_ListBox::SetScrollInfo().

+ Here is the caller graph for this function:

◆ SetScrollPosition()

void CPWL_Wnd::SetScrollPosition ( float pos)
virtual

Reimplemented in CPWL_Edit, CPWL_ListBox, and CPWL_ScrollBar.

Definition at line 430 of file cpwl_wnd.cpp.

Referenced by CPWL_Edit::SetScrollPosition(), and CPWL_ListBox::SetScrollPosition().

+ Here is the caller graph for this function:

◆ SetTransparency()

void CPWL_Wnd::SetTransparency ( int32_t nTransparency)

Definition at line 732 of file cpwl_wnd.cpp.

Referenced by CPWL_Edit::OnCreated(), CPWL_ScrollBar::OnLButtonDown(), and CPWL_ScrollBar::OnLButtonUp().

+ Here is the caller graph for this function:

◆ SetVisible()

bool CPWL_Wnd::SetVisible ( bool bVisible)
nodiscardvirtual

Reimplemented in CPWL_Caret.

Definition at line 575 of file cpwl_wnd.cpp.

References InvalidateRect(), IsValid(), and RepositionChildWnd().

Referenced by CPWL_Edit::OnKillFocus(), CPWL_ListBox::OnSetScrollInfoY(), CPWL_ScrollBar::RepositionChildWnd(), and CPWL_Caret::SetCaret().

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

◆ Undo()

bool CPWL_Wnd::Undo ( )
virtual

Reimplemented in CPWL_ComboBox, and CPWL_Edit.

Definition at line 385 of file cpwl_wnd.cpp.

Referenced by CFFL_FormField::Undo().

+ Here is the caller graph for this function:

◆ WndHitTest()

bool CPWL_Wnd::WndHitTest ( const CFX_PointF & point) const

Definition at line 567 of file cpwl_wnd.cpp.

References CFX_FloatRect::Contains(), GetWindowRect(), IsValid(), and IsVisible().

+ Here is the call graph for this function:

Member Data Documentation

◆ kDefaultBlackColor

const CFX_Color CPWL_Wnd::kDefaultBlackColor
static
Initial value:
=
CFX_Color(CFX_Color::Type::kGray, 0)

Definition at line 79 of file cpwl_wnd.h.

Referenced by CPWL_CBButton::DrawThisAppearance().

◆ kDefaultWhiteColor

const CFX_Color CPWL_Wnd::kDefaultWhiteColor
static
Initial value:
=
CFX_Color(CFX_Color::Type::kGray, 1)

Definition at line 80 of file cpwl_wnd.h.


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