Class: Gtk::Paned

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

Instance Method Summary collapse

Instance Method Details

#set_end_child(child, options = nil) ⇒ Object



32
33
34
35
36
37
38
39
40
41
# File 'lib/gtk4/paned.rb', line 32

def set_end_child(child, options=nil)
  set_end_child_raw(child)
  return self unless options

  resize = options[:resize]
  set_resize_end_child(resize) unless resize.nil?
  shrink = options[:shrink]
  set_shrink_end_child(shrink) unless shrink.nil?
  self
end

#set_end_child_rawObject



31
# File 'lib/gtk4/paned.rb', line 31

alias_method :set_end_child_raw, :set_end_child

#set_start_child(child, options = nil) ⇒ Object



20
21
22
23
24
25
26
27
28
29
# File 'lib/gtk4/paned.rb', line 20

def set_start_child(child, options=nil)
  set_start_child_raw(child)
  return self unless options

  resize = options[:resize]
  set_resize_start_child(resize) unless resize.nil?
  shrink = options[:shrink]
  set_shrink_start_child(shrink) unless shrink.nil?
  self
end

#set_start_child_rawObject



19
# File 'lib/gtk4/paned.rb', line 19

alias_method :set_start_child_raw, :set_start_child