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_messagekillfocus.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_MESSAGEKILLFOCUS_H_
8#define XFA_FWL_CFWL_MESSAGEKILLFOCUS_H_
9
10#include "core/fxcrt/unowned_ptr.h"
11#include "xfa/fwl/cfwl_message.h"
12
13namespace pdfium {
14
15class CFWL_MessageKillFocus final : public CFWL_Message {
16 public:
17 explicit CFWL_MessageKillFocus(CFWL_Widget* pDstTarget);
19
20 bool IsFocusedOnWidget(const CFWL_Widget* pWidget) const {
21 return pWidget == m_pSetFocus;
22 }
23
24 private:
25 UnownedPtr<CFWL_Widget> m_pSetFocus; // Ok, stack-only.
26};
27
28} // namespace pdfium
29
30// TODO(crbug.com/42271761): Remove.
31using pdfium::CFWL_MessageKillFocus;
32
33#endif // XFA_FWL_CFWL_MESSAGEKILLFOCUS_H_
#define FWL_STYLEEXT_CMB_ListItemAlignMask
#define FWL_STYLEEXT_CMB_EditHAlignMask
#define FWL_STYLEEXT_CMB_EditVCenter
#define FWL_STYLEEXT_CMB_EditVFar
#define FWL_STYLEEXT_CMB_DropDown
#define FWL_STYLEEXT_CMB_ListItemCenterAlign
#define FWL_STYLEEXT_CMB_EditHCenter
#define FWL_STYLEEXT_CMB_EditVAlignMask
#define FWL_STYLEEXT_CMB_ReadOnly
#define FWL_STYLEEXT_CMB_EditJustified
#define FWL_STYLEEXT_EDT_VAlignMask
Definition cfwl_edit.h:40
#define FWL_STYLEEXT_EDT_HAlignModeMask
Definition cfwl_edit.h:41
#define FWL_STYLEEXT_EDT_HAlignMask
Definition cfwl_edit.h:39
#define FWL_STYLEEXT_EDT_VNear
Definition cfwl_edit.h:35
#define FWL_STYLEEXT_EDT_VCenter
Definition cfwl_edit.h:36
#define FWL_STYLEEXT_EDT_ReadOnly
Definition cfwl_edit.h:23
#define FWL_STYLEEXT_EDT_VFar
Definition cfwl_edit.h:37
#define FWL_STYLEEXT_EDT_HNear
Definition cfwl_edit.h:32
#define FWL_STYLEEXT_EDT_Justified
Definition cfwl_edit.h:38
#define FWL_STYLEEXT_EDT_HCenter
Definition cfwl_edit.h:33
#define FWL_STYLEEXT_LTB_CenterAlign
#define FWL_STYLEEXT_LTB_LeftAlign
#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_STYLE_WGT_Border
Definition cfwl_widget.h:38
StateRestorer(CFGAS_GEGraphics *graphics)
void ConcatMatrix(const CFX_Matrix &matrix)
constexpr CFX_Matrix(float a1, float b1, float c1, float d1, float e1, float f1)
void Concat(const CFX_Matrix &right)
void Offset(float dx, float dy)
bool IsEmpty(float fEpsilon) const
void Deflate(float off_left, float off_top, float off_right, float off_bottom)
void Inflate(float x, float y)
CFX_RectF & operator=(const CFX_RectF &other)=default
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 Union(const CFX_RectF &rt)
bool operator==(const WideString &other) const
WideString()=default
void ProcessSelChanged(bool bLButtonUp)
void Trace(cppgc::Visitor *visitor) const override
std::optional< WideString > EditCut()
bool EditCanSelectAll() const
void SetCurSel(int32_t iSel)
void SetEditText(const WideString &wsText)
void SetStates(uint32_t dwStates) override
void OnProcessEvent(CFWL_Event *pEvent) override
void RemoveAt(int32_t iIndex)
void ModifyStyleExts(uint32_t dwStyleExtsAdded, uint32_t dwStyleExtsRemoved) override
bool EditCanRedo() const
bool EditCanCopy() const
WideString GetTextByIndex(int32_t iIndex) const
std::optional< WideString > EditCopy() const
bool EditPaste(const WideString &wsPaste)
CFX_RectF GetBBox() const
void Update() override
~CFWL_ComboBox() override
FWL_Type GetClassID() const override
void AddString(const WideString &wsText)
WideString GetEditText() const
bool EditCanCut() const
int32_t GetCurSel() const
bool EditCanUndo() const
int32_t GetCurrentSelection() const
void RemoveStates(uint32_t dwStates) override
void EditModifyStyleExts(uint32_t dwStyleExtsAdded, uint32_t dwStyleExtsRemoved)
CFWL_ComboEdit * GetComboEdit() const
void DrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
void OnProcessMessage(CFWL_Message *pMessage) override
void OnDrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
FWL_WidgetHit HitTest(const CFX_PointF &point) override
void OnProcessMessage(CFWL_Message *pMessage) override
~CFWL_ComboEdit() override
int32_t MatchItem(WideStringView wsMatch)
~CFWL_ComboList() override
void ChangeSelected(int32_t iSel)
void OnProcessMessage(CFWL_Message *pMessage) override
CFWL_EventSelectChanged(CFWL_Widget *pSrcTarget, bool bLButtonUp)
CFWL_EventSelectChanged(CFWL_Widget *pSrcTarget, int32_t iYear, int32_t iMonth, int32_t iDay)
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
const CFX_RectF & GetRTClient() const
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_ScrollBar * GetVertScrollBar() const
~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
CFWL_MessageKillFocus(CFWL_Widget *pDstTarget)
bool IsFocusedOnWidget(const CFWL_Widget *pWidget) const
Type GetType() const
CFWL_Widget * GetDstTarget() const
void OnProcessMessage(CFWL_Message *pMessage) override
void RepaintRect(const CFX_RectF &pRect)
virtual void RemoveStates(uint32_t dwStates)
void DispatchEvent(CFWL_Event *pEvent)
CFWL_Widget(CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
float GetCXBorderSize() const
virtual void ModifyStyleExts(uint32_t dwStyleExtsAdded, uint32_t dwStyleExtsRemoved)
virtual CFX_RectF GetClientRect()
uint32_t GetStyleExts() const
IFWL_ThemeProvider * GetThemeProvider() const
bool IsLocked() const
CFWL_WidgetMgr * GetWidgetMgr() const
Properties m_Properties
virtual void SetStates(uint32_t dwStates)
virtual float GetScrollBarWidth() const =0
virtual CFX_RectF GetUIMargin(const CFWL_ThemePart &pThemePart) const =0
CFX_PTemplate< float > CFX_PointF
CFX_STemplate< float > CFX_SizeF
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32
FDE_TextAlignment
Definition cfde_data.h:14
@ XFA_FWL_VKEY_Up
@ XFA_FWL_VKEY_Return
@ XFA_FWL_VKEY_Escape
@ XFA_FWL_VKEY_Down
fxcrt::WideStringView WideStringView
fxcrt::WideString WideString
Definition widestring.h:207