Class: Gnm::FontButton

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

Instance Method Summary collapse

Constructor Details

#initialize(fontname) ⇒ Gtk::Widget

Creates a new font picker widget.

Parameters:

  • fontname (String) —

    Name of font to display in font chooser dialog

Instance Method Details

#dialog_type ⇒ GLib::Type

Returns dialog-type.

Returns:

  • (GLib::Type) —

    dialog-type

#dialog_type=(dialog_type) ⇒ GLib::Type

Parameters:

  • dialog_type (GLib::Type)

Returns:

  • (GLib::Type) —

    dialog-type

  • (GLib::Type) —

    dialog-type

#font_name ⇒ String

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

#show_size ⇒ Boolean

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

Returns:

  • (Boolean) —

    whether the font size will be shown in the label.

#show_size=(show_size) ⇒ Boolean

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 (Boolean)

Returns:

  • (Boolean) —

    show-size

  • (Boolean) —

    show-size

#show_size? ⇒ Boolean

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:

  • (Boolean) —

    show-size

#show_style ⇒ Boolean

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

Returns:

  • (Boolean) —

    whether the font style will be shown in the label.

#show_style=(show_style) ⇒ Boolean

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 (Boolean)

Returns:

  • (Boolean) —

    show-style

  • (Boolean) —

    show-style

#show_style? ⇒ Boolean

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:

  • (Boolean) —

    show-style

#title ⇒ String

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_font ⇒ Boolean

Returns whether the selected font is used in the label.

Returns:

  • (Boolean) —

    whether the selected font is used in the label.

#use_font=(use_font) ⇒ Boolean

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

Parameters:

  • use_font (Boolean)

Returns:

  • (Boolean) —

    use-font

  • (Boolean) —

    use-font

#use_font? ⇒ Boolean

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

Returns:

  • (Boolean) —

    use-font

#use_size ⇒ Boolean

Returns whether the selected size is used in the label.

Returns:

  • (Boolean) —

    whether the selected size is used in the label.

#use_size=(use_size) ⇒ Boolean

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

Parameters:

  • use_size (Boolean)

Returns:

  • (Boolean) —

    use-size

  • (Boolean) —

    use-size

#use_size? ⇒ Boolean

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

Returns:

  • (Boolean) —

    use-size