Class: Gtk::IconView

Inherits:
Object
  • Object
show all
Extended by:
GLib::Deprecatable
Defined in:
lib/gtk4/icon-view.rb,
lib/gtk4/deprecated.rb

Instance Method Summary collapse

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/gtk4/icon-view.rb', line 20

def initialize(options={})
  model = options[:model]
  area  = options[: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/gtk4/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_rawObject



34
# File 'lib/gtk4/icon-view.rb', line 34

alias_method :get_cell_rect_raw, :get_cell_rect

#initialize_rawObject



19
# File 'lib/gtk4/icon-view.rb', line 19

alias_method :initialize_raw, :initialize