1 // Copyright 2016 PDFium Authors. All rights reserved. 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_LISTITEM_H_ 8 #define XFA_FWL_CFWL_LISTITEM_H_ 9 10 #include "core/fxcrt/fx_coordinates.h" 11 #include "core/fxcrt/fx_string.h" 12 13 class CFWL_ListItem { 14 public: 15 explicit CFWL_ListItem(const WideString& text); 16 ~CFWL_ListItem(); 17 GetRect()18 CFX_RectF GetRect() const { return m_rtItem; } SetRect(const CFX_RectF & rect)19 void SetRect(const CFX_RectF& rect) { m_rtItem = rect; } 20 GetStates()21 uint32_t GetStates() const { return m_dwStates; } SetStates(uint32_t dwStates)22 void SetStates(uint32_t dwStates) { m_dwStates = dwStates; } 23 GetText()24 WideString GetText() const { return m_wsText; } 25 26 private: 27 uint32_t m_dwStates = 0; 28 CFX_RectF m_rtItem; 29 WideString m_wsText; 30 }; 31 32 #endif // XFA_FWL_CFWL_LISTITEM_H_ 33