新規作成  編集  Ruby-GNOME2 Project Website  ページ一覧  検索  更新履歴  編集履歴  RSS  ログイン

Gtk::CellView

Gtk::CellView クラス

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

インクルードされているモジュール

クラスメソッド

Gtk::CellView.new(text = nil, with_markup = true)
Creates a new Gtk::CellView widget.
  • text: The text(String) to display in the cell view. If with_markup is set to true, the text is treaded as markup string.
  • with_markup: true if text is markup string, otherwise false
  • Returns: A newly created Gtk::CellView widget
  • Returns: self
Gtk::CellView.new(pixbuf)
Creates a new Gtk::CellView widget, adds a Gtk::CellRendererPixbuf to it, and makes its show pixbuf.

インスタンスメソッド

model()
要編集
model=(model)
Sets the Gtk::TreeModel. If the Gtk::CellView already has a model set, it will remove it before setting the new model. If model is nil, then it will unset the old model.
set_model(model)
Same as Gtk::CellView#model=.
displayed_row
Gets the row of the model that is currently displayed by the Gtk::CellView. See displayed_row= for more detail.
displayed_row=(path)
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.
set_displayed_row(path)
Same as Gtk::CellView#displayed_row=.
get_size_of_row(path)
Gets the size needed by cell_view to display the model row pointed to by path. Or raise an RuntimeError if it can't get the size.
cell_renderers
Returns Array of the cell renderers which have been added to the Gtk::CellView.
  • Returns: Array of the cell renderers
background=(background)
Sets the Background color as a String.
  • background: Background color as a String
  • Returns: background
set_background(background)
Same as Gtk::CellView#background=.
  • background: Background color as a String
  • Returns: self
background_gdk
Gets the Background color as a Gdk::Color.
background_gdk=(background_gdk)
Sets the Background color as a Gdk::Color.
  • background_gdk: Background color as a Gdk::Color
  • Returns: background_gdk
set_background_gdk(background_gdk)
Same as Gtk::CellView#background_gdk=.
  • background_gdk: Background color as a Gdk::Color
  • Returns: self
background_set?
Gets the value whether this tag affects the background color or not.
  • Returns: true if this tag affects the background color
background_set=(background_set)
Sets the value whether this tag affects the background color or not.
  • background_set: true if this tag affects the background color
  • Returns: background_set
set_background_set(background_set)
Same as Gtk::CellView#background_set=.
  • background_set: true if this tag affects the background color
  • Returns: self

プロパティ

background: String (Write)
Background color as a string
  • Default value: nil
background-gdk: Gdk::Color (Read/Write)
Background color as a Gdk::Color
background-set: true or false (Read/Write)
Whether this tag affects the background color
  • Default value: false
model:
要編集

更新履歴

  • 2014-06-15 クラスのメンバで漏れているものを追加。 - きたがわ
  • 2005-05-05 Added - Masao?
更新日時:2014/06/15 23:07:36
キーワード:
参照:[Ruby/GTK Object Hierarchy] [Ruby/GTK] [Gtk::CellView]