W Wrapl, The Programming Language

Libraries:Gtk:Gtk:CellView

Types

T

Inherits from:

A T displays a single row of a Gtk.Gtk.TreeModel.T, using cell renderers just like Gtk.Gtk.TreeView.T. T doesn't support some of the more complex features of Gtk.Gtk.TreeView.T, like cell editing and drag and drop.



Constants

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



New() : Gtk.Gtk.CellView.T

Creates a new T widget.

Returns A newly created T widget.


NewWithMarkup(markup @ Std.String.T) : Gtk.Gtk.CellView.T

Creates a new T widget, adds a Gtk.Gtk.CellRendererText.T to it, and makes it show markup. The text can be marked up with the Pango text markup language.

markup the text to display in the cell view
Returns A newly created T widget.


NewWithPixbuf(pixbuf @ Gtk.Gdk.Pixbuf.T) : Gtk.Gtk.CellView.T

Creates a new T widget, adds a Gtk.Gtk.CellRendererPixbuf.T to it, and makes its show pixbuf.

pixbuf the image to display in the cell view
Returns A newly created T widget.


NewWithText(text @ Std.String.T) : Gtk.Gtk.CellView.T

Creates a new T widget, adds a Gtk.Gtk.CellRendererText.T to it, and makes its show text.

text the text to display in the cell view
Returns A newly created T widget.


Methods

:GetCellRenderers(self @ T) : Std.Object.T

Warning

GetCellRenderers has been deprecated since version 2.18 and should not be used in newly-written code. use Gtk.Gtk.CellLayout.GetCells instead.



:GetDisplayedRow(self @ T) : Gtk.Gtk.TreePath.T

Returns a Gtk.Gtk.TreePath.T referring to the currently displayed row. If no row is currently displayed, NULL is returned.

cell_view a T
Returns the currently displayed row or NULL


:GetModel(self @ T) : Gtk.Gtk.TreeModel.T

Returns the model for cell_view. If no model is used NULL is returned.

cell_view a T
Returns a Gtk.Gtk.TreeModel.T used or NULL. [transfer none]


:GetSizeOfRow(self @ T, path @ Gtk.Gtk.TreePath.T, requisition @ Gtk.Gtk.Requisition.T) : Std.Symbol.T

Sets requisition to the size needed by cell_view to display the model row pointed to by path.

cell_view a T
path a Gtk.Gtk.TreePath.T
requisition return location for the size. [out]
Returns TRUE


:SetBackgroundColor(self @ T, color @ Gtk.Gdk.Color.T) : Std.Object.T

Sets the background color of view.

cell_view a T
color the new background color


:SetDisplayedRow(self @ T, path @ Gtk.Gtk.TreePath.T) : Std.Object.T

Sets the row of the model that is currently displayed by the T. 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 T becomes temporarily empty.

cell_view a T
path a Gtk.Gtk.TreePath.T or NULL to unset. [allow-none]


:SetModel(self @ T, model @ Gtk.Gtk.TreeModel.T) : Std.Object.T

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.

cell_view a T
model a Gtk.Gtk.TreeModel.T. [allow-none]