Class: Gtk::AspectFrame

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

Instance Method Summary collapse

Instance Method Details

#new(label, xalign, yalign, ratio, obey_child) ⇒ Gtk::Widget

Create a new Gtk::AspectFrame.

Parameters:

  • label (String)

    Label text.

  • xalign (Gtk::gfloat)

    Horizontal alignment of the child within the allocation of the Gtk::AspectFrame. This ranges from 0.0 (left aligned) to 1.0 (right aligned)

  • yalign (Gtk::gfloat)

    Vertical alignment of the child within the allocation of the Gtk::AspectFrame. This ranges from 0.0 (top aligned) to 1.0 (bottom aligned)

  • ratio (Gtk::gfloat)

    The desired aspect ratio.

  • obey_child (TrueClass)

    If true, ratio is ignored, and the aspect ratio is taken from the requistion of the child.

Returns:

#obey_child=(obey_child) ⇒ TrueClass

Parameters:

  • obey_child (TrueClass)

Returns:

  • (TrueClass)

    obey-child

  • (TrueClass)

    obey-child

#obey_child?TrueClass

Returns obey-child.

Returns:

  • (TrueClass)

    obey-child

#ratioGtk::gfloat

Returns ratio.

Returns:

  • (Gtk::gfloat)

    ratio

#ratio=(ratio) ⇒ Gtk::gfloat

Parameters:

  • ratio (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    ratio

  • (Gtk::gfloat)

    ratio

#set(xalign, yalign, ratio, obey_child) ⇒ nil

Set parameters for an existing Gtk::AspectFrame.

Parameters:

  • xalign (Gtk::gfloat)

    Horizontal alignment of the child within the allocation of the Gtk::AspectFrame. This ranges from 0.0 (left aligned) to 1.0 (right aligned)

  • yalign (Gtk::gfloat)

    Vertical alignment of the child within the allocation of the Gtk::AspectFrame. This ranges from 0.0 (top aligned) to 1.0 (bottom aligned)

  • ratio (Gtk::gfloat)

    The desired aspect ratio.

  • obey_child (TrueClass)

    If true, ratio is ignored, and the aspect ratio is taken from the requistion of the child.

Returns:

  • (nil)

#xalignGtk::gfloat

Returns xalign.

Returns:

  • (Gtk::gfloat)

    xalign

#xalign=(xalign) ⇒ Gtk::gfloat

Parameters:

  • xalign (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    xalign

  • (Gtk::gfloat)

    xalign

#yalignGtk::gfloat

Returns yalign.

Returns:

  • (Gtk::gfloat)

    yalign

#yalign=(yalign) ⇒ Gtk::gfloat

Parameters:

  • yalign (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    yalign

  • (Gtk::gfloat)

    yalign