![]() |
![]() |
The Gtk::FontButton is a button which displays the currently selected font and allows to open a font selection dialog to change the font. It is suitable widget for selecting a font in a preference dialog.
Public Member Functions | |
FontButton (const Glib::ustring& fontname) | |
FontButton () | |
Glib::ustring | get_font_name () const |
Retrieves the name of the currently selected font. | |
bool | get_show_size () const |
Returns whether the font size will be shown in the label. | |
bool | get_show_style () const |
Returns whether the name of the font style will be shown in the label. | |
Glib::ustring | get_title () const |
Retrieves the title of the font selection dialog. | |
bool | get_use_font () const |
Returns whether the selected font is used in the label. | |
bool | get_use_size () const |
Returns whether the selected size is used in the label. | |
const GtkFontButton* | gobj () const |
Provides access to the underlying C GtkObject. | |
GtkFontButton* | gobj () |
Provides access to the underlying C GtkObject. | |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_font_name () const |
The name of the selected font. | |
Glib::PropertyProxy<Glib::ustring> | property_font_name () |
The name of the selected font. | |
Glib::PropertyProxy_ReadOnly< bool > | property_show_size () const |
Whether selected font size is shown in the label. | |
Glib::PropertyProxy<bool> | property_show_size () |
Whether selected font size is shown in the label. | |
Glib::PropertyProxy_ReadOnly< bool > | property_show_style () const |
Whether the selected font style is shown in the label. | |
Glib::PropertyProxy<bool> | property_show_style () |
Whether the selected font style is shown in the label. | |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_title () const |
The title of the font selection dialog. | |
Glib::PropertyProxy<Glib::ustring> | property_title () |
The title of the font selection dialog. | |
Glib::PropertyProxy_ReadOnly< bool > | property_use_font () const |
Whether the label is drawn in the selected font. | |
Glib::PropertyProxy<bool> | property_use_font () |
Whether the label is drawn in the selected font. | |
Glib::PropertyProxy_ReadOnly< bool > | property_use_size () const |
Whether the label is drawn with the selected font size. | |
Glib::PropertyProxy<bool> | property_use_size () |
Whether the label is drawn with the selected font size. | |
bool | set_font_name (const Glib::ustring& fontname) |
Sets or updates the currently-displayed font in font picker dialog. | |
void | set_show_size (bool show_size=true) |
If show_size is true , the font size will be displayed along with the name of the selected font. | |
void | set_show_style (bool show_style=true) |
If show_style is true , the font style will be displayed along with name of the selected font. | |
void | set_title (const Glib::ustring& title) |
Sets the title for the font selection dialog. | |
void | set_use_font (bool use_font=true) |
If use_font is true , the font name will be written using the selected font. | |
void | set_use_size (bool use_size=true) |
If use_size is true , the font name will be written using the selected size. | |
Glib::SignalProxy0<void> | signal_font_set () |
The font_set signal is emitted when the user selects a font. | |
virtual | ~FontButton () |
Protected Member Functions | |
virtual void | on_font_set () |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::FontButton* | wrap (GtkFontButton* object, bool take_copy=false) |
|
|
|
|
|
|
|
Retrieves the name of the currently selected font.
|
|
Returns whether the font size will be shown in the label.
|
|
Returns whether the name of the font style will be shown in the label.
|
|
Retrieves the title of the font selection dialog.
|
|
Returns whether the selected font is used in the label.
|
|
Returns whether the selected size is used in the label.
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Button. |
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Button. |
|
|
|
The name of the selected font. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The name of the selected font. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Whether selected font size is shown in the label. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Whether selected font size is shown in the label. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Whether the selected font style is shown in the label. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Whether the selected font style is shown in the label. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The title of the font selection dialog. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The title of the font selection dialog. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Whether the label is drawn in the selected font. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Whether the label is drawn in the selected font. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Whether the label is drawn with the selected font size. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Whether the label is drawn with the selected font size. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Sets or updates the currently-displayed font in font picker dialog.
|
|
If show_size is
|
|
If show_style is
|
|
Sets the title for the font selection dialog.
|
|
If use_font is
|
|
If use_size is
|
|
The font_set signal is emitted when the user selects a font. When handling this signal, use get_font_name() to find out which font was just selected. |
|
|