PHP-GTK
Wednesday, August 20, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousfont-set
GtkFontSelection Constructornext

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

GtkFontSelection

A widget for selecting a font from a list of available fonts.

Object Hierarchy

Description

The GtkFontSelection widget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in the GtkFontSelectionDialog widget to provide a dialog box for selecting fonts.

To set the font which is initially selected, use set_font_name() .

To get the selected font use get_font_name() .

To change the text which is shown in the preview area, use set_preview_text() .

Constructors

-- Creates a new font selection widget.

Methods

get_font()
  DEPRECATED Returns the selected font.
get_font_name()
  Gets the currently-selected font name.
get_preview_text()
  Gets the text displayed in the preview area.
set_font_name()
  Sets the currently-selected font.
set_preview_text()
  Sets the text displayed in the preview area.

Properties

Use get_property and set_property methods to access these.

font:
  The GdkFont that is currently selected.
font-name:
  The string that represents this font.
preview-text:
  The text to display in order to demonstrate the selected font.


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


previousfont-set
GtkFontSelection 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