Home | History | Annotate | Download | only in fwl
      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 
     18   CFX_RectF GetRect() const { return m_rtItem; }
     19   void SetRect(const CFX_RectF& rect) { m_rtItem = rect; }
     20 
     21   uint32_t GetStates() const { return m_dwStates; }
     22   void SetStates(uint32_t dwStates) { m_dwStates = dwStates; }
     23 
     24   WideString GetText() const { return m_wsText; }
     25 
     26  private:
     27   CFX_RectF m_rtItem;
     28   uint32_t m_dwStates;
     29   WideString m_wsText;
     30 };
     31 
     32 #endif  // XFA_FWL_CFWL_LISTITEM_H_
     33