Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Xfc::Gtk::FontSelectionDialog Class Reference

A GtkFontSelectionDialog C++ wrapper class. More...

#include <xfc/gtk/fontselection.hh>

Inheritance diagram for Xfc::Gtk::FontSelectionDialog:

Xfc::Gtk::Dialog Xfc::Gtk::Window Xfc::Gtk::Bin Xfc::Gtk::Container Xfc::Gtk::Widget Xfc::Gtk::Object Xfc::Atk::Implementor Xfc::G::Object Xfc::G::TypeInterface Xfc::G::TypeInstance Xfc::G::TypeInstance Xfc::Trackable Xfc::Trackable List of all members.

Public Member Functions

Accessors
Methods

Detailed Description

A GtkFontSelectionDialog C++ wrapper class.

The FontSelectionDialog widget is a dialog box for selecting a font. 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

Xfc::Gtk::FontSelectionDialog::FontSelectionDialog ( GtkFontSelectionDialog *  font_selection_dialog,
bool  owns_reference = false 
) [explicit, protected]

Construct a new FontSelectionDialog from an existing GtkFontSelectionDialog.

Parameters:
font_selection_dialog A pointer to a GtkFontSelectionDialog.
owns_reference Set false if the initial reference count is floating, set true if it's not.
The font_selection_dialog can be a newly created GtkFontSelectionDialog or an existing GtkFontSelectionDialog (see G::Object::Object).

Xfc::Gtk::FontSelectionDialog::FontSelectionDialog ( const String title  )  [explicit]

Construct a new FontSelectionDialog with the specified title.

Parameters:
title The title of the dialog box.

Xfc::Gtk::FontSelectionDialog::FontSelectionDialog ( GtkFontSelectionDialog *  font_selection_dialog,
bool  owns_reference = false 
) [explicit, protected]

Construct a new FontSelectionDialog from an existing GtkFontSelectionDialog.

Parameters:
font_selection_dialog A pointer to a GtkFontSelectionDialog.
owns_reference Set false if the initial reference count is floating, set true if it's not.
The font_selection_dialog can be a newly created GtkFontSelectionDialog or an existing GtkFontSelectionDialog (see G::Object::Object).

Xfc::Gtk::FontSelectionDialog::FontSelectionDialog ( const String title  )  [explicit]

Construct a new FontSelectionDialog with the specified title.

Parameters:
title The title of the dialog box.


Member Function Documentation

bool Xfc::Gtk::FontSelectionDialog::set_font_name ( const String fontname  ) 

Sets the currently selected font.

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

void Xfc::Gtk::FontSelectionDialog::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: Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC 4.3