Class: Gtk::IconView
- Inherits:
-
Object
- Object
- Gtk::IconView
- Extended by:
- GLib::Deprecatable
- Defined in:
- lib/gtk3/icon-view.rb,
lib/gtk3/deprecated.rb
Instance Method Summary collapse
- #get_cell_rect(path, cell = nil) ⇒ Object
- #get_cell_rect_raw ⇒ Object
-
#initialize(options = {}) ⇒ IconView
constructor
A new instance of IconView.
- #initialize_raw ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ IconView
Returns a new instance of IconView.
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/gtk3/icon-view.rb', line 20 def initialize(={}) model = [:model] area = [:area] if model initialize_new_with_model(model) elsif area initialize_new_with_area(area) else initialize_new end end |
Instance Method Details
#get_cell_rect(path, cell = nil) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/gtk3/icon-view.rb', line 35 def get_cell_rect(path, cell=nil) exist, rect = get_cell_rect_raw(path, cell) if exist rect else nil end end |
#get_cell_rect_raw ⇒ Object
34 |
# File 'lib/gtk3/icon-view.rb', line 34 alias_method :get_cell_rect_raw, :get_cell_rect |
#initialize_raw ⇒ Object
19 |
# File 'lib/gtk3/icon-view.rb', line 19 alias_method :initialize_raw, :initialize |