Class: Gtk::CellView

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#background=(background) ⇒ String

Returns background.

Parameters:

  • background (String)

Returns:

  • (String)

    background

#background_color=(color) ⇒ nil

Sets the background color of view.

Parameters:

  • color (Gdk::Color)

    the new background color

Returns:

  • (nil)

#background_gdkGdk::Color

The background color as a Gdk::Color

Returns:

  • (Gdk::Color)

    background-gdk

#background_gdk=(background_gdk) ⇒ Gdk::Color

The background color as a Gdk::Color

Parameters:

  • background_gdk (Gdk::Color)

Returns:

  • (Gdk::Color)

    background-gdk

  • (Gdk::Color)

    background-gdk

#background_rgbaGdk::RGBA

The background color as a Gdk::RGBA

Returns:

  • (Gdk::RGBA)

    background-rgba

#background_rgba=(background_rgba) ⇒ Gdk::RGBA

The background color as a Gdk::RGBA

Parameters:

  • background_rgba (Gdk::RGBA)

Returns:

  • (Gdk::RGBA)

    background-rgba

  • (Gdk::RGBA)

    background-rgba

#background_set=(background_set) ⇒ TrueClass

Parameters:

  • background_set (TrueClass)

Returns:

  • (TrueClass)

    background-set

  • (TrueClass)

    background-set

#background_set?TrueClass

Returns background-set.

Returns:

  • (TrueClass)

    background-set

#cell_areaGtk::CellArea

The Gtk::CellArea rendering cells

If no area is specified when creating the cell view with gtk_cell_view_new_with_context() a horizontally oriented Gtk::CellAreaBox will be used.

since 3.0

Returns:

#cell_area=(cell_area) ⇒ Gtk::CellArea

The Gtk::CellArea rendering cells

If no area is specified when creating the cell view with gtk_cell_view_new_with_context() a horizontally oriented Gtk::CellAreaBox will be used.

since 3.0

Parameters:

Returns:

#cell_area_contextGtk::CellAreaContext

The Gtk::CellAreaContext used to compute the geometry of the cell view.

A group of cell views can be assigned the same context in order to ensure the sizes and cell alignments match across all the views with the same context.

Gtk::ComboBox menus uses this to assign the same context to all cell views in the menu items for a single menu (each submenu creates its own context since the size of each submenu does not depend on parent or sibling menus).

since 3.0

Returns:

#cell_area_context=(cell_area_context) ⇒ Gtk::CellAreaContext

The Gtk::CellAreaContext used to compute the geometry of the cell view.

A group of cell views can be assigned the same context in order to ensure the sizes and cell alignments match across all the views with the same context.

Gtk::ComboBox menus uses this to assign the same context to all cell views in the menu items for a single menu (each submenu creates its own context since the size of each submenu does not depend on parent or sibling menus).

since 3.0

Parameters:

Returns:

#displayed_rowGtk::TreePath

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

Returns:

  • (Gtk::TreePath)

    the currently displayed row or nil

#displayed_row=(path) ⇒ nil

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

Parameters:

  • path (Gtk::TreePath)

    a Gtk::TreePath or nil to unset.

Returns:

  • (nil)

#draw_sensitiveTrueClass

Gets whether cell_view is configured to draw all of its cells in a sensitive state. cells in a sensitive state

Returns:

  • (TrueClass)

    whether cell_view draws all of its

#draw_sensitive=(draw_sensitive) ⇒ TrueClass

Whether all cells should be draw as sensitive for this view regardless of the actual cell properties (used to make menus with submenus appear sensitive when the items in submenus might be insensitive).

since 3.0

Parameters:

  • draw_sensitive (TrueClass)

Returns:

  • (TrueClass)

    draw-sensitive

  • (TrueClass)

    draw-sensitive

#draw_sensitive?TrueClass

Whether all cells should be draw as sensitive for this view regardless of the actual cell properties (used to make menus with submenus appear sensitive when the items in submenus might be insensitive).

since 3.0

Returns:

  • (TrueClass)

    draw-sensitive

#fit_modelTrueClass

Gets whether cell_view is configured to request space to fit the entire Gtk::TreeModel. the entire Gtk::TreeModel.

Returns:

  • (TrueClass)

    whether cell_view requests space to fit

#fit_model=(fit_model) ⇒ TrueClass

Whether the view should request enough space to always fit the size of every row in the model (used by the combo box to ensure the combo box size doesnt change when different items are selected).

since 3.0

Parameters:

  • fit_model (TrueClass)

Returns:

  • (TrueClass)

    fit-model

  • (TrueClass)

    fit-model

#fit_model?TrueClass

Whether the view should request enough space to always fit the size of every row in the model (used by the combo box to ensure the combo box size doesnt change when different items are selected).

since 3.0

Returns:

  • (TrueClass)

    fit-model

#get_size_of_row(path, requisition) ⇒ TrueClass

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

Parameters:

  • path (Gtk::TreePath)

    a Gtk::TreePath

  • requisition (Gtk::Requisition)

    return location for the size

Returns:

  • (TrueClass)

    true

#modelGtk::TreeModel

The model for cell view

since 2.10

Returns:

#model=(model) ⇒ Gtk::TreeModel

The model for cell view

since 2.10

Parameters:

Returns:

#newGtk::Widget

Creates a new Gtk::CellView widget.

Returns:

  • (Gtk::Widget)

    A newly created Gtk::CellView widget.

#new_with_context(area, context) ⇒ Gtk::Widget

Creates a new Gtk::CellView widget with a specific #GtkCellArea to layout cells and a specific Gtk::CellAreaContext.

Specifying the same context for a handfull of cells lets the underlying area synchronize the geometry for those cells, in this way alignments with cellviews for other rows are possible.

Parameters:

Returns:

  • (Gtk::Widget)

    A newly created Gtk::CellView widget.

#new_with_markup(markup) ⇒ Gtk::Widget

Creates a new Gtk::CellView widget, adds a #GtkCellRendererText to it, and makes it show markup. The text can be marked up with the [Pango text markup language].

Parameters:

  • markup (String)

    the text to display in the cell view

Returns:

  • (Gtk::Widget)

    A newly created Gtk::CellView widget.

#new_with_pixbuf(pixbuf) ⇒ Gtk::Widget

Creates a new Gtk::CellView widget, adds a #GtkCellRendererPixbuf to it, and makes it show pixbuf.

Parameters:

Returns:

  • (Gtk::Widget)

    A newly created Gtk::CellView widget.

#new_with_text(text) ⇒ Gtk::Widget

Creates a new Gtk::CellView widget, adds a #GtkCellRendererText to it, and makes it show text.

Parameters:

  • text (String)

    the text to display in the cell view

Returns:

  • (Gtk::Widget)

    A newly created Gtk::CellView widget.