manpagez: man pages & more
html files: gcr-3
Home | html | info | man

GcrColumn

GcrColumn — Column information for selector or model.

Types and Values

Description

A GcrColumn is used with GcrTreeSelector or GcrCollectionModel to define the columns to display.

Functions

Types and Values

GcrColumn

typedef struct {
	const gchar *property_name;     /* The property to retrieve */
	GType property_type;            /* The property type */
	GType column_type;              /* The resulting property type for this column */

	const gchar *label;             /* The label for this column, or NULL */
	GcrColumnFlags flags;           /* Column flags */

	GValueTransform transformer;    /* The way to transform to this type or NULL */

	gpointer user_data;
} GcrColumn;

Represents a column to display in a GcrCollectionModel or GcrTreeSelector.

The label should be set as a translatable string with a context of

"column". This should be done with with this macro:
1
NC_("column", "My Column Name")

Members

const gchar *property_name;

The name of the property this column will display

 

GType property_type;

The type of the property

 

GType column_type;

The eventual type of the column

 

const gchar *label;

The display label for the column

 

GcrColumnFlags flags;

Flags from GcrColumnFlags

 

GValueTransform transformer;

A transformer function used to convert the value from the property type to the column type. Can be NULL if the types are the same.

 

gpointer user_data;

User data associated with the column

 

enum GcrColumnFlags

Flags to be used with GcrColumn

Members

GCR_COLUMN_NONE

No column flags

 

GCR_COLUMN_HIDDEN

Don't display this column.

 

GCR_COLUMN_SORTABLE

This column is sortable.

 
© manpagez.com 2000-2018
Individual documents may contain additional copyright information.