Top |
const char * | scols_column_get_color () |
int | scols_column_get_flags () |
struct libscols_cell * | scols_column_get_header () |
double | scols_column_get_whint () |
int | scols_column_is_hidden () |
int | scols_column_is_noextremes () |
int | scols_column_is_right () |
int | scols_column_is_strict_width () |
int | scols_column_is_tree () |
int | scols_column_is_trunc () |
int | scols_column_is_wrap () |
int | scols_column_set_cmpfunc () |
int | scols_column_set_color () |
int | scols_column_set_flags () |
int | scols_column_set_whint () |
struct libscols_column * | scols_copy_column () |
struct libscols_column * | scols_new_column () |
void | scols_ref_column () |
void | scols_unref_column () |
struct libscols_cell *
scols_column_get_header (struct libscols_column *cl
);
int
scols_column_is_hidden (struct libscols_column *cl
);
Gets the value of cl
's flag hidden.
Since: 2.27
int
scols_column_is_noextremes (struct libscols_column *cl
);
Gets the value of cl
's flag no_extremes.
int
scols_column_is_right (struct libscols_column *cl
);
Gets the value of cl
's flag right.
int
scols_column_is_strict_width (struct libscols_column *cl
);
Gets the value of cl
's flag strict_width.
int
scols_column_is_tree (struct libscols_column *cl
);
Gets the value of cl
's flag tree.
int
scols_column_is_trunc (struct libscols_column *cl
);
Gets the value of cl
's flag trunc.
int
scols_column_is_wrap (struct libscols_column *cl
);
Gets the value of cl
's flag wrap.
Since: 2.28
int scols_column_set_cmpfunc (struct libscols_column *cl
,int (*cmp) (struct libscols_cell *a, struct libscols_cell *b, void *)
,void *data
);
int scols_column_set_color (struct libscols_column *cl
,const char *color
);
The default color for data cells and column header.
If you want to set header specific color then use scols_column_get_header()
and scols_cell_set_color()
.
If you want to set data cell specific color the use scols_line_get_cell()
+
scols_cell_set_color()
.
int scols_column_set_flags (struct libscols_column *cl
,int flags
);
Sets the flags of cl
to flags
.
int scols_column_set_whint (struct libscols_column *cl
,double whint
);
Sets the width hint of column cl
to whint
. See scols_table_new_column()
.
struct libscols_column *
scols_copy_column (const struct libscols_column *cl
);
Creates a new column and copies cl
's data over to it.
struct libscols_column *
scols_new_column (void
);
Allocates space for a new column.
void
scols_ref_column (struct libscols_column *cl
);
Increases the refcount of cl
.