Top |
GtkWidget * | gtk_cell_view_new () |
GtkWidget * | gtk_cell_view_new_with_text () |
GtkWidget * | gtk_cell_view_new_with_markup () |
GtkWidget * | gtk_cell_view_new_with_pixbuf () |
void | gtk_cell_view_set_model () |
GtkTreeModel * | gtk_cell_view_get_model () |
void | gtk_cell_view_set_displayed_row () |
GtkTreePath * | gtk_cell_view_get_displayed_row () |
gboolean | gtk_cell_view_get_size_of_row () |
void | gtk_cell_view_set_background_color () |
GList * | gtk_cell_view_get_cell_renderers () |
char * | background | Write |
GdkColor * | background-gdk | Read / Write |
gboolean | background-set | Read / Write |
GtkTreeModel * | model | Read / Write |
GtkWidget *
gtk_cell_view_new (void
);
Creates a new GtkCellView widget.
Since: 2.6
GtkWidget *
gtk_cell_view_new_with_text (const gchar *text
);
Creates a new GtkCellView widget, adds a GtkCellRendererText
to it, and makes its show text
.
Since: 2.6
GtkWidget *
gtk_cell_view_new_with_markup (const gchar *markup
);
Creates a new GtkCellView widget, adds a GtkCellRendererText
to it, and makes it show markup
. The text can be
marked up with the
Since: 2.6
GtkWidget *
gtk_cell_view_new_with_pixbuf (GdkPixbuf *pixbuf
);
Creates a new GtkCellView widget, adds a GtkCellRendererPixbuf
to it, and makes its show pixbuf
.
Since: 2.6
void gtk_cell_view_set_model (GtkCellView *cell_view
,GtkTreeModel *model
);
Sets the model for cell_view
. If cell_view
already has a model
set, it will remove it before setting the new model. If model
is
NULL
, then it will unset the old model.
Since: 2.6
GtkTreeModel *
gtk_cell_view_get_model (GtkCellView *cell_view
);
Returns the model for cell_view
. If no model is used NULL
is
returned.
Since: 2.16
void gtk_cell_view_set_displayed_row (GtkCellView *cell_view
,GtkTreePath *path
);
Sets the row of the model that is currently displayed by the GtkCellView. If the path is unset, then the contents of the cellview "stick" at their last value; this is not normally a desired result, but may be a needed intermediate state if say, the model for the GtkCellView becomes temporarily empty.
Since: 2.6
GtkTreePath *
gtk_cell_view_get_displayed_row (GtkCellView *cell_view
);
Returns a GtkTreePath referring to the currently
displayed row. If no row is currently displayed,
NULL
is returned.
Since: 2.6
gboolean gtk_cell_view_get_size_of_row (GtkCellView *cell_view
,GtkTreePath *path
,GtkRequisition *requisition
);
Sets requisition
to the size needed by cell_view
to display
the model row pointed to by path
.
Since: 2.6
void gtk_cell_view_set_background_color (GtkCellView *cell_view
,const GdkColor *color
);
Sets the background color of view
.
Since: 2.6
GList *
gtk_cell_view_get_cell_renderers (GtkCellView *cell_view
);
gtk_cell_view_get_cell_renderers
has been deprecated since version 2.18 and should not be used in newly-written code.
use gtk_cell_layout_get_cells()
instead.
Returns the cell renderers which have been added to cell_view
.
a list of cell renderers. The list, but not the
renderers has been newly allocated and should be freed with
g_list_free()
when no longer needed.
Since: 2.6
“background”
property “background” char *
Background color as a string.
Owner: GtkCellView
Flags: Write
Default value: NULL
“background-gdk”
property“background-gdk” GdkColor *
Background color as a GdkColor.
Owner: GtkCellView
Flags: Read / Write
“background-set”
property “background-set” gboolean
Whether this tag affects the background color.
Owner: GtkCellView
Flags: Read / Write
Default value: FALSE
“model”
property“model” GtkTreeModel *
The model for cell view
since 2.10
Owner: GtkCellView
Flags: Read / Write