Changeset View
Changeset View
Standalone View
Standalone View
core/annotations.h
Show First 20 Lines • Show All 1147 Lines • ▼ Show 20 Line(s) | 1117 | public: | |||
---|---|---|---|---|---|
1148 | void setHighlightType( HighlightType type ); | 1148 | void setHighlightType( HighlightType type ); | ||
1149 | 1149 | | |||
1150 | /** | 1150 | /** | ||
1151 | * Returns the type of the highlight annotation. | 1151 | * Returns the type of the highlight annotation. | ||
1152 | */ | 1152 | */ | ||
1153 | HighlightType highlightType() const; | 1153 | HighlightType highlightType() const; | ||
1154 | 1154 | | |||
1155 | /** | 1155 | /** | ||
1156 | * The Quad class contains 8 coordinates and style definitions | 1156 | * @short Describes a highlight quad of a text markup annotation. | ||
1157 | * which describe a line part of the whole highlight annotation. | 1157 | * | ||
1158 | * The Quad is a closed path of 4 NormalizedPoints. | ||||
1159 | * Another set of 4 NormalizedPoints can be generated with transform(), | ||||
1160 | * e. g. to get highlighting coordinates on a rotated PageViewItem. | ||||
1161 | * Additionally, Quad stores some geometry related style attributes. | ||||
1162 | * | ||||
1163 | * To enable correct rendering of the annotation, | ||||
1164 | * the points 0 and 1 must describe the bottom edge of the quad | ||||
1165 | * (relative to the text orientation). | ||||
1166 | * | ||||
1167 | * @see NormalizedPoint | ||||
1158 | */ | 1168 | */ | ||
1159 | class OKULARCORE_EXPORT Quad | 1169 | class OKULARCORE_EXPORT Quad | ||
1160 | { | 1170 | { | ||
1161 | public: | 1171 | public: | ||
1162 | /** | 1172 | /** | ||
1163 | * Creates a new quad. | 1173 | * Creates a new quad. | ||
1164 | */ | 1174 | */ | ||
1165 | Quad(); | 1175 | Quad(); | ||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | |||||
1221 | /** | 1231 | /** | ||
1222 | * Returns the width of the drawing feather. | 1232 | * Returns the width of the drawing feather. | ||
1223 | */ | 1233 | */ | ||
1224 | double feather() const; | 1234 | double feather() const; | ||
1225 | 1235 | | |||
1226 | /** | 1236 | /** | ||
1227 | * Transforms the quad coordinates with the transformation defined | 1237 | * Transforms the quad coordinates with the transformation defined | ||
1228 | * by @p matrix. | 1238 | * by @p matrix. | ||
1239 | * | ||||
1240 | * The transformed coordinates will be accessible with transformedPoint(). | ||||
1241 | * The coordinates returned by point() are not affected. | ||||
1229 | */ | 1242 | */ | ||
1230 | void transform( const QTransform &matrix ); | 1243 | void transform( const QTransform &matrix ); | ||
1231 | 1244 | | |||
1232 | private: | 1245 | private: | ||
1233 | class Private; | 1246 | class Private; | ||
1234 | Private* const d; | 1247 | Private* const d; | ||
1235 | }; | 1248 | }; | ||
1236 | 1249 | | |||
▲ Show 20 Lines • Show All 515 Lines • Show Last 20 Lines |