PHP-GTK
Wednesday, October 22, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkFixed::set_has_window
GtkFontButton Constructornext

Last updated: Sun, 12 May 2013
view this page in English

GtkFontButton

A button that launches a font selection dialog.

Object Hierarchy

Description

This button is very similar to the GtkColorButton or the GtkFileChooserButton. The two functions of this button are to display the current font selected, and to launch a font selection dialog when clicked.

When clicked the GtkFontButton, will launch a GtkFontSelectionDialog. You may set many of the dialog's properties using its methods. The button is most suitable in preference dialogs, where you need the user to select a font.

Constructors

-- Creates a new GtkFontButton.

-- Create a new GtkFontButton with a preset font selected.

Methods

get_font_name()
  Retrieves the name of the font selected.
get_show_size()
  Returns whether the font size is displayed on the label.
get_show_style()
  Returns whether the font style is displayed on the label.
get_title()
  Retrieves the title of the resulting font selection dialog.
get_use_font()
  Returns whether the selected font is used by the button.
get_use_size()
  Returns whether the selected font size is used by the button.
set_font_name()
  Sets the font used by the button.
set_show_size()
  Sets whether the font size will be shown on the button.
set_show_style()
  Sets whether the font style will be shown on the button.
set_title()
  Sets the title of the resulting font selection dialog.
set_use_font()
  Sets whether the font button will use the selected font.
set_use_size()
  Sets whether the font button will use the selected font size.

Signals

"font-set"
  Emitted when the user selects a font.


User Contributed Notes
gtk.gtkfontbutton.php
add a note about notes
There are no user contributed notes for this page.


previousGtkFixed::set_has_window
GtkFontButton Constructornext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:57 2013 CEST