Class: Gtk::Table
- Inherits:
-
Object
- Object
- Gtk::Table
- Defined in:
- lib/gtk3/table.rb
Instance Method Summary collapse
- #attach(child, left, right, top, bottom, x_options = nil, y_options = nil, x_space = nil, y_space = nil) ⇒ Object
- #attach_raw ⇒ Object
- #column_spacings(column) ⇒ Object
-
#initialize(n_rows, n_columns, homogeneous = false) ⇒ Table
constructor
A new instance of Table.
- #initialize_raw ⇒ Object
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, =nil, =nil, x_space=nil, y_space=nil) attach_raw(child, left, right, top, bottom, || [:expand, :fill], || [:expand, :fill], x_space || 0, y_space || 0) end |
#attach_raw ⇒ Object
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_raw ⇒ Object
19 |
# File 'lib/gtk3/table.rb', line 19 alias_method :initialize_raw, :initialize |