PMDTypes.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libpagemaker project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef __PMDTYPES_H__
11 #define __PMDTYPES_H__
12 
13 #include "Units.h"
14 namespace libpagemaker
15 {
16 
17 struct PMDColor
18 {
19  unsigned m_i;
20  uint16_t m_red;
21  uint16_t m_green;
22  uint16_t m_blue;
23 
24  PMDColor(const unsigned i,const uint16_t red,const uint16_t green,const uint16_t blue)
25  : m_i(i), m_red(red), m_green(green), m_blue(blue)
26  { }
27 };
28 
29 struct PMDFont
30 {
31 public:
32  unsigned m_i;
33  std::string m_fontName;
34 
35  PMDFont(const unsigned i,const std::string &fontName)
36  : m_i(i), m_fontName(fontName)
37  { }
38 };
39 
41 {
42  uint8_t m_fillType;
43  uint8_t m_fillColor;
44  uint8_t m_fillOverprint;
45  uint8_t m_fillTint;
46 
47  PMDFillProperties(const uint8_t fillType,const uint8_t fillColor,const uint8_t fillOverprint,const uint8_t fillTint)
48  : m_fillType(fillType), m_fillColor(fillColor), m_fillOverprint(fillOverprint), m_fillTint(fillTint)
49  { }
50 };
51 
53 {
54  uint8_t m_strokeType;
55  uint16_t m_strokeWidth;
56  uint8_t m_strokeColor;
58  uint8_t m_strokeTint;
59 
60  PMDStrokeProperties(const uint8_t strokeType,const uint16_t strokeWidth,const uint8_t strokeColor,const uint8_t strokeOverprint,const uint8_t strokeTint)
61  : m_strokeType(strokeType), m_strokeWidth(strokeWidth), m_strokeColor(strokeColor), m_strokeOverprint(strokeOverprint), m_strokeTint(strokeTint)
62  { }
63 };
64 
66 {
67  uint16_t m_length;
68  uint8_t m_align;
69  uint16_t m_leftIndent;
70  uint16_t m_firstIndent;
71  uint16_t m_rightIndent;
72  uint16_t m_beforeIndent;
73  uint16_t m_afterIndent;
74 
75  PMDParaProperties(const uint16_t length, const uint8_t align,const uint16_t leftIndent,const uint16_t firstIndent,const uint16_t rightIndent,const uint16_t beforeIndent,const uint16_t afterIndent)
76  : m_length(length), m_align(align), m_leftIndent(leftIndent), m_firstIndent(firstIndent), m_rightIndent(rightIndent), m_beforeIndent(beforeIndent), m_afterIndent(afterIndent)
77  { }
78 };
79 
81 {
82  uint16_t m_length;
83  uint16_t m_fontFace;
84  uint16_t m_fontSize;
85  uint8_t m_fontColor;
88  int16_t m_kerning;
89  uint16_t m_superSubSize;
90  uint16_t m_superPos;
91  uint16_t m_subPos;
92  uint8_t m_tint;
93 
94  PMDCharProperties(const uint16_t length, const uint16_t fontFace, const uint16_t fontSize, const uint8_t fontColor, const uint8_t boldItalicUnderline, const uint8_t superSubscript, const int16_t kerning, const uint16_t superSubSize, const uint16_t superPos, const uint16_t subPos, const uint16_t tint)
95  : m_length(length), m_fontFace(fontFace), m_fontSize(fontSize), m_fontColor(fontColor), m_boldItalicUnderline(boldItalicUnderline), m_superSubscript(superSubscript), m_kerning(kerning), m_superSubSize(superSubSize), m_superPos(superPos), m_subPos(subPos), m_tint(tint)
96  { }
97 };
98 
99 }
100 
101 #endif // __PMDTYPES_H__
102 
103 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
uint16_t m_fontFace
Definition: PMDTypes.h:83
uint16_t m_beforeIndent
Definition: PMDTypes.h:72
std::string m_fontName
Definition: PMDTypes.h:33
PMDCharProperties(const uint16_t length, const uint16_t fontFace, const uint16_t fontSize, const uint8_t fontColor, const uint8_t boldItalicUnderline, const uint8_t superSubscript, const int16_t kerning, const uint16_t superSubSize, const uint16_t superPos, const uint16_t subPos, const uint16_t tint)
Definition: PMDTypes.h:94
uint16_t m_blue
Definition: PMDTypes.h:22
uint8_t m_superSubscript
Definition: PMDTypes.h:87
Definition: PMDTypes.h:80
uint16_t m_red
Definition: PMDTypes.h:20
uint8_t m_strokeColor
Definition: PMDTypes.h:56
uint8_t m_fillTint
Definition: PMDTypes.h:45
uint16_t m_afterIndent
Definition: PMDTypes.h:73
uint16_t m_length
Definition: PMDTypes.h:67
Definition: PMDTypes.h:17
uint16_t m_superPos
Definition: PMDTypes.h:90
uint8_t m_fillColor
Definition: PMDTypes.h:43
PMDFillProperties(const uint8_t fillType, const uint8_t fillColor, const uint8_t fillOverprint, const uint8_t fillTint)
Definition: PMDTypes.h:47
uint16_t m_strokeWidth
Definition: PMDTypes.h:55
uint16_t m_superSubSize
Definition: PMDTypes.h:89
uint8_t m_align
Definition: PMDTypes.h:68
uint16_t m_green
Definition: PMDTypes.h:21
Definition: PMDTypes.h:65
unsigned m_i
Definition: PMDTypes.h:19
uint8_t m_fillType
Definition: PMDTypes.h:42
uint8_t m_strokeOverprint
Definition: PMDTypes.h:57
PMDColor(const unsigned i, const uint16_t red, const uint16_t green, const uint16_t blue)
Definition: PMDTypes.h:24
uint16_t m_fontSize
Definition: PMDTypes.h:84
uint16_t m_rightIndent
Definition: PMDTypes.h:71
PMDParaProperties(const uint16_t length, const uint8_t align, const uint16_t leftIndent, const uint16_t firstIndent, const uint16_t rightIndent, const uint16_t beforeIndent, const uint16_t afterIndent)
Definition: PMDTypes.h:75
uint16_t m_subPos
Definition: PMDTypes.h:91
PMDFont(const unsigned i, const std::string &fontName)
Definition: PMDTypes.h:35
PMDStrokeProperties(const uint8_t strokeType, const uint16_t strokeWidth, const uint8_t strokeColor, const uint8_t strokeOverprint, const uint8_t strokeTint)
Definition: PMDTypes.h:60
uint16_t m_length
Definition: PMDTypes.h:82
Definition: PMDTypes.h:40
int16_t m_kerning
Definition: PMDTypes.h:88
Definition: PMDTypes.h:52
uint8_t m_tint
Definition: PMDTypes.h:92
Definition: geometry.h:20
Definition: PMDTypes.h:29
uint8_t m_strokeType
Definition: PMDTypes.h:54
uint8_t m_boldItalicUnderline
Definition: PMDTypes.h:86
uint8_t m_fontColor
Definition: PMDTypes.h:85
unsigned m_i
Definition: PMDTypes.h:32
uint16_t m_leftIndent
Definition: PMDTypes.h:69
uint8_t m_fillOverprint
Definition: PMDTypes.h:44
uint16_t m_firstIndent
Definition: PMDTypes.h:70
uint8_t m_strokeTint
Definition: PMDTypes.h:58

Generated for libpagemaker by doxygen 1.8.10