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 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif // __cplusplus
19 
25 typedef enum {
31 
50  LOTableRef* table, const LOAxisAlignedRect2D* bounds, size_t rows, size_t columns);
51 
52 
62 
73 
89 
101 
111 
123 LO_RESULT LOTableGetDimensions(LOTableRef table, size_t* rows, size_t* columns);
124 
137 LO_RESULT LOTableGetRowHeight(LOTableRef table, size_t index, double* height);
138 
154 LO_RESULT LOTableSetRowHeight(LOTableRef table, size_t index, double height);
155 
168 LO_RESULT LOTableGetColumnWidth(LOTableRef table, size_t index, double* width);
184 LO_RESULT LOTableSetColumnWidth(LOTableRef table, size_t index, double width);
185 
198 LO_RESULT LOTableInsertRow(LOTableRef table, size_t index);
199 
212 LO_RESULT LOTableRemoveRow(LOTableRef table, size_t index);
213 
226 LO_RESULT LOTableInsertColumn(LOTableRef table, size_t index);
227 
240 LO_RESULT LOTableRemoveColumn(LOTableRef table, size_t index);
241 
263  LOTableRef table, size_t row, size_t column, LOFormattedTextRef* text);
264 
284 LO_RESULT LOTableSetCellText(LOTableRef table, size_t row, size_t column, LOFormattedTextRef text);
285 
297 
312 
326 LO_RESULT LOTableGetRowEdgeStyle(LOTableRef table, size_t row, LOStyleRef style);
327 
345 LO_RESULT LOTableSetRowEdgeStyle(LOTableRef table, size_t row, LOStyleRef style);
346 
360 LO_RESULT LOTableGetColumnEdgeStyle(LOTableRef table, size_t column, LOStyleRef style);
361 
379 LO_RESULT LOTableSetColumnEdgeStyle(LOTableRef table, size_t column, LOStyleRef style);
380 
402  LOTableRef table, size_t row, size_t column, size_t* row_span, size_t* column_span);
403 
426  LOTableRef table, size_t start_row, size_t start_column, size_t end_row, size_t end_column);
427 
445  LOTableRef table, size_t row, size_t column, LOTableCellRotation* rotation);
446 
466  LOTableRef table, size_t row, size_t column, LOTableCellRotation rotation);
467 
468 #ifdef __cplusplus
469 } // end extern "C"
470 #endif // __cplusplus
471 
472 #endif // LAYOUT_MODEL_TABLE_H_