class Gtk::Box
Public Class Methods
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
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
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
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