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_cbbutton.h
Go to the documentation of this file.
1// Copyright 2020 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef FPDFSDK_PWL_CPWL_CBBUTTON_H_
8#define FPDFSDK_PWL_CPWL_CBBUTTON_H_
9
10#include <memory>
11
12#include "fpdfsdk/pwl/cpwl_wnd.h"
13#include "fpdfsdk/pwl/ipwl_fillernotify.h"
14
15class CPWL_CBButton final : public CPWL_Wnd {
16 public:
18 const CreateParams& cp,
19 std::unique_ptr<IPWL_FillerNotify::PerWindowData> pAttachedData);
20 ~CPWL_CBButton() override;
21
22 // CPWL_Wnd:
24 const CFX_Matrix& mtUser2Device) override;
25 bool OnLButtonDown(Mask<FWL_EVENTFLAG> nFlag,
26 const CFX_PointF& point) override;
27 bool OnLButtonUp(Mask<FWL_EVENTFLAG> nFlag, const CFX_PointF& point) override;
28};
29
30#endif // FPDFSDK_PWL_CPWL_CBBUTTON_H_
bool IsEmpty() const
void AppendPoint(const CFX_PointF &point, Point::Type type)
Definition cfx_path.cpp:289
bool DrawPath(const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState, uint32_t fill_color, uint32_t stroke_color, const CFX_FillRenderOptions &fill_options)
void DrawThisAppearance(CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device) override
bool OnLButtonDown(Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override
CPWL_CBButton(const CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData)
bool OnLButtonUp(Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override
~CPWL_CBButton() override
void SetCapture()
Definition cpwl_wnd.cpp:518
CFX_FloatRect GetWindowRect() const
Definition cpwl_wnd.cpp:440
void ReleaseCapture()
Definition cpwl_wnd.cpp:524
CPWL_Wnd * GetParentWindow() const
Definition cpwl_wnd.h:249
virtual void NotifyLButtonDown(CPWL_Wnd *child, const CFX_PointF &pos)
Definition cpwl_wnd.cpp:434
virtual bool OnLButtonUp(Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point)
bool IsVisible() const
Definition cpwl_wnd.h:204
int32_t GetTransparency()
Definition cpwl_wnd.cpp:728
virtual void DrawThisAppearance(CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device)
Definition cpwl_wnd.cpp:250
static const CFX_Color kDefaultBlackColor
Definition cpwl_wnd.h:79
virtual bool OnLButtonDown(Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point)
#define FXSYS_IsFloatBigger(fa, fb)
Definition fx_system.h:36
FX_COLORREF ToFXColor(int32_t nTransparency) const
static constexpr CFX_FillRenderOptions EvenOddOptions()