PMDTypes.h Source File documentation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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
40 struct PMDFillProperties
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
52 struct PMDStrokeProperties
53 {
54 uint8_t m_strokeType;
55 uint16_t m_strokeWidth;
56 uint8_t m_strokeColor;
57 uint8_t m_strokeOverprint;
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
65 struct PMDParaProperties
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
80 struct PMDCharProperties
81 {
82 uint16_t m_length;
83 uint16_t m_fontFace;
84 uint16_t m_fontSize;
85 uint8_t m_fontColor;
86 uint8_t m_boldItalicUnderline;
87 uint8_t m_superSubscript;
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: */
libpagemaker::PMDCharProperties::m_fontFace
uint16_t m_fontFace
Definition: PMDTypes.h:83
libpagemaker::PMDParaProperties::m_beforeIndent
uint16_t m_beforeIndent
Definition: PMDTypes.h:72
libpagemaker::PMDFont::m_fontName
std::string m_fontName
Definition: PMDTypes.h:33
libpagemaker::PMDCharProperties::PMDCharProperties
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
libpagemaker::PMDColor::m_blue
uint16_t m_blue
Definition: PMDTypes.h:22
libpagemaker::PMDCharProperties::m_superSubscript
uint8_t m_superSubscript
Definition: PMDTypes.h:87
libpagemaker::PMDCharProperties
Definition: PMDTypes.h:80
libpagemaker::PMDColor::m_red
uint16_t m_red
Definition: PMDTypes.h:20
libpagemaker::PMDStrokeProperties::m_strokeColor
uint8_t m_strokeColor
Definition: PMDTypes.h:56
libpagemaker::PMDFillProperties::m_fillTint
uint8_t m_fillTint
Definition: PMDTypes.h:45
libpagemaker::PMDParaProperties::m_afterIndent
uint16_t m_afterIndent
Definition: PMDTypes.h:73
libpagemaker::PMDParaProperties::m_length
uint16_t m_length
Definition: PMDTypes.h:67
libpagemaker::PMDColor
Definition: PMDTypes.h:17
libpagemaker::PMDCharProperties::m_superPos
uint16_t m_superPos
Definition: PMDTypes.h:90
libpagemaker::PMDFillProperties::m_fillColor
uint8_t m_fillColor
Definition: PMDTypes.h:43
libpagemaker::PMDFillProperties::PMDFillProperties
PMDFillProperties(const uint8_t fillType, const uint8_t fillColor, const uint8_t fillOverprint, const uint8_t fillTint)
Definition: PMDTypes.h:47
libpagemaker::PMDStrokeProperties::m_strokeWidth
uint16_t m_strokeWidth
Definition: PMDTypes.h:55
libpagemaker::PMDCharProperties::m_superSubSize
uint16_t m_superSubSize
Definition: PMDTypes.h:89
libpagemaker::PMDParaProperties::m_align
uint8_t m_align
Definition: PMDTypes.h:68
libpagemaker::PMDColor::m_green
uint16_t m_green
Definition: PMDTypes.h:21
libpagemaker::PMDParaProperties
Definition: PMDTypes.h:65
libpagemaker::PMDColor::m_i
unsigned m_i
Definition: PMDTypes.h:19
libpagemaker::PMDFillProperties::m_fillType
uint8_t m_fillType
Definition: PMDTypes.h:42
libpagemaker::PMDStrokeProperties::m_strokeOverprint
uint8_t m_strokeOverprint
Definition: PMDTypes.h:57
libpagemaker::PMDColor::PMDColor
PMDColor(const unsigned i, const uint16_t red, const uint16_t green, const uint16_t blue)
Definition: PMDTypes.h:24
libpagemaker::PMDCharProperties::m_fontSize
uint16_t m_fontSize
Definition: PMDTypes.h:84
libpagemaker::PMDParaProperties::m_rightIndent
uint16_t m_rightIndent
Definition: PMDTypes.h:71
libpagemaker::PMDParaProperties::PMDParaProperties
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
libpagemaker::PMDCharProperties::m_subPos
uint16_t m_subPos
Definition: PMDTypes.h:91
libpagemaker::PMDFont::PMDFont
PMDFont(const unsigned i, const std::string &fontName)
Definition: PMDTypes.h:35
Units.h
libpagemaker::PMDStrokeProperties::PMDStrokeProperties
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
libpagemaker::PMDCharProperties::m_length
uint16_t m_length
Definition: PMDTypes.h:82
libpagemaker::PMDFillProperties
Definition: PMDTypes.h:40
libpagemaker::PMDCharProperties::m_kerning
int16_t m_kerning
Definition: PMDTypes.h:88
libpagemaker::PMDStrokeProperties
Definition: PMDTypes.h:52
libpagemaker::PMDCharProperties::m_tint
uint8_t m_tint
Definition: PMDTypes.h:92
libpagemaker
Definition: geometry.h:20
libpagemaker::PMDFont
Definition: PMDTypes.h:29
libpagemaker::PMDStrokeProperties::m_strokeType
uint8_t m_strokeType
Definition: PMDTypes.h:54
libpagemaker::PMDCharProperties::m_boldItalicUnderline
uint8_t m_boldItalicUnderline
Definition: PMDTypes.h:86
libpagemaker::PMDCharProperties::m_fontColor
uint8_t m_fontColor
Definition: PMDTypes.h:85
libpagemaker::PMDFont::m_i
unsigned m_i
Definition: PMDTypes.h:32
libpagemaker::PMDParaProperties::m_leftIndent
uint16_t m_leftIndent
Definition: PMDTypes.h:69
libpagemaker::PMDFillProperties::m_fillOverprint
uint8_t m_fillOverprint
Definition: PMDTypes.h:44
libpagemaker::PMDParaProperties::m_firstIndent
uint16_t m_firstIndent
Definition: PMDTypes.h:70
libpagemaker::PMDStrokeProperties::m_strokeTint
uint8_t m_strokeTint
Definition: PMDTypes.h:58