Class: Gtk::Table
- Inherits:
-
Object
- Object
- Gtk::Table
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#attach(child, left_attach, right_attach, top_attach, bottom_attach, xoptions, yoptions, xpadding, ypadding) ⇒ nil
Adds a widget to a table.
-
#attach_defaults(widget, left_attach, right_attach, top_attach, bottom_attach) ⇒ nil
As there are many options associated with gtk_table_attach(), this convenience function provides the programmer with a means to add children to a table with identical padding and expansion options.
-
#col_spacings=(spacing) ⇒ nil
Sets the space between every column in table equal to spacing.
-
#column_spacing ⇒ Integer
Column-spacing.
- #column_spacing=(column_spacing) ⇒ Integer
-
#default_col_spacing ⇒ Integer
Gets the default column spacing for the table.
-
#default_row_spacing ⇒ Integer
Gets the default row spacing for the table.
-
#get_col_spacing(column) ⇒ Integer
Gets the amount of space between column col, and column col + 1.
-
#get_row_spacing(row) ⇒ Integer
Gets the amount of space between row row, and row row + 1.
-
#get_size(rows, columns) ⇒ nil
Gets the number of rows and columns in the table.
-
#homogeneous ⇒ TrueClass
Returns whether the table cells are all constrained to the same width and height.
- #homogeneous=(homogeneous) ⇒ TrueClass
-
#homogeneous? ⇒ TrueClass
Homogeneous.
-
#n_columns ⇒ Integer
N-columns.
- #n_columns=(n_columns) ⇒ Integer
-
#n_rows ⇒ Integer
N-rows.
- #n_rows=(n_rows) ⇒ Integer
-
#new(rows, columns, homogeneous) ⇒ Gtk::Widget
Used to create a new table widget.
-
#resize(rows, columns) ⇒ nil
If you need to change a table’s size after it has been created, this function allows you to do so.
-
#row_spacing ⇒ Integer
Row-spacing.
- #row_spacing=(row_spacing) ⇒ Integer
-
#row_spacings=(spacing) ⇒ nil
Sets the space between every row in table equal to spacing.
-
#set_col_spacing(column, spacing) ⇒ nil
Alters the amount of space between a given table column and the following column.
-
#set_row_spacing(row, spacing) ⇒ nil
Changes the space between a given table row and the subsequent row.
Instance Method Details
#attach(child, left_attach, right_attach, top_attach, bottom_attach, xoptions, yoptions, xpadding, ypadding) ⇒ nil
Adds a widget to a table. The number of “cells” that a widget will occupy is specified by left_attach, right_attach, top_attach and bottom_attach. These each represent the leftmost, rightmost, uppermost and lowest column and row numbers of the table. (Columns and rows are indexed from zero).
To make a button occupy the lower right cell of a 2x2 table, use |[ gtk_table_attach (table, button,
1, 2, // left, right attach
1, 2, // top, bottom attach
xoptions, yoptions,
xpadding, ypadding);
]| If you want to make the button span the entire bottom row, use left_attach == 0 and right_attach = 2 instead.
#attach_defaults(widget, left_attach, right_attach, top_attach, bottom_attach) ⇒ nil
As there are many options associated with gtk_table_attach(), this convenience function provides the programmer with a means to add children to a table with identical padding and expansion options. The values used for the Gtk::AttachOptions are ‘GTK_EXPAND | GTK_FILL`, and the padding is set to 0.
#col_spacings=(spacing) ⇒ nil
Sets the space between every column in table equal to spacing.
#column_spacing ⇒ Integer
Returns column-spacing.
#column_spacing=(column_spacing) ⇒ Integer
#default_col_spacing ⇒ Integer
Gets the default column spacing for the table. This is the spacing that will be used for newly added columns. (See gtk_table_set_col_spacings())
#default_row_spacing ⇒ Integer
Gets the default row spacing for the table. This is the spacing that will be used for newly added rows. (See gtk_table_set_row_spacings())
#get_col_spacing(column) ⇒ Integer
Gets the amount of space between column col, and column col + 1. See gtk_table_set_col_spacing().
#get_row_spacing(row) ⇒ Integer
Gets the amount of space between row row, and row row + 1. See gtk_table_set_row_spacing().
#get_size(rows, columns) ⇒ nil
Gets the number of rows and columns in the table.
#homogeneous ⇒ TrueClass
Returns whether the table cells are all constrained to the same width and height. (See gtk_table_set_homogeneous ())
#homogeneous=(homogeneous) ⇒ TrueClass
#homogeneous? ⇒ TrueClass
Returns homogeneous.
#n_columns ⇒ Integer
Returns n-columns.
#n_columns=(n_columns) ⇒ Integer
#n_rows ⇒ Integer
Returns n-rows.
#n_rows=(n_rows) ⇒ Integer
#new(rows, columns, homogeneous) ⇒ Gtk::Widget
Used to create a new table widget. An initial size must be given by specifying how many rows and columns the table should have, although this can be changed later with gtk_table_resize(). rows and columns must both be in the range 1 .. 65535. For historical reasons, 0 is accepted as well and is silently interpreted as 1.
#resize(rows, columns) ⇒ nil
If you need to change a table’s size after it has been created, this function allows you to do so.
#row_spacing ⇒ Integer
Returns row-spacing.
#row_spacing=(row_spacing) ⇒ Integer
#row_spacings=(spacing) ⇒ nil
Sets the space between every row in table equal to spacing.
#set_col_spacing(column, spacing) ⇒ nil
Alters the amount of space between a given table column and the following column.
#set_row_spacing(row, spacing) ⇒ nil
Changes the space between a given table row and the subsequent row.