Class: Gtk::Frame

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

Instance Method Summary collapse

Instance Method Details

#get_label_align(xalign, yalign) ⇒ nil

Retrieves the X and Y alignment of the frame’s label. See gtk_frame_set_label_align().

Parameters:

  • xalign (Gtk::gfloat)

    location to store X alignment of frame’s label, or nil

  • yalign (Gtk::gfloat)

    location to store X alignment of frame’s label, or nil

Returns:

  • (nil)

#labelString

Returns label.

Returns:

  • (String)

    label

#label=(label) ⇒ String

Parameters:

  • label (String)

Returns:

  • (String)

    label

  • (String)

    label

#label_widgetGtk::Widget

Returns label-widget.

Returns:

#label_widget=(label_widget) ⇒ Gtk::Widget

Parameters:

Returns:

#label_xalignGtk::gfloat

Returns label-xalign.

Returns:

  • (Gtk::gfloat)

    label-xalign

#label_xalign=(label_xalign) ⇒ Gtk::gfloat

Parameters:

  • label_xalign (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    label-xalign

  • (Gtk::gfloat)

    label-xalign

#label_yalignGtk::gfloat

Returns label-yalign.

Returns:

  • (Gtk::gfloat)

    label-yalign

#label_yalign=(label_yalign) ⇒ Gtk::gfloat

Parameters:

  • label_yalign (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    label-yalign

  • (Gtk::gfloat)

    label-yalign

#new(label) ⇒ Gtk::Widget

Creates a new Gtk::Frame, with optional label label. If label is nil, the label is omitted.

Parameters:

  • label (String)

    the text to use as the label of the frame

Returns:

#set_label_align(xalign, yalign) ⇒ nil

Sets the alignment of the frame widget’s label. The default values for a newly created frame are 0.0 and 0.5.

Parameters:

  • xalign (Gtk::gfloat)

    The position of the label along the top edge of the widget. A value of 0.0 represents left alignment; 1.0 represents right alignment.

  • yalign (Gtk::gfloat)

    The y alignment of the label. A value of 0.0 aligns under the frame; 1.0 aligns above the frame. If the values are exactly 0.0 or 1.0 the gap in the frame won’t be painted because the label will be completely above or below the frame.

Returns:

  • (nil)

#shadow_typeGtk::ShadowType

Returns shadow-type.

Returns:

#shadow_type=(shadow_type) ⇒ Gtk::ShadowType

Parameters:

Returns: