Maeomm Reference Documentation: hildonsmm
Main Page   Namespaces   Book  

Hildon::FontSelectionDialog Class Reference

Inheritance diagram for Hildon::FontSelectionDialog:

Gtk::Dialog Gtk::Window Gtk::Bin Gtk::Container Gtk::Widget Gtk::Object Atk::Implementor Glib::Object Glib::Interface Glib::ObjectBase Glib::ObjectBase sigc::trackable sigc::trackable List of all members.

Detailed Description

Just as the Hildon::ColorSelector provides a method to query a color from the user, the Hildon::FontSelectionDialog is used to choose the font.

It contains three tabs with the different font formatting information, and is ideally used in text editors and other applications where the font style can be selected.

Users can select font name, size, style, etc. Users can also preview text in the selected font.

The details of the chosen font can be retrieved as properties, such as "size".


Public Member Functions

 FontSelectionDialog (Gtk::Window& parent, const Glib::ustring& title)
 FontSelectionDialog (const Glib::ustring& title)
Glib::ustring get_preview_text () const
 Gets the text in preview dialog, which does not include the reference text.
const HildonFontSelectionDialog* gobj () const
 Provides access to the underlying C GtkObject.
HildonFontSelectionDialog* gobj ()
 Provides access to the underlying C GtkObject.
void set_preview_text (const Glib::ustring& text)
 The default preview text is "The quick brown fox jumped over the lazy dogs".
virtual ~FontSelectionDialog ()

Related Functions

(Note that these are not member functions.)

Hildon::FontSelectionDialogwrap (HildonFontSelectionDialog* object, bool take_copy=false)
 
Parameters:
object The C instance


Constructor & Destructor Documentation

virtual Hildon::FontSelectionDialog::~FontSelectionDialog (  )  [virtual]

Hildon::FontSelectionDialog::FontSelectionDialog ( const Glib::ustring title  )  [explicit]

Hildon::FontSelectionDialog::FontSelectionDialog ( Gtk::Window parent,
const Glib::ustring title 
)


Member Function Documentation

Glib::ustring Hildon::FontSelectionDialog::get_preview_text (  )  const

Gets the text in preview dialog, which does not include the reference text.

Returns:
A string pointer.

const HildonFontSelectionDialog* Hildon::FontSelectionDialog::gobj (  )  const [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Dialog.

HildonFontSelectionDialog* Hildon::FontSelectionDialog::gobj (  )  [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Dialog.

void Hildon::FontSelectionDialog::set_preview_text ( const Glib::ustring text  ) 

The default preview text is "The quick brown fox jumped over the lazy dogs".

Parameters:
text The text to be displayed in the preview dialog.


Friends And Related Function Documentation

Hildon::FontSelectionDialog* wrap ( HildonFontSelectionDialog *  object,
bool  take_copy = false 
) [related]

Parameters:
object The C instance

Parameters:
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:
Generated for hildonmm by Doxygen 1.5.1 © 1997-2001