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.cpp File Reference

(5a424f4a7b188b75da63eb697f63558af0b17f6f)

#include "fpdfsdk/pwl/cpwl_wnd.h"
#include <sstream>
#include <utility>
#include <vector>
#include "build/build_config.h"
#include "core/fxcrt/stl_util.h"
#include "core/fxge/cfx_renderdevice.h"
#include "fpdfsdk/pwl/cpwl_scroll_bar.h"
#include "public/fpdf_fwlevent.h"
#include "third_party/base/check.h"
#include "third_party/base/check_op.h"
#include "third_party/base/containers/contains.h"
+ Include dependency graph for cpwl_wnd.cpp:

Go to the source code of this file.

Classes

class  CPWL_Wnd::SharedCaptureFocusState
 

Macros

#define PWL_IMPLEMENT_MOUSE_METHOD(mouse_method_name)
 

Macro Definition Documentation

◆ PWL_IMPLEMENT_MOUSE_METHOD

#define PWL_IMPLEMENT_MOUSE_METHOD ( mouse_method_name)
Value:
bool CPWL_Wnd::mouse_method_name(Mask<FWL_EVENTFLAG> nFlag, \
const CFX_PointF& point) { \
if (!IsValid() || !IsVisible()) \
return false; \
if (IsWndCaptureMouse(this)) { \
for (const auto& pChild : m_Children) { \
if (IsWndCaptureMouse(pChild.get())) { \
return pChild->mouse_method_name(nFlag, point); \
} \
} \
SetCursor(); \
return false; \
} \
for (const auto& pChild : m_Children) { \
if (pChild->WndHitTest(point)) { \
return pChild->mouse_method_name(nFlag, point); \
} \
} \
if (WndHitTest(point)) \
SetCursor(); \
return false; \
}
bool WndHitTest(const CFX_PointF &point) const
Definition cpwl_wnd.cpp:567
bool IsVisible() const
Definition cpwl_wnd.h:204
bool IsWndCaptureMouse(const CPWL_Wnd *pWnd) const
Definition cpwl_wnd.cpp:674
bool IsValid() const
Definition cpwl_wnd.h:237

Definition at line 321 of file cpwl_wnd.cpp.