]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: add scols_cell_get_alignment()
authorKarel Zak <kzak@redhat.com>
Mon, 9 Jan 2017 12:28:24 +0000 (13:28 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Jan 2017 12:28:24 +0000 (13:28 +0100)
commit6ffbd28359104c75015c260b84c804fb893b8620
tree1e2a45a83ec2d73c178ec3b2fbf026314dce2e5e
parentefc07958110c6c2cac15e5c4c9c80cc1361924cf
libsmartcols: add scols_cell_get_alignment()

Just to hide that we use cell flags (bitwise operations) to define
cell content alignment. The patch also more explicitly specifies the
flags in the header file.

The alignment is evaluated in the order: right, center, left. The
default is left.

Note that SCOLS_CELL_FL_* are used for for table title only.

Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/docs/libsmartcols-sections.txt
libsmartcols/src/cell.c
libsmartcols/src/libsmartcols.h.in
libsmartcols/src/libsmartcols.sym
libsmartcols/src/table_print.c