A Gtk::FontDialog object collects the arguments that are needed to present a font chooser dialog to the user, such as a title for the dialog and whether it should be modal.
More...
|
| | FontDialog (FontDialog &&src) noexcept |
| |
| FontDialog & | operator= (FontDialog &&src) noexcept |
| |
| | ~FontDialog () noexcept override |
| |
| GtkFontDialog * | gobj () |
| | Provides access to the underlying C GObject.
|
| |
| const GtkFontDialog * | gobj () const |
| | Provides access to the underlying C GObject.
|
| |
| GtkFontDialog * | gobj_copy () |
| | Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
| |
| Glib::ustring | get_title () const |
| | Returns the title that will be shown on the font chooser dialog.
|
| |
| void | set_title (const Glib::ustring &title) |
| | Sets the title that will be shown on the font chooser dialog.
|
| |
| bool | get_modal () const |
| | Returns whether the font chooser dialog blocks interaction with the parent window while it is presented.
|
| |
| void | set_modal (bool modal=true) |
| | Sets whether the font chooser dialog blocks interaction with the parent window while it is presented.
|
| |
| Pango::Language | get_language () const |
| | Returns the language for which font features are applied.
|
| |
| void | set_language (const Pango::Language &language) |
| | Sets the language for which font features are applied.
|
| |
| Glib::RefPtr< Pango::FontMap > | get_font_map () |
| | Returns the fontmap from which fonts are selected, or nullptr for the default fontmap.
|
| |
| Glib::RefPtr< const Pango::FontMap > | get_font_map () const |
| | Returns the fontmap from which fonts are selected, or nullptr for the default fontmap.
|
| |
| void | set_font_map (const Glib::RefPtr< Pango::FontMap > &fontmap) |
| | Sets the fontmap from which fonts are selected.
|
| |
| Glib::RefPtr< Filter > | get_filter () |
| | Returns the filter that decides which fonts to display in the font chooser dialog.
|
| |
| Glib::RefPtr< const Filter > | get_filter () const |
| | Returns the filter that decides which fonts to display in the font chooser dialog.
|
| |
| void | set_filter (const Glib::RefPtr< Filter > &filter) |
| | Adds a filter that decides which fonts to display in the font chooser dialog.
|
| |
| void | choose_family (Window & parent, const Gio::SlotAsyncReady & slot, const Glib::RefPtr< Pango::FontFamily > &initial_value={}, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) |
| | Presents a font chooser dialog to the user.
|
| |
| void | choose_family (const Gio::SlotAsyncReady & slot, const Glib::RefPtr< Pango::FontFamily > &initial_value={}, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) |
| | A choose_family() convenience overload.
|
| |
| Glib::RefPtr< Pango::FontFamily > | choose_family_finish (const Glib::RefPtr< Gio::AsyncResult > &result) |
| | Finishes the choose_family() call.
|
| |
| void | choose_face (Window & parent, const Gio::SlotAsyncReady & slot, const Glib::RefPtr< Pango::FontFace > &initial_value={}, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) |
| | Presents a font chooser dialog to the user.
|
| |
| void | choose_face (const Gio::SlotAsyncReady & slot, const Glib::RefPtr< Pango::FontFace > &initial_value={}, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) |
| | A choose_face() convenience overload.
|
| |
| Glib::RefPtr< Pango::FontFace > | choose_face_finish (const Glib::RefPtr< Gio::AsyncResult > &result) |
| | Finishes the choose_face() call.
|
| |
| void | choose_font (Window & parent, const Gio::SlotAsyncReady & slot, const Pango::FontDescription &initial_value, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) const |
| | Presents a font chooser dialog to the user.
|
| |
| void | choose_font (Window & parent, const Gio::SlotAsyncReady & slot, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) const |
| | A choose_font() convenience overload.
|
| |
| void | choose_font (const Gio::SlotAsyncReady & slot, const Pango::FontDescription &initial_value, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) const |
| | A choose_font() convenience overload.
|
| |
| void | choose_font (const Gio::SlotAsyncReady & slot, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) const |
| | A choose_font() convenience overload.
|
| |
| Pango::FontDescription | choose_font_finish (const Glib::RefPtr< Gio::AsyncResult > &result) const |
| | Finishes the choose_font() call.
|
| |
| void | choose_font_and_features (Window & parent, const Gio::SlotAsyncReady & slot, const Pango::FontDescription &initial_value, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) const |
| | Presents a font chooser dialog to the user.
|
| |
| void | choose_font_and_features (Window & parent, const Gio::SlotAsyncReady & slot, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) const |
| | A choose_font_and_features() convenience overload.
|
| |
| void | choose_font_and_features (const Gio::SlotAsyncReady & slot, const Pango::FontDescription &initial_value, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) const |
| | A choose_font_and_features() convenience overload.
|
| |
| void | choose_font_and_features (const Gio::SlotAsyncReady & slot, const Glib::RefPtr< Gio::Cancellable > &cancellable={}) const |
| | A choose_font_and_features() convenience overload.
|
| |
| std::tuple< Pango::FontDescription, Glib::ustring, Pango::Language > | choose_font_and_features_finish (const Glib::RefPtr< Gio::AsyncResult > &result) const |
| | Finishes the choose_font_and_features() call and returns the resulting font description and font features.
|
| |
| Glib::PropertyProxy< Glib::ustring > | property_title () |
| | A title that may be shown on the font chooser dialog that is presented by Gtk::FontDialog::choose_font().
|
| |
| Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_title () const |
| | A title that may be shown on the font chooser dialog that is presented by Gtk::FontDialog::choose_font().
|
| |
| Glib::PropertyProxy< bool > | property_modal () |
| | Whether the font chooser dialog is modal.
|
| |
| Glib::PropertyProxy_ReadOnly< bool > | property_modal () const |
| | Whether the font chooser dialog is modal.
|
| |
| Glib::PropertyProxy< Pango::Language > | property_language () |
| | The language for which the font features are selected.
|
| |
| Glib::PropertyProxy_ReadOnly< Pango::Language > | property_language () const |
| | The language for which the font features are selected.
|
| |
| Glib::PropertyProxy< Glib::RefPtr< Pango::FontMap > > | property_font_map () |
| | A custom font map to select fonts from.
|
| |
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Pango::FontMap > > | property_font_map () const |
| | A custom font map to select fonts from.
|
| |
| Glib::PropertyProxy< Glib::RefPtr< Filter > > | property_filter () |
| | A filter to restrict what fonts are shown in the font chooser dialog.
|
| |
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Filter > > | property_filter () const |
| | A filter to restrict what fonts are shown in the font chooser dialog.
|
| |
| | Object (const Object &)=delete |
| |
| Object & | operator= (const Object &)=delete |
| |
| | Object (Object &&src) noexcept |
| |
| Object & | operator= (Object &&src) noexcept |
| |
| void * | get_data (const QueryQuark &key) |
| |
| void | set_data (const Quark &key, void *data) |
| |
| void | set_data_with_c_callback (const Quark &key, void *data, GDestroyNotify notify) |
| |
| void | set_data (const Quark &key, void *data, DestroyNotify notify) |
| |
| void | remove_data (const QueryQuark &quark) |
| |
| void * | steal_data (const QueryQuark &quark) |
| |
| Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
| |
| | ObjectBase (const ObjectBase &)=delete |
| |
| ObjectBase & | operator= (const ObjectBase &)=delete |
| |
| void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
| |
| void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
| |
| void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
| |
| void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
| |
| PropertyType | get_property (const Glib::ustring &property_name) const |
| |
| sigc::connection | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
| |
| sigc::connection | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void()> &&slot) |
| |
| void | freeze_notify () |
| |
| void | thaw_notify () |
| |
| virtual void | reference () const |
| |
| virtual void | unreference () const |
| |
| GObject * | gobj () |
| |
| const GObject * | gobj () const |
| |
| GObject * | gobj_copy () const |
| |
| | trackable () noexcept |
| |
| | trackable (const trackable &src) noexcept |
| |
| | trackable (trackable &&src) noexcept |
| |
| | ~trackable () |
| |
| void | add_destroy_notify_callback (notifiable *data, func_destroy_notify func) const |
| |
| void | notify_callbacks () |
| |
| trackable & | operator= (const trackable &src) |
| |
| trackable & | operator= (trackable &&src) noexcept |
| |
| void | remove_destroy_notify_callback (notifiable *data) const |
| |
A Gtk::FontDialog object collects the arguments that are needed to present a font chooser dialog to the user, such as a title for the dialog and whether it should be modal.
The dialog is shown with the choose_font() method or its variants. This API follows the GIO async pattern, and the result can be obtained by calling the corresponding finish method, such as choose_font_finish().
See Gtk::FontDialogButton for a convenient control that uses Gtk::FontDialog and presents the results.
- Since gtkmm 4.10: