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);
60 
71 
87 
99 
109 
121 LO_RESULT LOTableGetDimensions(LOTableRef table, size_t* rows, size_t* columns);
122 
135 LO_RESULT LOTableGetRowHeight(LOTableRef table, size_t index, double* height);
136 
152 LO_RESULT LOTableSetRowHeight(LOTableRef table, size_t index, double height);
153 
166 LO_RESULT LOTableGetColumnWidth(LOTableRef table, size_t index, double* width);
182 LO_RESULT LOTableSetColumnWidth(LOTableRef table, size_t index, double width);
183 
196 LO_RESULT LOTableInsertRow(LOTableRef table, size_t index);
197 
210 LO_RESULT LOTableRemoveRow(LOTableRef table, size_t index);
211 
224 LO_RESULT LOTableInsertColumn(LOTableRef table, size_t index);
225 
238 LO_RESULT LOTableRemoveColumn(LOTableRef table, size_t index);
239 
261  LOTableRef table, size_t row, size_t column, LOFormattedTextRef* text);
262 
282 LO_RESULT LOTableSetCellText(LOTableRef table, size_t row, size_t column, LOFormattedTextRef text);
283 
295 
310 
324 LO_RESULT LOTableGetRowEdgeStyle(LOTableRef table, size_t row, LOStyleRef style);
325 
343 LO_RESULT LOTableSetRowEdgeStyle(LOTableRef table, size_t row, LOStyleRef style);
344 
358 LO_RESULT LOTableGetColumnEdgeStyle(LOTableRef table, size_t column, LOStyleRef style);
359 
377 LO_RESULT LOTableSetColumnEdgeStyle(LOTableRef table, size_t column, LOStyleRef style);
378 
400  LOTableRef table, size_t row, size_t column, size_t* row_span, size_t* column_span);
401 
424  LOTableRef table, size_t start_row, size_t start_column, size_t end_row, size_t end_column);
425 
443  LOTableRef table, size_t row, size_t column, LOTableCellRotation* rotation);
444 
464  LOTableRef table, size_t row, size_t column, LOTableCellRotation rotation);
465 
466 #ifdef __cplusplus
467 } // end extern "C"
468 #endif // __cplusplus
469 
470 #endif // LAYOUT_MODEL_TABLE_H_