Class: Gtk::ConstraintGuide

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

Instance Method Summary collapse

Constructor Details

#initializeGtk::ConstraintGuide

Creates a new GtkConstraintGuide object.

Instance Method Details

#get_max_size(width, height) ⇒ nil

Gets the maximum size of guide.

Parameters:

  • width (Integer)

    return location for the maximum width

  • height (Integer)

    return location for the maximum height

Returns:

  • (nil)

#get_min_size(width, height) ⇒ nil

Gets the minimum size of guide.

Parameters:

  • width (Integer)

    return location for the minimum width

  • height (Integer)

    return location for the minimum height

Returns:

  • (nil)

#get_nat_size(width, height) ⇒ nil

Gets the natural size of guide.

Parameters:

  • width (Integer)

    return location for the natural width

  • height (Integer)

    return location for the natural height

Returns:

  • (nil)

#max_heightInteger

The maximum height of the guide.

Returns:

  • (Integer)

    max-height

#max_height=(max_height) ⇒ Integer

The maximum height of the guide.

Parameters:

  • max_height (Integer)

Returns:

  • (Integer)

    max-height

  • (Integer)

    max-height

#max_widthInteger

The maximum width of the guide.

Returns:

  • (Integer)

    max-width

#max_width=(max_width) ⇒ Integer

The maximum width of the guide.

Parameters:

  • max_width (Integer)

Returns:

  • (Integer)

    max-width

  • (Integer)

    max-width

#min_heightInteger

The minimum height of the guide.

Returns:

  • (Integer)

    min-height

#min_height=(min_height) ⇒ Integer

The minimum height of the guide.

Parameters:

  • min_height (Integer)

Returns:

  • (Integer)

    min-height

  • (Integer)

    min-height

#min_widthInteger

The minimum width of the guide.

Returns:

  • (Integer)

    min-width

#min_width=(min_width) ⇒ Integer

The minimum width of the guide.

Parameters:

  • min_width (Integer)

Returns:

  • (Integer)

    min-width

  • (Integer)

    min-width

#nameString

A name that identifies the GtkConstraintGuide, for debugging.

Returns:

  • (String)

    name

#name=(name) ⇒ String

A name that identifies the GtkConstraintGuide, for debugging.

Parameters:

  • name (String)

Returns:

  • (String)

    name

  • (String)

    name

#nat_heightInteger

The preferred, or natural, height of the guide.

Returns:

  • (Integer)

    nat-height

#nat_height=(nat_height) ⇒ Integer

The preferred, or natural, height of the guide.

Parameters:

  • nat_height (Integer)

Returns:

  • (Integer)

    nat-height

  • (Integer)

    nat-height

#nat_widthInteger

The preferred, or natural, width of the guide.

Returns:

  • (Integer)

    nat-width

#nat_width=(nat_width) ⇒ Integer

The preferred, or natural, width of the guide.

Parameters:

  • nat_width (Integer)

Returns:

  • (Integer)

    nat-width

  • (Integer)

    nat-width

#set_max_size(width, height) ⇒ nil

Sets the maximum size of guide.

If guide is attached to a GtkConstraintLayout, the constraints will be updated to reflect the new size.

Parameters:

  • width (Integer)

    the new maximum width, or -1 to not change it

  • height (Integer)

    the new maximum height, or -1 to not change it

Returns:

  • (nil)

#set_min_size(width, height) ⇒ nil

Sets the minimum size of guide.

If guide is attached to a GtkConstraintLayout, the constraints will be updated to reflect the new size.

Parameters:

  • width (Integer)

    the new minimum width, or -1 to not change it

  • height (Integer)

    the new minimum height, or -1 to not change it

Returns:

  • (nil)

#set_nat_size(width, height) ⇒ nil

Sets the natural size of guide.

If guide is attached to a GtkConstraintLayout, the constraints will be updated to reflect the new size.

Parameters:

  • width (Integer)

    the new natural width, or -1 to not change it

  • height (Integer)

    the new natural height, or -1 to not change it

Returns:

  • (nil)

#strengthGtk::ConstraintStrength

The GtkConstraintStrength to be used for the constraint on the natural size of the guide.

Returns:

#strength=(strength) ⇒ Gtk::ConstraintStrength

The GtkConstraintStrength to be used for the constraint on the natural size of the guide.

Parameters:

Returns: