Synopsis#include <gtk/gtk.h> GtkCellView; GtkWidget* gtk_cell_view_new (void); GtkWidget* gtk_cell_view_new_with_text (const gchar *text); GtkWidget* gtk_cell_view_new_with_markup (const gchar *markup); GtkWidget* gtk_cell_view_new_with_pixbuf (GdkPixbuf *pixbuf); void gtk_cell_view_set_model (GtkCellView *cell_view, GtkTreeModel *model); void gtk_cell_view_set_displayed_row (GtkCellView *cell_view, GtkTreePath *path); GtkTreePath* gtk_cell_view_get_displayed_row (GtkCellView *cell_view); gboolean gtk_cell_view_get_size_of_row (GtkCellView *cell_view, GtkTreePath *path, GtkRequisition *requisition); void gtk_cell_view_set_background_color (GtkCellView *cell_view, const GdkColor *color); GList* gtk_cell_view_get_cell_renderers (GtkCellView *cell_view); Properties"background" gchar* : Write "background-gdk" GdkColor* : Read / Write "background-set" gboolean : Read / Write "model" GtkTreeModel* : Read / Write DescriptionA GtkCellView displays a single row of a GtkTreeModel, using cell renderers just like GtkTreeView. GtkCellView doesn't support some of the more complex features of GtkTreeView, like cell editing and drag and drop. Detailsgtk_cell_view_new ()GtkWidget* gtk_cell_view_new (void); Creates a new GtkCellView widget.
Since 2.6 gtk_cell_view_new_with_text ()GtkWidget* gtk_cell_view_new_with_text (const gchar *text);
Creates a new GtkCellView widget, adds a GtkCellRendererText
to it, and makes its show
Since 2.6 gtk_cell_view_new_with_markup ()GtkWidget* gtk_cell_view_new_with_markup (const gchar *markup);
Creates a new GtkCellView widget, adds a GtkCellRendererText
to it, and makes its show
Since 2.6 gtk_cell_view_new_with_pixbuf ()GtkWidget* gtk_cell_view_new_with_pixbuf (GdkPixbuf *pixbuf);
Creates a new GtkCellView widget, adds a GtkCellRendererPixbuf
to it, and makes its show
Since 2.6 gtk_cell_view_set_model ()void gtk_cell_view_set_model (GtkCellView *cell_view, GtkTreeModel *model);
Sets the model for
Since 2.6 gtk_cell_view_set_displayed_row ()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 gtk_cell_view_get_displayed_row ()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,
Since 2.6 gtk_cell_view_get_size_of_row ()gboolean gtk_cell_view_get_size_of_row (GtkCellView *cell_view, GtkTreePath *path, GtkRequisition *requisition);
Sets
Since 2.6 gtk_cell_view_set_background_color ()void gtk_cell_view_set_background_color (GtkCellView *cell_view, const GdkColor *color);
Sets the background color of
Since 2.6 gtk_cell_view_get_cell_renderers ()GList* gtk_cell_view_get_cell_renderers (GtkCellView *cell_view);
Returns the cell renderers which have been added to
Since 2.6 Property DetailsThe
|