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 
61 
72 
88 
100 
110 
122 LO_RESULT LOTableGetDimensions(LOTableRef table, size_t* rows, size_t* columns);
123 
136 LO_RESULT LOTableGetRowHeight(LOTableRef table, size_t index, double* height);
137 
153 LO_RESULT LOTableSetRowHeight(LOTableRef table, size_t index, double height);
154 
167 LO_RESULT LOTableGetColumnWidth(LOTableRef table, size_t index, double* width);
183 LO_RESULT LOTableSetColumnWidth(LOTableRef table, size_t index, double width);
184 
197 LO_RESULT LOTableInsertRow(LOTableRef table, size_t index);
198 
211 LO_RESULT LOTableRemoveRow(LOTableRef table, size_t index);
212 
225 LO_RESULT LOTableInsertColumn(LOTableRef table, size_t index);
226 
239 LO_RESULT LOTableRemoveColumn(LOTableRef table, size_t index);
240 
262  LOTableRef table, size_t row, size_t column, LOFormattedTextRef* text);
263 
283 LO_RESULT LOTableSetCellText(LOTableRef table, size_t row, size_t column, LOFormattedTextRef text);
284 
296 
311 
325 LO_RESULT LOTableGetRowEdgeStyle(LOTableRef table, size_t row, LOStyleRef style);
326 
344 LO_RESULT LOTableSetRowEdgeStyle(LOTableRef table, size_t row, LOStyleRef style);
345 
359 LO_RESULT LOTableGetColumnEdgeStyle(LOTableRef table, size_t column, LOStyleRef style);
360 
378 LO_RESULT LOTableSetColumnEdgeStyle(LOTableRef table, size_t column, LOStyleRef style);
379 
401  LOTableRef table, size_t row, size_t column, size_t* row_span, size_t* column_span);
402 
425  LOTableRef table, size_t start_row, size_t start_column, size_t end_row, size_t end_column);
426 
444  LOTableRef table, size_t row, size_t column, LOTableCellRotation* rotation);
445 
465  LOTableRef table, size_t row, size_t column, LOTableCellRotation rotation);
466 
480 
481 #ifdef __cplusplus
482 } // end extern "C"
483 #endif // __cplusplus
484 
485 #endif // LAYOUT_MODEL_TABLE_H_