LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
formattedtext.h
Go to the documentation of this file.
1 // Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2 // This file is intended for public distribution.
3 
4 #ifndef LAYOUT_MODEL_FORMATTED_TEXT_H_
5 #define LAYOUT_MODEL_FORMATTED_TEXT_H_
6 
7 #include <LayOutAPI/common.h>
9 #include <LayOutAPI/model/defs.h>
10 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif // __cplusplus
19 
25 typedef enum {
30 
37 typedef enum {
49 
67  const LOPoint2D* anchor_point,
68  LOFormattedTextAnchorType anchor_type,
69  const char* plain_text);
70 
86  const LOAxisAlignedRect2D* bounds,
87  const char* plain_text);
88 
108  const LOPoint2D* anchor_point,
109  LOFormattedTextAnchorType anchor_type,
110  const char* path);
111 
129  LOFormattedTextRef* text,
130  const char* path,
131  const LOAxisAlignedRect2D* bounds);
132 
141 
142 /*
143 @brief Releases a formatted text object. The object will be invalidated if
144  releasing the last reference.
145 @param[in] text The formatted text object.
146 @return
147 - \ref SU_ERROR_NONE on success
148 - \ref SU_ERROR_NULL_POINTER_INPUT if text is NULL
149 - \ref SU_ERROR_INVALID_INPUT if *text does not refer to a valid object
150 */
152 
163 
173 
194  SUStringRef* rtf_text,
195  LOPageRef page_for_autotext);
196 
210  const char* rtf_text);
211 
233  SUStringRef* display_text,
234  LOPageRef page_for_autotext);
235 
246  size_t* length);
247 
259  SUStringRef* plain_text);
260 
274  const char* plain_text);
275 
292  const char* plain_text,
293  LOStyleRef style);
294 
311  const char* plain_text,
312  LOStyleRef style);
313 
329  size_t index,
330  LOStyleRef style);
331 
353  size_t index,
354  size_t length,
355  LOStyleRef style);
356 
379  LOStyleRef style,
380  size_t range_begin,
381  size_t range_length);
382 
394 
408 
409 #ifdef __cplusplus
410 } // end extern "C"
411 #endif // __cplusplus
412 #endif // LAYOUT_MODEL_FORMATTED_TEXT_H_