QCAD
Open Source 2D CAD
RTextData.h
Go to the documentation of this file.
1 
20 #ifndef RTEXTDATA_H
21 #define RTEXTDATA_H
22 
23 #include "entity_global.h"
24 
25 #include "RDocument.h"
26 #include "RTextBasedData.h"
27 #include "RVector.h"
28 
38  friend class RTextEntity;
39 
40 protected:
42 
43 public:
44  RTextData();
46  RTextData(const RVector& position,
47  const RVector& alignmentPoint,
48  double textHeight,
49  double textWidth,
50  RS::VAlign verticalAlignment,
51  RS::HAlign horizontalAlignment,
52  RS::TextDrawingDirection drawingDirection,
53  RS::TextLineSpacingStyle lineSpacingStyle,
54  double lineSpacingFactor,
55  const QString& text,
56  const QString& fontName,
57  bool bold,
58  bool italic,
59  double angle,
60  bool simple);
61 };
62 
66 Q_DECLARE_METATYPE(QSharedPointer<RTextData>)
67 Q_DECLARE_METATYPE(QSharedPointer<RTextData>*)
68 
69 #endif
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
TextLineSpacingStyle
Line spacing style for texts.
Definition: RS.h:176
Linear dimension entity class.
Definition: RTextEntity.h:38
#define QCADENTITY_EXPORT
Definition: entity_global.h:10
VAlign
Vertical alignments.
Definition: RS.h:145
RTextData data
Definition: RTextEntity.h:106
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RTextData.h:37
Stores and manages all data that defines the geometry and appearance of a text based entity (text...
Definition: RTextBasedData.h:44
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:63
Q_DECLARE_METATYPE(RMath *)
HAlign
Horizontal alignments.
Definition: RS.h:155
TextDrawingDirection
Text drawing direction.
Definition: RS.h:167
RDocument * document
Definition: RObject.h:251