Class: Gtk::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk3/table.rb

Instance Method Summary collapse

Constructor Details

#initialize(n_rows, n_columns, homogeneous = false) ⇒ Table

Returns a new instance of Table.



20
21
22
# File 'lib/gtk3/table.rb', line 20

def initialize(n_rows, n_columns, homogeneous=false)
  initialize_raw(n_rows, n_columns, homogeneous)
end

Instance Method Details

#attach(child, left, right, top, bottom, x_options = nil, y_options = nil, x_space = nil, y_space = nil) ⇒ Object



33
34
35
36
37
38
39
40
41
# File 'lib/gtk3/table.rb', line 33

def attach(child, left, right, top, bottom,
           x_options=nil, y_options=nil,
           x_space=nil, y_space=nil)
  attach_raw(child, left, right, top, bottom,
             x_options || [:expand, :fill],
             y_options || [:expand, :fill],
             x_space || 0,
             y_space || 0)
end

#attach_rawObject



32
# File 'lib/gtk3/table.rb', line 32

alias_method :attach_raw, :attach

#column_spacings(column) ⇒ Object



26
27
28
# File 'lib/gtk3/table.rb', line 26

def column_spacings(column)
  get_col_spacings(column)
end

#initialize_rawObject



19
# File 'lib/gtk3/table.rb', line 19

alias_method :initialize_raw, :initialize