Class: Gtk::GridLayout

Inherits:
LayoutManager show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from LayoutManager

#allocate, #get_layout_child, #layout_changed, #measure, #request_mode, #widget

Constructor Details

#initializeGtk::LayoutManager

Creates a new GtkGridLayout.

Instance Method Details

#baseline_rowInteger

The row to align to the baseline, when GtkWidget:valign is set to %GTK_ALIGN_BASELINE.

Returns:

  • (Integer)

    baseline-row

#baseline_row=(baseline_row) ⇒ Integer

The row to align to the baseline, when GtkWidget:valign is set to %GTK_ALIGN_BASELINE.

Parameters:

  • baseline_row (Integer)

Returns:

  • (Integer)

    baseline-row

  • (Integer)

    baseline-row

#column_homogeneousBoolean

Checks whether all columns of grid should have the same width.

Returns:

  • (Boolean)

    true if the columns are homogeneous, and false otherwise

#column_homogeneous=(column_homogeneous) ⇒ Boolean

Whether all the columns in the grid have the same width.

Parameters:

  • column_homogeneous (Boolean)

Returns:

  • (Boolean)

    column-homogeneous

  • (Boolean)

    column-homogeneous

#column_homogeneous?Boolean

Whether all the columns in the grid have the same width.

Returns:

  • (Boolean)

    column-homogeneous

#column_spacingInteger

The amount of space between to consecutive columns.

Returns:

  • (Integer)

    column-spacing

#column_spacing=(column_spacing) ⇒ Integer

The amount of space between to consecutive columns.

Parameters:

  • column_spacing (Integer)

Returns:

  • (Integer)

    column-spacing

  • (Integer)

    column-spacing

#get_row_baseline_position(row) ⇒ Gtk::BaselinePosition

Returns the baseline position of row.

If no value has been set with [methodGtk.GridLayout.set_row_baseline_position], the default value of %GTK_BASELINE_POSITION_CENTER is returned.

Parameters:

  • row (Integer)

    a row index

Returns:

#row_homogeneousBoolean

Checks whether all rows of grid should have the same height.

Returns:

  • (Boolean)

    true if the rows are homogeneous, and false otherwise

#row_homogeneous=(row_homogeneous) ⇒ Boolean

Whether all the rows in the grid have the same height.

Parameters:

  • row_homogeneous (Boolean)

Returns:

  • (Boolean)

    row-homogeneous

  • (Boolean)

    row-homogeneous

#row_homogeneous?Boolean

Whether all the rows in the grid have the same height.

Returns:

  • (Boolean)

    row-homogeneous

#row_spacingInteger

The amount of space between to consecutive rows.

Returns:

  • (Integer)

    row-spacing

#row_spacing=(row_spacing) ⇒ Integer

The amount of space between to consecutive rows.

Parameters:

  • row_spacing (Integer)

Returns:

  • (Integer)

    row-spacing

  • (Integer)

    row-spacing

#set_row_baseline_position(row, pos) ⇒ nil

Sets how the baseline should be positioned on row of the grid, in case that row is assigned more space than is requested.

Parameters:

Returns:

  • (nil)