summaryrefslogtreecommitdiff
path: root/xfa/fwl/theme/cfwl_arrowdata.h
blob: 1bcdac15fb78bf4fadeae7edc1a5c01761ac1f38 (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
33
34
35
36
// 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_THEME_CFWL_ARROWDATA_H_
#define XFA_FWL_THEME_CFWL_ARROWDATA_H_

#include <memory>

#include "core/fxcrt/fx_system.h"
#include "core/fxge/fx_dib.h"

class CFWL_ArrowData {
 public:
  struct CColorData {
    FX_ARGB clrBorder[4];
    FX_ARGB clrStart[4];
    FX_ARGB clrEnd[4];
    FX_ARGB clrSign[4];
  };

  static CFWL_ArrowData* GetInstance();
  static bool HasInstance();
  static void DestroyInstance();
  void SetColorData(uint32_t dwID);

  std::unique_ptr<CColorData> m_pColorData;

 private:
  CFWL_ArrowData();
  ~CFWL_ArrowData();
};

#endif  // XFA_FWL_THEME_CFWL_ARROWDATA_H_