GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::Gtk::FontSelection Class Reference

A GtkFontSelection C++ wrapper class. More...

#include <gfc/gtk/fontselection.hh>

Inheritance diagram for GFC::Gtk::FontSelection:

GFC::Gtk::VBox GFC::Gtk::Box GFC::Gtk::Container GFC::Gtk::Widget GFC::Gtk::Object GFC::Atk::Implementor GFC::G::Object GFC::G::TypeInterface GFC::G::TypeInstance GFC::G::TypeInstance GFC::Trackable GFC::Trackable List of all members.

Public Member Functions

Constructors
Accessors
Methods

Protected Member Functions

Constructors

Detailed Description

A GtkFontSelection C++ wrapper class.

The FontSelection widget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in the FontSelectionDialog 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().


Constructor & Destructor Documentation

GFC::Gtk::FontSelection::FontSelection GtkFontSelection *  font_selection,
bool  owns_reference = false
[explicit, protected]
 

Construct a new FontSelection from an existing GtkFontSelection.

Parameters:
font_selection A pointer to a GtkFontSelection.
owns_reference Set false if the initial reference count is floating, set true if it's not.

The font_selection can be a newly created GtkFontSelection or an existing GtkFontSelection (see G::Object::Object).


Member Function Documentation

bool GFC::Gtk::FontSelection::set_font_name const String fontname  ) 
 

Sets the currently selected font.

Parameters:
fontname A fontname.
Returns:
true if the font was found.

void GFC::Gtk::FontSelection::set_preview_text const String text  ) 
 

Sets the text displayed in the preview area.

Parameters:
text The text to display in the preview area.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:34:39 2004 for GFC-UI by doxygen 1.3.8