// Generated by gmmproc 2.82.0 -- DO NOT MODIFY! #ifndef _GTKMM_FONTBUTTON_H #define _GTKMM_FONTBUTTON_H #ifndef GTKMM_DISABLE_DEPRECATED #include #include /* * Copyright (C) 2003 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include // The entire file is deprecated. #ifndef DOXYGEN_SHOULD_SKIP_THIS using GtkFontButton = struct _GtkFontButton; using GtkFontButtonClass = struct _GtkFontButtonClass; #endif /* DOXYGEN_SHOULD_SKIP_THIS */ #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Gtk { class GTKMM_API FontButton_Class; } // namespace Gtk #endif //DOXYGEN_SHOULD_SKIP_THIS namespace Gtk { /** A button to launch a font selection dialog. * * 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. * * The FontButton widget looks like this: * @image html fontbutton1.png * * @ingroup Widgets * @deprecated 4.10: Use Gtk::FontDialogButton instead. */ class GTKMM_API FontButton : public Widget, public FontChooser { public: #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef FontButton CppObjectType; typedef FontButton_Class CppClassType; typedef GtkFontButton BaseObjectType; typedef GtkFontButtonClass BaseClassType; #endif /* DOXYGEN_SHOULD_SKIP_THIS */ FontButton(FontButton&& src) noexcept; FontButton& operator=(FontButton&& src) noexcept; // noncopyable FontButton(const FontButton&) = delete; FontButton& operator=(const FontButton&) = delete; ~FontButton() noexcept override; #ifndef DOXYGEN_SHOULD_SKIP_THIS private: friend GTKMM_API class FontButton_Class; static CppClassType fontbutton_class_; protected: explicit FontButton(const Glib::ConstructParams& construct_params); explicit FontButton(GtkFontButton* castitem); #endif /* DOXYGEN_SHOULD_SKIP_THIS */ public: /** Get the GType for this class, for use with the underlying GObject type system. */ static GType get_type() G_GNUC_CONST; #ifndef DOXYGEN_SHOULD_SKIP_THIS static GType get_base_type() G_GNUC_CONST; #endif /// Provides access to the underlying C GObject. GtkFontButton* gobj() { return reinterpret_cast(gobject_); } /// Provides access to the underlying C GObject. const GtkFontButton* gobj() const { return reinterpret_cast(gobject_); } private: public: FontButton(); explicit FontButton(const Glib::ustring& font); /** Retrieves the title of the font chooser dialog. * * Deprecated: 4.10: Use Gtk::FontDialogButton instead * * @return An internal copy of the title string * which must not be freed. */ Glib::ustring get_title() const; /** Sets the title for the font chooser dialog. * * Deprecated: 4.10: Use Gtk::FontDialogButton instead * * @param title A string containing the font chooser dialog title. */ void set_title(const Glib::ustring& title); /** Gets whether the dialog is modal. * * Deprecated: 4.10: Use Gtk::FontDialogButton instead * * @return true if the dialog is modal. */ bool get_modal() const; /** Sets whether the dialog should be modal. * * Deprecated: 4.10: Use Gtk::FontDialogButton instead * * @param modal true to make the dialog modal. */ void set_modal(bool modal = true); /** Returns whether the selected font is used in the label. * * Deprecated: 4.10: Use Gtk::FontDialogButton instead * * @return Whether the selected font is used in the label. */ bool get_use_font() const; /** If @a use_font is true, the font name will be written * using the selected font. * * Deprecated: 4.10: Use Gtk::FontDialogButton instead * * @param use_font If true, font name will be written using font chosen. */ void set_use_font(bool use_font = true); /** Returns whether the selected size is used in the label. * * Deprecated: 4.10: Use Gtk::FontDialogButton instead * * @return Whether the selected size is used in the label. */ bool get_use_size() const; /** If @a use_size is true, the font name will be written using * the selected size. * * Deprecated: 4.10: Use Gtk::FontDialogButton instead * * @param use_size If true, font name will be written using the * selected size. */ void set_use_size(bool use_size = true); /** The title of the font chooser dialog. * * Default value: "Pick a Font" * * @return A PropertyProxy that allows you to get or set the value of the property, * or receive notification when the value of the property changes. */ Glib::PropertyProxy< Glib::ustring > property_title() ; /** The title of the font chooser dialog. * * Default value: "Pick a Font" * * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, * or receive notification when the value of the property changes. */ Glib::PropertyProxy_ReadOnly< Glib::ustring > property_title() const; /** Whether the font chooser dialog should be modal. * * Default value: true * * @return A PropertyProxy that allows you to get or set the value of the property, * or receive notification when the value of the property changes. */ Glib::PropertyProxy< bool > property_modal() ; /** Whether the font chooser dialog should be modal. * * Default value: true * * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, * or receive notification when the value of the property changes. */ Glib::PropertyProxy_ReadOnly< bool > property_modal() const; /** Whether the buttons label will be drawn in the selected font. * * Default value: false * * @return A PropertyProxy that allows you to get or set the value of the property, * or receive notification when the value of the property changes. */ Glib::PropertyProxy< bool > property_use_font() ; /** Whether the buttons label will be drawn in the selected font. * * Default value: false * * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, * or receive notification when the value of the property changes. */ Glib::PropertyProxy_ReadOnly< bool > property_use_font() const; /** Whether the buttons label will use the selected font size. * * Default value: false * * @return A PropertyProxy that allows you to get or set the value of the property, * or receive notification when the value of the property changes. */ Glib::PropertyProxy< bool > property_use_size() ; /** Whether the buttons label will use the selected font size. * * Default value: false * * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, * or receive notification when the value of the property changes. */ Glib::PropertyProxy_ReadOnly< bool > property_use_size() const; // no_default_handler because GtkFontButtonClass is private. /** * @par Slot Prototype: * void on_my_%font_set() * * Flags: Run First * * Emitted when the user selects a font. * * When handling this signal, use Gtk::FontChooser::get_font() * to find out which font was just selected. * * Note that this signal is only emitted when the user changes the font. * If you need to react to programmatic font changes as well, use * the notify::font signal. */ Glib::SignalProxy signal_font_set(); public: public: //C++ methods used to invoke GTK+ virtual functions: protected: //GTK+ Virtual Functions (override these to change behaviour): //Default Signal Handlers:: }; } // namespace Gtk namespace Glib { /** A Glib::wrap() method for this object. * * @param object The C instance. * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref. * @result A C++ instance that wraps this C instance. * * @relates Gtk::FontButton */ GTKMM_API Gtk::FontButton* wrap(GtkFontButton* object, bool take_copy = false); } //namespace Glib #endif // GTKMM_DISABLE_DEPRECATED #endif /* _GTKMM_FONTBUTTON_H */