Aurelon Open API 8.1.1
|
Text along a path. More...
Public Member Functions | |
void | SetText (const aur::ACPL::UString &uniText) |
aur::ACPL::UString | GetText (int selStart, int selEnd) const |
void | SetProperties (int selStart, int selEnd, const AOI_TextProperties &properties) |
void | GetProperties (int selStart, int selEnd, AOI_TextProperties &properties) const |
AOI_Mapping | GetMapping () const |
void | GetContour (AOI_ContourPtr) const |
AOI_StylePtr | GetFillStyle () const |
AOI_StylePtr | GetStrokeStyle () const |
void | SetFillStyle (AOI_StylePtr) |
void | SetStrokeStyle (AOI_StylePtr) |
bool | GetEOFill () const |
void | SetEOFill (bool) |
float | GetStrokeWidth () const |
void | SetStrokeWidth (float) |
float | GetJoin () const |
void | SetJoin (float) |
uint8_t | GetCaps () const |
void | SetCaps (uint8_t) |
void | GetDash (int32_t *, float **, float *) const |
void | SetDash (int32_t, float *, float) |
uint32_t | GetType () const |
void | GetBounds (AOI_Rectangle &) const |
AOI_Object * | GetNext () const |
void | GetMaskedBounds (AOI_Rectangle &) const |
void | GetPrecisionBounds (AOI_Rectangle &) const |
AOI_BlendMode | GetBlendMode () const |
float | GetBlendValue () const |
AOI_Intent | GetIntent () const |
bool | Visible () const |
void | SetBlendMode (AOI_BlendMode) |
void | SetBlendValue (float) |
void | SetIntent (AOI_Intent) |
void | Map (const AOI_Mapping &mapping) |
void | Scale (const AOI_Mapping &) |
Static Public Member Functions | |
static AOI_Object_Text * | Create (AOI_Document *document) |
static void | operator delete (void *) |
Text along a path.
The path text object contains 1 line of text and a path that is representing its baseline. The text will follow the path and allow writting around circles or any other form.
Definition at line 53 of file AOI_Text.h.
|
staticinherited |
Creates a new empty AOI_Object_Text object.
document | The AOI_Document the text will be used in. |
Definition at line 98 of file AOI_Text.cpp.
|
inherited |
Returns the BlendMode of the object.
Possible BlendModes are:
Definition at line 132 of file AOI_Object.cpp.
|
inherited |
Returns the value with which blending should be done. For normal blending this is the opacity value. 0 is transparent and 1 is opaque.
Definition at line 145 of file AOI_Object.cpp.
|
inherited |
Returns the bounds of the object.
This function is quick and will suffice in most situations. It handles bezier curves by adding the complete hull to the bounds. For precise bounds use GetPrecisionBounds
r | Receives the bounds |
Definition at line 40 of file AOI_Object.cpp.
|
inherited |
Return the caps type of the nodes of the path.
Possible values:
Definition at line 153 of file AOI_Vector.cpp.
|
inherited |
Returns the AOI_Contour.
All AOI_Objects derived from AOI_Object_Vector have a contour. So if the contour information ao an AOI_Object_Text is needed, caal this function.
outContour | Receives the contour. Should be a pointer to an existing empty AOI_Contour. |
Definition at line 23 of file AOI_Vector.cpp.
|
inherited |
Returns the dash definition of this Vector.
The dashes parameter is filled with a pointer to an existing dashes array. Do not supply an array nor delete this after use.
nrOffDashes | Recieves the number of alternating values. |
dashes | Recieves the alternating values. |
fase | Recieves the offset in the alternating values to start with at the beginning of the vector. |
Definition at line 180 of file AOI_Vector.cpp.
|
inherited |
Returns if the fill should be done with EOFill or winding fill filling rule
Definition at line 81 of file AOI_Vector.cpp.
|
inherited |
Returns the fill style of an object.
Definition at line 36 of file AOI_Vector.cpp.
|
inherited |
Returns the intent with which this object should be rendered.
Possible values:
Definition at line 161 of file AOI_Object.cpp.
|
inherited |
Returns the value used at joins beyond which to switch to bevel.
Definition at line 126 of file AOI_Vector.cpp.
|
inherited |
|
inherited |
Returns the bounds of the object, taking into account the clipping.
r | Receives the bounds |
Definition at line 63 of file AOI_Object.cpp.
|
inherited |
Returns the next object.
The objects are stored in a tree with parents and children. The next object is the next kid of a parent. If there are no more kids, NULL will be returned.
Definition at line 104 of file AOI_Object.cpp.
|
inherited |
Returns the bounds of the object. Beziers are handled completely, unlike in GetBounds.
r | Receives the bounds |
Definition at line 52 of file AOI_Object.cpp.
|
inherited |
Gets the properties of a specific part of the text.
On return properties will contain the properties of the first character in the specified range. If not all characters in the range share a specific property, the properties.valid boolean will be set to false. Otherwise the boolean will be true.
If all characters in the range have size 10, properties.valid.size will be true ( and properties.style.size will be 10 ). but properties.valid.size will be false.
selStart | The point in the text to start from. |
selEnd | The point in the text to end with. |
properties | The TextProperties gotten from the specified text part. |
Definition at line 171 of file AOI_Text.cpp.
|
inherited |
Returns the stroke style of an object.
Definition at line 48 of file AOI_Vector.cpp.
|
inherited |
Returns the stroke width.
Definition at line 103 of file AOI_Vector.cpp.
|
inherited |
Returns the requested part of the text in charCode format. Depending on the encoding type of the font this might be Unicode or any other format. For embedded fonts this is usually custom encoding.
selStart | The point in the text to start from. |
selEnd | The point in the text to end with. |
charCode | Receives the text. |
Definition at line 127 of file AOI_Text.cpp.
|
inherited |
Returns the type of the object.
Possible types are:
Definition at line 90 of file AOI_Object.cpp.
|
inherited |
Maps the object.
mapping | The mapping which should be applied to this object. |
Definition at line 192 of file AOI_Object.cpp.
|
staticinherited |
Deletes the object, after removing it from the object tree.
Definition at line 181 of file AOI_Object.cpp.
|
inherited |
Scale the objects while retaining properties like line-width and dash distance proportional to the supplied scale.
mapping | The mapping which should be applied to this object. The mapping should only contain a scale to avoid unwanted side effect. |
Definition at line 206 of file AOI_Object.cpp.
|
inherited |
Sets the object its blendmode.
blendmode | The blend mode to use. |
Definition at line 217 of file AOI_Object.cpp.
|
inherited |
Sets the object its blendmode.
blendValue | The amount of opacity. For normal blending this is the opacity value. 0 is transparent and 1 is opaque. |
Definition at line 230 of file AOI_Object.cpp.
|
inherited |
Set the caps type of the nodes of the path.
caps | kButtCap, kRoundCap, kSquareCap are valid values. |
Definition at line 164 of file AOI_Vector.cpp.
|
inherited |
Sets the dash definition of this path.
nrOffDashes | Set the number of alternating values; the size of the dashes array. |
dashes | Array containing the alternating values. |
fase | The offset in the alternating values to start with at the beginning of the vector. |
Definition at line 198 of file AOI_Vector.cpp.
|
inherited |
Set the EOFill or window fill.
eoFill | True will set EOFill and false will set winding fill. |
Definition at line 92 of file AOI_Vector.cpp.
|
inherited |
Replaces the fill style.
style | The fill style to use. |
Definition at line 60 of file AOI_Vector.cpp.
|
inherited |
Sets the object its blendmode.
intent | Intent to be used to convert to the device when a ICC based colorspace is assigned to this object. |
Definition at line 242 of file AOI_Object.cpp.
|
inherited |
Set the join type of the nodes of the path.
join | < 0 : round join, 0 : bevel join, > 0 mitter join (x line width) |
Definition at line 137 of file AOI_Vector.cpp.
|
inherited |
Sets the properties of a specific part of the text.
selStart | The point in the text to start from. |
selEnd | The point in the text to end with. |
properties | The TextProperties to set on the specified text part. |
Definition at line 146 of file AOI_Text.cpp.
|
inherited |
Replaces the stroke style.
style | The stroke style to use. |
Definition at line 71 of file AOI_Vector.cpp.
|
inherited |
Set the width of the stroke in units.
width | Width of the stroke. 0 represents a hairline. Negative values are not allowed. |
Definition at line 115 of file AOI_Vector.cpp.
|
inherited |
Replaces the actual text of the AOI_Object_Text.
uniText | The text in unicode format. |
Definition at line 108 of file AOI_Text.cpp.
|
inherited |
Returns if this object is visible.
Definition at line 171 of file AOI_Object.cpp.