Class: Gtk::FontSelection

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

Instance Method Summary collapse

Instance Method Details

#facePango::FontFace

Gets the Pango::FontFace representing the selected font group details (i.e. family, slant, weight, width, etc).

Returns:

  • (Pango::FontFace)

    A Pango::FontFace representing the selected font group details. The returned object is owned by fontsel and must not be modified or freed.

#face_listGtk::Widget

This returns the Gtk::TreeView which lists all styles available for the selected font. For example, “Regular”, “Bold”, etc.

Returns:

  • (Gtk::Widget)

    A Gtk::Widget that is part of fontsel

#familyPango::FontFamily

Gets the Pango::FontFamily representing the selected font family.

Returns:

  • (Pango::FontFamily)

    A Pango::FontFamily representing the selected font family. Font families are a collection of font faces. The returned object is owned by fontsel and must not be modified or freed.

#family_listGtk::Widget

This returns the Gtk::TreeView that lists font families, for example, “Sans”, “Serif”, etc.

Returns:

  • (Gtk::Widget)

    A Gtk::Widget that is part of fontsel

#font_nameString

Returns font-name.

Returns:

  • (String)

    font-name

#font_name=(font_name) ⇒ String

Parameters:

  • font_name (String)

Returns:

  • (String)

    font-name

  • (String)

    font-name

#newGtk::Widget

Creates a new Gtk::FontSelection.

Returns:

#preview_entryGtk::Widget

This returns the Gtk::Entry used to display the font as a preview.

Returns:

  • (Gtk::Widget)

    A Gtk::Widget that is part of fontsel

#preview_textString

Returns preview-text.

Returns:

  • (String)

    preview-text

#preview_text=(preview_text) ⇒ String

Parameters:

  • preview_text (String)

Returns:

  • (String)

    preview-text

  • (String)

    preview-text

#sizeInteger

The selected font size.

Returns:

  • (Integer)

    A n integer representing the selected font size, or -1 if no font size is selected.

#size_entryGtk::Widget

This returns the Gtk::Entry used to allow the user to edit the font number manually instead of selecting it from the list of font sizes.

Returns:

  • (Gtk::Widget)

    A Gtk::Widget that is part of fontsel

#size_listGtk::Widget

This returns the Gtk::TreeView used to list font sizes.

Returns:

  • (Gtk::Widget)

    A Gtk::Widget that is part of fontsel