7#ifndef XFA_FWL_CFWL_PUSHBUTTON_H_
8#define XFA_FWL_CFWL_PUSHBUTTON_H_
10#include "xfa/fwl/cfwl_widget.h"
17class CFWL_MessageMouse;
26 void SetStates(uint32_t dwStates)
override;
35 explicit CFWL_PushButton(CFWL_App* pApp);
39 void UpdateTextOutStyles();
42 void OnLButtonDown(CFWL_MessageMouse* pMsg);
43 void OnLButtonUp(CFWL_MessageMouse* pMsg);
44 void OnMouseMove(CFWL_MessageMouse* pMsg);
45 void OnMouseLeave(CFWL_MessageMouse* pMsg);
46 void OnKeyDown(CFWL_MessageKey* pMsg);
48 bool m_bBtnDown =
false;
CFWL_Widget * GetSrcTarget() const
const uint32_t m_dwKeyCodeOrChar
const MouseCommand m_dwCmd
CFWL_Widget * GetDstTarget() const
CFX_Matrix & operator=(const CFX_Matrix &other)=default
CFX_RectF & operator=(const CFX_RectF &other)=default
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED