Gtk.CellView
const Gtk = imports.gi.Gtk; let cell_view = new Gtk.CellView({ background: value, background_gdk: value, background_rgba: value, background_set: value, cell_area: value, cell_area_context: value, draw_sensitive: value, fit_model: value, model: value, });
A Gtk.CellView displays a single row of a Gtk.TreeModel using a Gtk.CellArea and Gtk.CellAreaContext. A Gtk.CellAreaContext can be provided to the Gtk.CellView at construction time in order to keep the cellview in context of a group of cell views, this ensures that the renderers displayed will be properly aligned with eachother (like the aligned cells in the menus of Gtk.ComboBox).
Gtk.CellView is Gtk.Orientable in order to decide in which orientation the underlying Gtk.CellAreaContext should be allocated. Taking the Gtk.ComboBox menu as an example, cellviews should be oriented horizontally if the menus are listed top-to-bottom and thus all share the same width but may have separate individual heights (left-to-right menus should be allocated vertically since they all share the same height but may have variable widths).
Hierarchy
-
GObject.Object
-
GObject.InitiallyUnowned
-
Gtk.Widget
- Gtk.CellView
-
-
Methods
- Gtk.CellView.prototype.get_displayed_row
- Gtk.CellView.prototype.get_draw_sensitive
- Gtk.CellView.prototype.get_fit_model
- Gtk.CellView.prototype.get_model
- Gtk.CellView.prototype.get_size_of_row
- Gtk.CellView.prototype.set_background_color
- Gtk.CellView.prototype.set_background_rgba
- Gtk.CellView.prototype.set_displayed_row
- Gtk.CellView.prototype.set_draw_sensitive
- Gtk.CellView.prototype.set_fit_model
- Gtk.CellView.prototype.set_model