Class: Clutter::FlowLayout

Inherits:
LayoutManager
  • Object
show all
Defined in:
(unknown)

Overview

The Clutter::FlowLayoutClass structure contains only private data and should be accessed using the provided API

Instance Method Summary collapse

Methods inherited from LayoutManager

#allocate, #animation_progress, #begin_animation, #child_get, #child_get_property, #child_set, #child_set_property, #container=, #end_animation, #find_child_property, #get_child_meta, #get_preferred_height, #get_preferred_width, #layout_changed, #list_child_properties

Constructor Details

#initialize(orientation) ⇒ Clutter::LayoutManager

Creates a new Clutter::FlowLayout with the given orientation

Parameters:

Instance Method Details

#column_spacingClutter::gfloat

The spacing between columns, in pixels; the value of this property is honoured by horizontal non-overflowing layouts and by vertical overflowing layouts

Returns:

  • (Clutter::gfloat)

    column-spacing

#column_spacing=(column_spacing) ⇒ Clutter::gfloat

The spacing between columns, in pixels; the value of this property is honoured by horizontal non-overflowing layouts and by vertical overflowing layouts

Parameters:

  • column_spacing (Clutter::gfloat)

Returns:

  • (Clutter::gfloat)

    column-spacing

  • (Clutter::gfloat)

    column-spacing

#get_column_width(min_width, max_width) ⇒ nil

Retrieves the minimum and maximum column widths

Parameters:

  • min_width (Clutter::gfloat)

    return location for the minimum column width, or nil

  • max_width (Clutter::gfloat)

    return location for the maximum column width, or nil

Returns:

  • (nil)

#get_row_height(min_height, max_height) ⇒ nil

Retrieves the minimum and maximum row heights

Parameters:

  • min_height (Clutter::gfloat)

    return location for the minimum row height, or nil

  • max_height (Clutter::gfloat)

    return location for the maximum row height, or nil

Returns:

  • (nil)

#homogeneousBoolean

Retrieves whether the layout is homogeneous

Returns:

  • (Boolean)

    true if the Clutter::FlowLayout is homogeneous

#homogeneous=(homogeneous) ⇒ Boolean

Whether each child inside the Clutter::FlowLayout should receive the same allocation

Parameters:

  • homogeneous (Boolean)

Returns:

  • (Boolean)

    homogeneous

  • (Boolean)

    homogeneous

#homogeneous?Boolean

Whether each child inside the Clutter::FlowLayout should receive the same allocation

Returns:

  • (Boolean)

    homogeneous

#max_column_widthClutter::gfloat

Maximum width for each column in the layout, in pixels. If set to -1 the width will be the maximum child width

Returns:

  • (Clutter::gfloat)

    max-column-width

#max_column_width=(max_column_width) ⇒ Clutter::gfloat

Maximum width for each column in the layout, in pixels. If set to -1 the width will be the maximum child width

Parameters:

  • max_column_width (Clutter::gfloat)

Returns:

  • (Clutter::gfloat)

    max-column-width

  • (Clutter::gfloat)

    max-column-width

#max_row_heightClutter::gfloat

Maximum height for each row in the layout, in pixels. If set to -1 the width will be the maximum child height

Returns:

  • (Clutter::gfloat)

    max-row-height

#max_row_height=(max_row_height) ⇒ Clutter::gfloat

Maximum height for each row in the layout, in pixels. If set to -1 the width will be the maximum child height

Parameters:

  • max_row_height (Clutter::gfloat)

Returns:

  • (Clutter::gfloat)

    max-row-height

  • (Clutter::gfloat)

    max-row-height

#min_column_widthClutter::gfloat

Minimum width for each column in the layout, in pixels

Returns:

  • (Clutter::gfloat)

    min-column-width

#min_column_width=(min_column_width) ⇒ Clutter::gfloat

Minimum width for each column in the layout, in pixels

Parameters:

  • min_column_width (Clutter::gfloat)

Returns:

  • (Clutter::gfloat)

    min-column-width

  • (Clutter::gfloat)

    min-column-width

#min_row_heightClutter::gfloat

Minimum height for each row in the layout, in pixels

Returns:

  • (Clutter::gfloat)

    min-row-height

#min_row_height=(min_row_height) ⇒ Clutter::gfloat

Minimum height for each row in the layout, in pixels

Parameters:

  • min_row_height (Clutter::gfloat)

Returns:

  • (Clutter::gfloat)

    min-row-height

  • (Clutter::gfloat)

    min-row-height

#orientationClutter::FlowOrientation

The orientation of the Clutter::FlowLayout. The children of the layout will be layed out following the orientation.

This property also controls the overflowing directions

Returns:

#orientation=(orientation) ⇒ Clutter::FlowOrientation

The orientation of the Clutter::FlowLayout. The children of the layout will be layed out following the orientation.

This property also controls the overflowing directions

Parameters:

Returns:

#row_spacingClutter::gfloat

The spacing between rows, in pixels; the value of this property is honoured by vertical non-overflowing layouts and by horizontal overflowing layouts

Returns:

  • (Clutter::gfloat)

    row-spacing

#row_spacing=(row_spacing) ⇒ Clutter::gfloat

The spacing between rows, in pixels; the value of this property is honoured by vertical non-overflowing layouts and by horizontal overflowing layouts

Parameters:

  • row_spacing (Clutter::gfloat)

Returns:

  • (Clutter::gfloat)

    row-spacing

  • (Clutter::gfloat)

    row-spacing

#set_column_width(min_width, max_width) ⇒ nil

Sets the minimum and maximum widths that a column can have

Parameters:

  • min_width (Clutter::gfloat)

    minimum width of a column

  • max_width (Clutter::gfloat)

    maximum width of a column

Returns:

  • (nil)

#set_row_height(min_height, max_height) ⇒ nil

Sets the minimum and maximum heights that a row can have

Parameters:

  • min_height (Clutter::gfloat)

    the minimum height of a row

  • max_height (Clutter::gfloat)

    the maximum height of a row

Returns:

  • (nil)

#snap_to_gridBoolean

Retrieves the value of Clutter::FlowLayout:snap-to-grid property

Returns:

  • (Boolean)

    true if the layout is placing its children on a grid

#snap_to_grid=(snap_to_grid) ⇒ Boolean

Whether the Clutter::FlowLayout should arrange its children on a grid

Parameters:

  • snap_to_grid (Boolean)

Returns:

  • (Boolean)

    snap-to-grid

  • (Boolean)

    snap-to-grid

#snap_to_grid?Boolean

Whether the Clutter::FlowLayout should arrange its children on a grid

Returns:

  • (Boolean)

    snap-to-grid