class Gtk::Box

Public Class Methods

new(orientation, spacing=0) click to toggle source
# File lib/gtk3/box.rb, line 20
def initialize(orientation, spacing=0)
  initialize_raw(orientation, spacing || 0)
end
Also aliased as: initialize_raw

Public Instance Methods

initialize_raw(orientation, spacing=0)
Alias for: new
pack_end(child, options={}) click to toggle source
# File lib/gtk3/box.rb, line 33
def pack_end(child, options={})
  expand  = options[:expand]  || false
  fill    = options[:fill]    || false
  padding = options[:padding] || 0
  pack_end_raw(child, expand, fill, padding)
end
Also aliased as: pack_end_raw
pack_end_raw(child, options={})
Alias for: pack_end
pack_start(child, options={}) click to toggle source
# File lib/gtk3/box.rb, line 25
def pack_start(child, options={})
  expand  = options[:expand]  || false
  fill    = options[:fill]    || false
  padding = options[:padding] || 0
  pack_start_raw(child, expand, fill, padding)
end
Also aliased as: pack_start_raw
pack_start_raw(child, options={})
Alias for: pack_start
set_child_packing(child, options={}) click to toggle source
# File lib/gtk3/box.rb, line 41
def set_child_packing(child, options={})
  expand    = options[:expand]
  fill      = options[:fill]
  padding   = options[:padding]
  pack_type = options[:pack_type]

  old_expand, old_fill, old_padding, old_pack_type =
    query_child_packing(child)

  expand    = old_expand    if expand.nil?
  fill      = old_fill      if fill.nil?
  padding   = old_padding   if padding.nil?
  pack_type = old_pack_type if pack_type.nil?

  set_child_packing_raw(child,
                        expand,
                        fill,
                        padding,
                        pack_type)
end
Also aliased as: set_child_packing_raw
set_child_packing_raw(child, options={})
Alias for: set_child_packing