Gtk2-Perl

Description A set of Perl bindings for Gtk+ 2.0 and various related libraries
Gtk2-Perl > Perl Manuals > Gnome2-FontPicker
Source

Index


NAME ^

Gnome2::FontPicker

HIERARCHY ^

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Bin
                           +----Gtk2::Button
                                +----Gnome2::FontPicker

INTERFACES ^

  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable




METHODS ^

widget = Gnome2::FontPicker->new

$gfp->fi_set_show_size ($show_size)

* $show_size (boolean)

$gfp->fi_set_use_font_in_label ($use_font_in_label, $size)

* $use_font_in_label (boolean)
* $size (integer)

string = $gfp->get_font_name

boolean = $gfp->set_font_name ($fontname)

* $fontname (string)

fontpickermode = $gfp->get_mode

$gfp->set_mode ($mode)

* $mode (Gnome2::FontPickerMode)

string = $gfp->get_preview_text

$gfp->set_preview_text ($text)

* $text (string)

string = $gfp->get_title

$gfp->set_title ($title)

* $title (string)

widget = $gfp->uw_get_widget

$gfp->uw_set_widget ($widget)

* $widget (Gtk2::Widget)

PROPERTIES ^

'font' (gpointer : readable)

The selected GtkFont

'font-name' (string : readable / writable)

Name of the selected font

'label-font-size' (integer : readable / writable)

Font size for label in font info mode

'mode' (Gnome2::FontPickerMode : readable / writable)

The mode of operation of the font picker

'preview-text' (string : readable / writable)

Preview text shown in the dialog

'show-size' (boolean : readable / writable)

Show size in font info mode

'title' (string : readable / writable)

The title of the selection dialog box

'use-font-in-label' (boolean : readable / writable)

Use font in the label in font info mode

SIGNALS ^

font-set (Gnome2::FontPicker, string)

ENUMS AND FLAGS ^

enum Gnome2::FontPickerMode

* 'pixmap' / 'GNOME_FONT_PICKER_MODE_PIXMAP'
* 'font-info' / 'GNOME_FONT_PICKER_MODE_FONT_INFO'
* 'user-widget' / 'GNOME_FONT_PICKER_MODE_USER_WIDGET'
* 'unknown' / 'GNOME_FONT_PICKER_MODE_UNKNOWN'

SEE ALSO ^

Gnome2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Button

COPYRIGHT ^

Copyright (C) 2003-2004 by the gtk2-perl team.

This software is licensed under the LGPL. See Gnome2 for a full notice.