~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/contrib/source_exporter/wxPdfDocument/include/wx/pdfspotcolour.h

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
///////////////////////////////////////////////////////////////////////////////
 
2
// Name:        pdfspotcolour.h
 
3
// Purpose:     
 
4
// Author:      Ulrich Telle
 
5
// Modified by:
 
6
// Created:     2009-05-25
 
7
// Copyright:   (c) Ulrich Telle
 
8
// Licence:     wxWindows licence
 
9
///////////////////////////////////////////////////////////////////////////////
 
10
 
 
11
/// \file pdfspotcolour.h Interface of the spot colour class
 
12
 
 
13
#ifndef _PDF_SPOT_COLOUR_H_
 
14
#define _PDF_SPOT_COLOUR_H_
 
15
 
 
16
// wxWidgets headers
 
17
 
 
18
// wxPdfDocument headers
 
19
#include "wx/pdfdocdef.h"
 
20
 
 
21
/// Class representing spot colours.
 
22
class WXDLLIMPEXP_PDFDOC wxPdfSpotColour
 
23
{
 
24
public:
 
25
  /// Constructor for spot colour
 
26
  wxPdfSpotColour(int index, double cyan, double magenta, double yellow, double black);
 
27
 
 
28
  /// Copy constructor
 
29
  wxPdfSpotColour(const wxPdfSpotColour& colour);
 
30
 
 
31
  /// Set object index
 
32
  void SetObjIndex(int index) { m_objIndex = index; }
 
33
 
 
34
  /// Get object index
 
35
  int GetObjIndex() const { return m_objIndex; }
 
36
 
 
37
  /// Get spot colour index
 
38
  int GetIndex() const { return m_index; }
 
39
 
 
40
  /// Get cyan level
 
41
  double GetCyan() const { return m_cyan; }
 
42
 
 
43
  /// Get magenta level
 
44
  double GetMagenta() const { return m_magenta; }
 
45
 
 
46
  /// Get yellow level
 
47
  double GetYellow() const { return m_yellow; }
 
48
 
 
49
  /// Get black level
 
50
  double GetBlack() const { return m_black; }
 
51
 
 
52
private:
 
53
  int    m_objIndex;   ///< object index
 
54
  int    m_index;      ///< colour index
 
55
  double m_cyan;       ///< cyan level
 
56
  double m_magenta;    ///< magenta level
 
57
  double m_yellow;     ///< yellow level
 
58
  double m_black;      ///< black level
 
59
};
 
60
 
 
61
#endif