summaryrefslogtreecommitdiff
path: root/xfa/fwl/cfwl_listitem.h
blob: 62c3a98bd7d527579eaadd53586e73064dad0475 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#ifndef XFA_FWL_CFWL_LISTITEM_H_
#define XFA_FWL_CFWL_LISTITEM_H_

#include "core/fxcrt/fx_coordinates.h"
#include "core/fxcrt/fx_string.h"

class CFWL_ListItem {
 public:
  explicit CFWL_ListItem(const WideString& text);
  ~CFWL_ListItem();

  CFX_RectF GetRect() const { return m_rtItem; }
  void SetRect(const CFX_RectF& rect) { m_rtItem = rect; }

  uint32_t GetStates() const { return m_dwStates; }
  void SetStates(uint32_t dwStates) { m_dwStates = dwStates; }

  WideString GetText() const { return m_wsText; }

 private:
  CFX_RectF m_rtItem;
  uint32_t m_dwStates;
  WideString m_wsText;
};

#endif  // XFA_FWL_CFWL_LISTITEM_H_