LayOut C API

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

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>
7 #include <LayOutAPI/geometry/geometry.h>
8 #include <LayOutAPI/model/defs.h>
9
10
17 #ifdef __cplusplus
18 extern "C" {
19 #endif // __cplusplus
20
26 typedef enum {
27 LOTableCellRotation_0 = 0,
28 LOTableCellRotation_90,
29 LOTableCellRotation_180,
30 LOTableCellRotation_270
31 } LOTableCellRotation;
32
50 LO_RESULT LOTableCreate(
51 LOTableRef* table, const LOAxisAlignedRect2D* bounds, size_t rows, size_t columns);
52
53
62 LO_EXPORT LOTableRef LOTableFromEntity(LOEntityRef entity);
63
73 LO_EXPORT LOEntityRef LOTableToEntity(LOTableRef table);
74
89 LO_RESULT LOTableGetExplodedEntities(LOTableRef table, LOEntityListRef entity_list);
90
101 LO_RESULT LOTableRelease(LOTableRef* table);
102
111 LO_RESULT LOTableAddReference(LOTableRef table);
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
263 LO_RESULT LOTableCreateCellTextCopy(
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
297 LO_RESULT LOTableGetBorderStyle(LOTableRef table, LOStyleRef style);
298
312 LO_RESULT LOTableSetBorderStyle(LOTableRef table, LOStyleRef style);
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
402 LO_RESULT LOTableGetCellSpan(
403 LOTableRef table, size_t row, size_t column, size_t* row_span, size_t* column_span);
404
426 LO_RESULT LOTableMergeCells(
427 LOTableRef table, size_t start_row, size_t start_column, size_t end_row, size_t end_column);
428
445 LO_RESULT LOTableGetCellRotation(
446 LOTableRef table, size_t row, size_t column, LOTableCellRotation* rotation);
447
466 LO_RESULT LOTableSetCellRotation(
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_