summaryrefslogtreecommitdiff
path: root/xfa/fwl/cfwl_listitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/cfwl_listitem.h')
-rw-r--r--xfa/fwl/cfwl_listitem.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/xfa/fwl/cfwl_listitem.h b/xfa/fwl/cfwl_listitem.h
index 0e608f8d92..c4af1d89b5 100644
--- a/xfa/fwl/cfwl_listitem.h
+++ b/xfa/fwl/cfwl_listitem.h
@@ -14,12 +14,30 @@ class CFX_DIBitmap;
class CFWL_ListItem {
public:
- CFWL_ListItem();
+ explicit CFWL_ListItem(const CFX_WideString& text);
~CFWL_ListItem();
+ CFX_RectF GetRect() const { return m_rtItem; }
+ void SetRect(const CFX_RectF& rect) { m_rtItem = rect; }
+
+ uint32_t GetStyles() const { return m_dwStates; }
+ void SetStyles(uint32_t dwStyle) { m_dwStates = dwStyle; }
+
+ CFX_RectF GetCheckRect() const { return m_rtCheckBox; }
+ void SetCheckRect(const CFX_RectF& rtCheck) { m_rtCheckBox = rtCheck; }
+
+ uint32_t GetStates() const { return GetStyles() | GetCheckState(); }
+
+ uint32_t GetCheckState() const { return m_dwCheckState; }
+ void SetCheckState(uint32_t dwCheckState) { m_dwCheckState = dwCheckState; }
+
+ CFX_DIBitmap* GetIcon() const { return m_pDIB; }
+
+ CFX_WideString GetText() const { return m_wsText; }
+
+ private:
CFX_RectF m_rtItem;
uint32_t m_dwStates;
- uint32_t m_dwStyles;
CFX_WideString m_wsText;
CFX_DIBitmap* m_pDIB;
uint32_t m_dwCheckState;