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
13class CFWL_MessageMouseWheel final : public CFWL_Message {
14 public:
16 const CFX_PointF& pos,
17 const CFX_Vector& delta);
19
20 void set_pos(const CFX_PointF& pos) { pos_ = pos; }
21 const CFX_PointF& pos() const { return pos_; }
22
23 const CFX_Vector& delta() const { return delta_; }
24
25 private:
26 CFX_PointF pos_;
27 const CFX_Vector delta_;
28};
29
30#endif // XFA_FWL_CFWL_MESSAGEMOUSEWHEEL_H_
FDE_TextAlignment
Definition cfde_data.h:12
#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
CFWL_PartState
#define FWL_STYLE_WGT_NoBackground
Definition cfwl_widget.h:39
#define FWL_STATE_WGT_Invisible
Definition cfwl_widget.h:43
#define FWL_STYLE_WGT_VScroll
Definition cfwl_widget.h:37
FWL_Type
Definition cfwl_widget.h:46
#define FWL_STATE_WGT_Focused
Definition cfwl_widget.h:42
#define FWL_STATE_WGT_Disabled
Definition cfwl_widget.h:41
StateRestorer(CFGAS_GEGraphics *graphics)
void SetClipRect(const CFX_RectF &rect)
float GetPos() const
Code GetScrollCode() const
Type GetType() const
Definition cfwl_event.h:39
CFWL_Widget * GetSrcTarget() const
Definition cfwl_event.h:40
void SetSelected(bool enable)
bool IsSelected() const
CFX_RectF GetRect() const
Item(const WideString &text)
void SetFocused(bool enable)
bool IsFocused() const
void SetRect(const CFX_RectF &rect)
WideString GetText() const
bool ScrollBarPropertiesPresent() const
void SetSelItem(Item *hItem, bool bSelect)
FWL_WidgetHit HitTest(const CFX_PointF &point) override
void Trace(cppgc::Visitor *visitor) const override
Item * GetSelItem(int32_t nIndexSel)
void OnDrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
int32_t CountItems(const CFWL_Widget *pWidget) const
bool ScrollToVisible(Item *hItem)
int32_t GetItemIndex(CFWL_Widget *pWidget, Item *pItem)
void DrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
void InitHorizontalScrollBar()
void SetSelection(Item *hStart, Item *hEnd, bool bSelected)
bool IsShowVertScrollBar() const
Item * GetItem(const CFWL_Widget *pWidget, int32_t nIndex) const
void RemoveAt(int32_t iIndex)
FWL_Type GetClassID() const override
bool IsShowHorzScrollBar() const
void OnProcessEvent(CFWL_Event *pEvent) override
int32_t CountSelItems()
Item * GetListItem(Item *hItem, XFA_FWL_VKEYCODE dwKeyCode)
void Update() override
void OnProcessMessage(CFWL_Message *pMessage) override
Item * GetItemAtPoint(const CFX_PointF &point)
~CFWL_ListBox() override
CFWL_ListBox(CFWL_App *pApp, const Properties &properties, CFWL_Widget *pOuter)
void DeleteString(Item *pItem)
void InitVerticalScrollBar()
Item * AddString(const WideString &wsAdd)
float CalcItemHeight()
int32_t GetSelIndex(int32_t nIndex)
const KeyCommand m_dwCmd
const uint32_t m_dwKeyCodeOrChar
CFWL_MessageMouseWheel(CFWL_Widget *destination, const CFX_PointF &pos, const CFX_Vector &delta)
~CFWL_MessageMouseWheel() override
const CFX_PointF & pos() const
void set_pos(const CFX_PointF &pos)
const CFX_Vector & delta() const
const MouseCommand m_dwCmd
Type GetType() const
CFWL_Widget * GetDstTarget() const
float GetPos() const
float GetStepSize() const
void GetRange(float *fMin, float *fMax) const
void SetPos(float fPos)
float GetPageSize() const
void SetTrackPos(float fTrackPos)
CFX_RectF m_PartRect
CFX_Matrix m_matrix
FDE_TextStyle m_dwTTOStyles
FDE_TextAlignment m_iTTOAlign
uint32_t GetStyleExts() const
CFWL_Widget(CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
Properties m_Properties
CFWL_Widget * GetOuter() const
void OnProcessMessage(CFWL_Message *pMessage) override
bool HasBorder() const
CFX_RectF m_WidgetRect
void DrawBorder(CFGAS_GEGraphics *pGraphics, CFWL_ThemePart::Part iPartBorder, const CFX_Matrix &pMatrix)
void RepaintRect(const CFX_RectF &pRect)
IFWL_ThemeProvider * GetThemeProvider() const
bool IsEnabled() const
void SetGrab(bool bSet)
virtual CFX_RectF GetClientRect()
bool IsLocked() const
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)
virtual void DrawBackground(const CFWL_ThemeBackground &pParams)=0
virtual void DrawText(const CFWL_ThemeText &pParams)=0
XFA_FWL_KeyFlag
XFA_FWL_VKEYCODE
@ XFA_FWL_VKEY_Down
@ XFA_FWL_VKEY_Home
@ XFA_FWL_VKEY_End
@ XFA_FWL_VKEY_Tab
@ XFA_FWL_VKEY_Up
FWL_WidgetHit
bool single_line_
Definition cfde_data.h:29