Class: Gtk::FontButton

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

Instance Method Summary collapse

Instance Method Details

#font_nameString

The name of the currently selected font.

Returns:

  • (String)

    font-name

#font_name=(font_name) ⇒ String

The name of the currently selected font.

Parameters:

  • font_name (String)

Returns:

  • (String)

    font-name

  • (String)

    font-name

#newGtk::Widget

Creates a new font picker widget.

Returns:

#new_with_font(fontname) ⇒ Gtk::Widget

Creates a new font picker widget.

Parameters:

  • fontname (String)

    Name of font to display in font chooser dialog

Returns:

#show_sizeTrueClass

Returns whether the font size will be shown in the label.

Returns:

  • (TrueClass)

    whether the font size will be shown in the label.

#show_size=(show_size) ⇒ TrueClass

If this property is set to true, the selected font size will be shown in the label. For a more WYSIWYG way to show the selected size, see the ::use-size property.

Parameters:

  • show_size (TrueClass)

Returns:

  • (TrueClass)

    show-size

  • (TrueClass)

    show-size

#show_size?TrueClass

If this property is set to true, the selected font size will be shown in the label. For a more WYSIWYG way to show the selected size, see the ::use-size property.

Returns:

  • (TrueClass)

    show-size

#show_styleTrueClass

Returns whether the name of the font style will be shown in the label.

Returns:

  • (TrueClass)

    whether the font style will be shown in the label.

#show_style=(show_style) ⇒ TrueClass

If this property is set to true, the name of the selected font style will be shown in the label. For a more WYSIWYG way to show the selected style, see the ::use-font property.

Parameters:

  • show_style (TrueClass)

Returns:

  • (TrueClass)

    show-style

  • (TrueClass)

    show-style

#show_style?TrueClass

If this property is set to true, the name of the selected font style will be shown in the label. For a more WYSIWYG way to show the selected style, see the ::use-font property.

Returns:

  • (TrueClass)

    show-style

#titleString

The title of the font chooser dialog.

Returns:

  • (String)

    title

#title=(title) ⇒ String

The title of the font chooser dialog.

Parameters:

  • title (String)

Returns:

  • (String)

    title

  • (String)

    title

#use_fontTrueClass

Returns whether the selected font is used in the label.

Returns:

  • (TrueClass)

    whether the selected font is used in the label.

#use_font=(use_font) ⇒ TrueClass

If this property is set to true, the label will be drawn in the selected font.

Parameters:

  • use_font (TrueClass)

Returns:

  • (TrueClass)

    use-font

  • (TrueClass)

    use-font

#use_font?TrueClass

If this property is set to true, the label will be drawn in the selected font.

Returns:

  • (TrueClass)

    use-font

#use_sizeTrueClass

Returns whether the selected size is used in the label.

Returns:

  • (TrueClass)

    whether the selected size is used in the label.

#use_size=(use_size) ⇒ TrueClass

If this property is set to true, the label will be drawn with the selected font size.

Parameters:

  • use_size (TrueClass)

Returns:

  • (TrueClass)

    use-size

  • (TrueClass)

    use-size

#use_size?TrueClass

If this property is set to true, the label will be drawn with the selected font size.

Returns:

  • (TrueClass)

    use-size