LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator 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 
24 typedef enum {
30 
48  LOTableRef* table, const LOAxisAlignedRect2D* bounds, size_t rows, size_t columns);
58 
69 
85 
97 
107 
119 LO_RESULT LOTableGetDimensions(LOTableRef table, size_t* rows, size_t* columns);
120 
133 LO_RESULT LOTableGetRowHeight(LOTableRef table, size_t index, double* height);
134 
150 LO_RESULT LOTableSetRowHeight(LOTableRef table, size_t index, double height);
151 
164 LO_RESULT LOTableGetColumnWidth(LOTableRef table, size_t index, double* width);
180 LO_RESULT LOTableSetColumnWidth(LOTableRef table, size_t index, double width);
181 
194 LO_RESULT LOTableInsertRow(LOTableRef table, size_t index);
195 
208 LO_RESULT LOTableRemoveRow(LOTableRef table, size_t index);
209 
222 LO_RESULT LOTableInsertColumn(LOTableRef table, size_t index);
223 
236 LO_RESULT LOTableRemoveColumn(LOTableRef table, size_t index);
237 
259  LOTableRef table, size_t row, size_t column, LOFormattedTextRef* text);
260 
280 LO_RESULT LOTableSetCellText(LOTableRef table, size_t row, size_t column, LOFormattedTextRef text);
281 
293 
308 
322 LO_RESULT LOTableGetRowEdgeStyle(LOTableRef table, size_t row, LOStyleRef style);
323 
341 LO_RESULT LOTableSetRowEdgeStyle(LOTableRef table, size_t row, LOStyleRef style);
342 
356 LO_RESULT LOTableGetColumnEdgeStyle(LOTableRef table, size_t column, LOStyleRef style);
357 
375 LO_RESULT LOTableSetColumnEdgeStyle(LOTableRef table, size_t column, LOStyleRef style);
376 
398  LOTableRef table, size_t row, size_t column, size_t* row_span, size_t* column_span);
399 
422  LOTableRef table, size_t start_row, size_t start_column, size_t end_row, size_t end_column);
423 
441  LOTableRef table, size_t row, size_t column, LOTableCellRotation* rotation);
442 
462  LOTableRef table, size_t row, size_t column, LOTableCellRotation rotation);
463 
464 #ifdef __cplusplus
465 } // end extern "C"
466 #endif // __cplusplus
467 
468 #endif // LAYOUT_MODEL_TABLE_H_