Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Inti::Gtk::FontSelection Class Reference

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

#include <inti/gtk/fontselection.h>

Inheritance diagram for Inti::Gtk::FontSelection:

Inti::Gtk::VBox Inti::Gtk::Box Inti::Gtk::Container Inti::Gtk::Widget Inti::Gtk::Object Inti::Atk::Implementor Inti::G::Object Inti::G::TypeInterface Inti::G::TypeInstance Inti::MemoryHandler Inti::G::TypeInstance Inti::ReferencedBase Inti::ReferencedBase List of all members.

Public Member Functions

Constructors
Accessors
Methods
Property Proxies

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

Inti::Gtk::FontSelection::FontSelection GtkFontSelection *  font_selection,
bool  reference = false
[explicit, protected]
 

Construct a new FontSelection from an existing GtkFontSelection.

Parameters:
font_selection A pointer to a GtkFontSelection.
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 Inti::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 Inti::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: Main Page - Footer


Generated on Sun Sep 14 20:08:15 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002