LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
table.h
Go to the documentation of this file.
1 // Copyright 2016 Trimble Navigation Ltd., All rights reserved.
2 
3 #ifndef LAYOUT_MODEL_TABLE_H_
4 #define LAYOUT_MODEL_TABLE_H_
5 
6 #include <LayOutAPI/common.h>
8 #include <LayOutAPI/model/defs.h>
9 
10 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif // __cplusplus
20 
26 typedef enum {
32 
51  LOTableRef* table, const LOAxisAlignedRect2D* bounds, size_t rows, size_t columns);
52 
53 
63 
74 
90 
102 
112 
124 LO_RESULT LOTableGetDimensions(LOTableRef table, size_t* rows, size_t* columns);
125 
138 LO_RESULT LOTableGetRowHeight(LOTableRef table, size_t index, double* height);
139 
155 LO_RESULT LOTableSetRowHeight(LOTableRef table, size_t index, double height);
156 
169 LO_RESULT LOTableGetColumnWidth(LOTableRef table, size_t index, double* width);
185 LO_RESULT LOTableSetColumnWidth(LOTableRef table, size_t index, double width);
186 
199 LO_RESULT LOTableInsertRow(LOTableRef table, size_t index);
200 
213 LO_RESULT LOTableRemoveRow(LOTableRef table, size_t index);
214 
227 LO_RESULT LOTableInsertColumn(LOTableRef table, size_t index);
228 
241 LO_RESULT LOTableRemoveColumn(LOTableRef table, size_t index);
242 
264  LOTableRef table, size_t row, size_t column, LOFormattedTextRef* text);
265 
285 LO_RESULT LOTableSetCellText(LOTableRef table, size_t row, size_t column, LOFormattedTextRef text);
286 
298 
313 
327 LO_RESULT LOTableGetRowEdgeStyle(LOTableRef table, size_t row, LOStyleRef style);
328 
346 LO_RESULT LOTableSetRowEdgeStyle(LOTableRef table, size_t row, LOStyleRef style);
347 
361 LO_RESULT LOTableGetColumnEdgeStyle(LOTableRef table, size_t column, LOStyleRef style);
362 
380 LO_RESULT LOTableSetColumnEdgeStyle(LOTableRef table, size_t column, LOStyleRef style);
381 
403  LOTableRef table, size_t row, size_t column, size_t* row_span, size_t* column_span);
404 
427  LOTableRef table, size_t start_row, size_t start_column, size_t end_row, size_t end_column);
428 
446  LOTableRef table, size_t row, size_t column, LOTableCellRotation* rotation);
447 
467  LOTableRef table, size_t row, size_t column, LOTableCellRotation rotation);
468 
469 #ifdef __cplusplus
470 } // end extern "C"
471 #endif // __cplusplus
472 
473 #endif // LAYOUT_MODEL_TABLE_H_