LayOut C API
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
LayOutAPI
model
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
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif // __cplusplus
19
24
typedef
enum
{
25
LOTableCellRotation_0
= 0,
26
LOTableCellRotation_90
,
27
LOTableCellRotation_180
,
28
LOTableCellRotation_270
29
}
LOTableCellRotation
;
30
47
LO_RESULT
LOTableCreate
(
LOTableRef
* table,
48
const
LOAxisAlignedRect2D
* bounds,
49
size_t
rows,
50
size_t
columns);
59
LO_EXPORT
LOTableRef
LOTableFromEntity
(
LOEntityRef
entity);
60
70
LO_EXPORT
LOEntityRef
LOTableToEntity
(
LOTableRef
table);
71
86
LO_RESULT
LOTableGetExplodedEntities
(
LOTableRef
table,
87
LOEntityListRef
entity_list);
88
99
LO_RESULT
LOTableRelease
(
LOTableRef
* table);
100
109
LO_RESULT
LOTableAddReference
(
LOTableRef
table);
110
122
LO_RESULT
LOTableGetDimensions
(
LOTableRef
table,
123
size_t
* rows,
124
size_t
* columns);
125
138
LO_RESULT
LOTableGetRowHeight
(
LOTableRef
table,
139
size_t
index,
140
double
* height);
141
157
LO_RESULT
LOTableSetRowHeight
(
LOTableRef
table,
size_t
index,
double
height);
158
171
LO_RESULT
LOTableGetColumnWidth
(
LOTableRef
table,
172
size_t
index,
173
double
* width);
189
LO_RESULT
LOTableSetColumnWidth
(
LOTableRef
table,
190
size_t
index,
191
double
width);
192
205
LO_RESULT
LOTableInsertRow
(
LOTableRef
table,
size_t
index);
206
219
LO_RESULT
LOTableRemoveRow
(
LOTableRef
table,
size_t
index);
220
233
LO_RESULT
LOTableInsertColumn
(
LOTableRef
table,
size_t
index);
234
247
LO_RESULT
LOTableRemoveColumn
(
LOTableRef
table,
size_t
index);
248
269
LO_RESULT
LOTableCreateCellTextCopy
(
LOTableRef
table,
270
size_t
row,
271
size_t
column,
272
LOFormattedTextRef
* text);
273
293
LO_RESULT
LOTableSetCellText
(
LOTableRef
table,
294
size_t
row,
295
size_t
column,
296
LOFormattedTextRef
text);
297
308
LO_RESULT
LOTableGetBorderStyle
(
LOTableRef
table,
LOStyleRef
style);
309
323
LO_RESULT
LOTableSetBorderStyle
(
LOTableRef
table,
LOStyleRef
style);
324
338
LO_RESULT
LOTableGetRowEdgeStyle
(
LOTableRef
table,
339
size_t
row,
340
LOStyleRef
style);
341
359
LO_RESULT
LOTableSetRowEdgeStyle
(
LOTableRef
table,
360
size_t
row,
361
LOStyleRef
style);
362
376
LO_RESULT
LOTableGetColumnEdgeStyle
(
LOTableRef
table,
377
size_t
column,
378
LOStyleRef
style);
379
397
LO_RESULT
LOTableSetColumnEdgeStyle
(
LOTableRef
table,
398
size_t
column,
399
LOStyleRef
style);
400
421
LO_RESULT
LOTableGetCellSpan
(
LOTableRef
table,
422
size_t
row,
423
size_t
column,
424
size_t
* row_span,
425
size_t
* column_span);
426
448
LO_RESULT
LOTableMergeCells
(
LOTableRef
table,
449
size_t
start_row,
450
size_t
start_column,
451
size_t
end_row,
452
size_t
end_column);
453
470
LO_RESULT
LOTableGetCellRotation
(
LOTableRef
table,
471
size_t
row,
472
size_t
column,
473
LOTableCellRotation
* rotation);
474
493
LO_RESULT
LOTableSetCellRotation
(
LOTableRef
table,
494
size_t
row,
495
size_t
column,
496
LOTableCellRotation
rotation);
497
498
#ifdef __cplusplus
499
}
// end extern "C"
500
#endif // __cplusplus
501
502
#endif // LAYOUT_MODEL_TABLE_H_
Generated on Wed Sep 8 2021 14:15:26 for LayOut C API by
1.8.3.1