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
cfwl_messagemousewheel.h
Go to the documentation of this file.
1// Copyright 2016 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 XFA_FWL_CFWL_MESSAGEMOUSEWHEEL_H_
8#define XFA_FWL_CFWL_MESSAGEMOUSEWHEEL_H_
9
10#include "core/fxcrt/fx_coordinates.h"
11#include "xfa/fwl/cfwl_message.h"
12
13namespace pdfium {
14
15class CFWL_MessageMouseWheel final : public CFWL_Message {
16 public:
18 const CFX_PointF& pos,
19 const CFX_Vector& delta);
21
22 void set_pos(const CFX_PointF& pos) { pos_ = pos; }
23 const CFX_PointF& pos() const { return pos_; }
24
25 const CFX_Vector& delta() const { return delta_; }
26
27 private:
28 CFX_PointF pos_;
29 const CFX_Vector delta_;
30};
31
32} // namespace pdfium
33
34// TODO(crbug.com/42271761): Remove.
35using pdfium::CFWL_MessageMouseWheel;
36
37#endif // XFA_FWL_CFWL_MESSAGEMOUSEWHEEL_H_
#define FWL_STYLEEXT_LTB_MultiSelection
#define FWL_STYLEEXT_LTB_AlignMask
#define FWL_STYLEEXT_LTB_ShowScrollBarFocus
#define FWL_STYLEEXT_LTB_CenterAlign
#define FWL_STYLEEXT_LTB_RightAlign
#define FWL_STYLEEXT_LTB_LeftAlign
#define FWL_STYLEEXT_SCB_Vert
#define FWL_STYLEEXT_SCB_Horz
#define FWL_STYLE_WGT_NoBackground
Definition cfwl_widget.h:41
#define FWL_STATE_WGT_Invisible
Definition cfwl_widget.h:45
#define FWL_STYLE_WGT_VScroll
Definition cfwl_widget.h:39
#define FWL_STATE_WGT_Focused
Definition cfwl_widget.h:44
#define FWL_STATE_WGT_Disabled
Definition cfwl_widget.h:43
StateRestorer(CFGAS_GEGraphics *graphics)
void SetClipRect(const CFX_RectF &rect)
CFX_Matrix & operator=(const CFX_Matrix &other)=default
CFX_RectF TransformRect(const CFX_RectF &rect) const
CFX_RectF(const CFX_RectF &other)=default
void Offset(float dx, float dy)
constexpr CFX_RectF()=default
void Deflate(float off_left, float off_top, float off_right, float off_bottom)
CFX_RectF & operator=(const CFX_RectF &other)=default
float bottom() const
bool Contains(const PointType &p) const
float right() const
constexpr CFX_RectF(float dst_left, float dst_top, float dst_width, float dst_height)
void Deflate(float x, float y)
Type GetType() const
Definition cfwl_event.h:41
CFWL_Widget * GetSrcTarget() const
Definition cfwl_event.h:42
Item(const WideString &text)
WideString GetText() const
CFX_RectF GetRect() const
void SetSelected(bool enable)
void SetRect(const CFX_RectF &rect)
void SetFocused(bool enable)
void OnDrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
bool ScrollBarPropertiesPresent() const
bool IsShowHorzScrollBar() const
void Update() override
int32_t GetSelIndex(int32_t nIndex)
Item * GetItemAtPoint(const CFX_PointF &point)
Item * GetItem(const CFWL_Widget *pWidget, int32_t nIndex) const
void DeleteString(Item *pItem)
FWL_Type GetClassID() const override
bool ScrollToVisible(Item *hItem)
void SetSelItem(Item *hItem, bool bSelect)
void RemoveAt(int32_t iIndex)
Item * GetListItem(Item *hItem, XFA_FWL_VKEYCODE dwKeyCode)
CFWL_ListBox(CFWL_App *pApp, const Properties &properties, CFWL_Widget *pOuter)
FWL_WidgetHit HitTest(const CFX_PointF &point) override
Item * GetSelItem(int32_t nIndexSel)
void OnProcessMessage(CFWL_Message *pMessage) override
void DrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
int32_t CountItems(const CFWL_Widget *pWidget) const
void SetSelection(Item *hStart, Item *hEnd, bool bSelected)
Item * AddString(const WideString &wsAdd)
~CFWL_ListBox() override
void Trace(cppgc::Visitor *visitor) const override
bool IsShowVertScrollBar() const
void OnProcessEvent(CFWL_Event *pEvent) override
int32_t GetItemIndex(CFWL_Widget *pWidget, Item *pItem)
const uint32_t m_dwKeyCodeOrChar
const KeyCommand m_dwCmd
void set_pos(const CFX_PointF &pos)
CFWL_MessageMouseWheel(CFWL_Widget *destination, const CFX_PointF &pos, const CFX_Vector &delta)
const CFX_Vector & delta() const
Type GetType() const
CFWL_Widget * GetDstTarget() const
void SetTrackPos(float fTrackPos)
void SetPos(float fPos)
float GetPageSize() const
float GetStepSize() const
void GetRange(float *fMin, float *fMax) const
FDE_TextStyle m_dwTTOStyles
FDE_TextAlignment m_iTTOAlign
void OnProcessMessage(CFWL_Message *pMessage) override
void RepaintRect(const CFX_RectF &pRect)
bool HasBorder() const
CFWL_Widget * GetOuter() const
void SetGrab(bool bSet)
CFWL_Widget(CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
void DrawBorder(CFGAS_GEGraphics *pGraphics, CFWL_ThemePart::Part iPartBorder, const CFX_Matrix &pMatrix)
virtual CFX_RectF GetClientRect()
uint32_t GetStyleExts() const
IFWL_ThemeProvider * GetThemeProvider() const
bool IsLocked() const
Properties m_Properties
bool IsEnabled() const
virtual void DrawText(const CFWL_ThemeText &pParams)=0
virtual void DrawBackground(const CFWL_ThemeBackground &pParams)=0
CFX_VTemplate< int32_t > CFX_Vector
CFX_PTemplate< float > CFX_PointF
CFX_STemplate< float > CFX_SizeF
FDE_TextAlignment
Definition cfde_data.h:14
@ XFA_FWL_VKEY_Up
@ XFA_FWL_VKEY_Home
@ XFA_FWL_VKEY_Tab
@ XFA_FWL_VKEY_End
@ XFA_FWL_VKEY_Down
fxcrt::WideString WideString
Definition widestring.h:207