Gtk::CellRendererPixbuf
Gtk::CellRendererPixbuf クラス
The Gtk::CellRendererPixbuf is used for rendering a cell to a Gdk::Drawable with Gdk::Pixbuf.
クラスメソッド
Gtk::CellRendererPixbuf.new
-
Creates a new Gtk::CellRendererPixbuf. Adjust rendering parameters using object properties. Object properties can be set globally (with GLib::Object#set_property). Also, with Gtk::TreeViewColumn, you can bind a property to a value in a Gtk::TreeModel. For example, you can bind the "pixbuf" property on the cell renderer to a pixbuf value in the model, thus rendering a different image in each row of the Gtk::TreeView.
- Returns : the new cell renderer
インスタンスメソッド
pixbuf
-
Returns Gdk::Pixbuf.
- Returns: Gdk::Pixbuf
pixbuf=(pixbuf)
-
Sets the pixbuf of the Gtk::CellRendererPixbuf.
- pixbuf: Gdk::Pixbuf
- Returns: pixbuf
set_pixbuf(pixbuf)
-
Same as Gtk::CellRendererPixbuf#pixbuf=.
- pixbuf: Gdk::Pixbuf
- Returns: self
pixbuf_expander_closed
-
Returns the expander is closed or not.
- Returns: true if closed.
pixbuf_expander_closed=(closed)
-
Sets the expander is closed or not.
- closed: true if closed.
- Returns: closed
set_pixbuf_expander_closed(closed)
-
Same as Gtk::CellRendererPixbuf#pixbuf_expander_closed=.
- closed: true if closed.
- Returns: self
pixbuf_expander_open
-
Returns the expander is opened or not.
- Returns: true or false
pixbuf_expander_open=(open)
-
Sets the expander is opened or not.
- open: true if opened.
- Returns: open
set_pixbuf_expander_open(open)
-
Same as Gtk::CellRendererPixbuf#pixbuf_expander_open=.
- open: true if opened.
- Returns: self
gicon=()
- 要編集
set_gicon()
- 要編集
gicon()
- 要編集
icon_name=()
- 要編集
set_icon_name()
- 要編集
icon_name()
- 要編集
follow_state=()
- 要編集
set_follow_state()
- 要編集
follow_state?()
- 要編集
stock_detail=()
- 要編集
set_stock_detail()
- 要編集
stock_detail()
- 要編集
stock_size=()
- 要編集
set_stock_size()
- 要編集
stock_size()
- 要編集
stock_id=()
- 要編集
set_stock_id()
- 要編集
stock_id()
- 要編集
プロパティ
pixbuf: Gdk::Pixbuf (Read/Write)
- The pixbuf to render
pixbuf-expander-closed: Gdk::Pixbuf (Read/Write)
- Pixbuf for closed expander
pixbuf-expander-open: Gdk::Pixbuf (Read/Write)
- Pixbuf for open expander
stock-detail: String (Read/Write)
- Render detail to pass to the theme engine
stock-id: String (Read/Write)
- The stock ID of the stock icon to render
stock-size: Integer (Read/Write)
- The size of the rendered icon
gicon:
- 要編集
icon-name:
- 要編集
follow-state:
- 要編集
キーワード:
参照:[Ruby/GTK] [Gtk::TreeViewColumn] [Ruby/GTK Object Hierarchy] [Gtk::CellRenderer] [Gtk::TreeView] [Gtk::CellView] [Gtk::CellRendererPixbuf] [Gtk::TreeSelection]