// Generated by gmmproc 2.75.0 -- DO NOT MODIFY!

#undef GTK_DISABLE_DEPRECATED
#define GDK_DISABLE_DEPRECATION_WARNINGS 1
 

#ifndef GTKMM_DISABLE_DEPRECATED


#include <glibmm.h>

#include <gtkmm/fontbutton.h>
#include <gtkmm/private/fontbutton_p.h>


/*
 * Copyright 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 <gtk/gtk.h>

namespace Gtk
{


} // namespace Gtk


namespace
{


static const Glib::SignalProxyInfo FontButton_signal_font_set_info =
{
  "font-set",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


} // anonymous namespace


namespace Glib
{

Gtk::FontButton* wrap(GtkFontButton* object, bool take_copy)
{
  return dynamic_cast<Gtk::FontButton *> (Glib::wrap_auto ((GObject*)(object), take_copy));
}

} /* namespace Glib */

namespace Gtk
{


/* The *_Class implementation: */

const Glib::Class& FontButton_Class::init()
{
  if(!gtype_) // create the GType if necessary
  {
    // Glib::Class has to know the class init function to clone custom types.
    class_init_func_ = &FontButton_Class::class_init_function;

    // This is actually just optimized away, apparently with no harm.
    // Make sure that the parent type has been created.
    //CppClassParent::CppObjectType::get_type();

    // Create the wrapper type, with the same class/instance size as the base type.
    register_derived_type(gtk_font_button_get_type());

    // Add derived versions of interfaces, if the C type implements any interfaces:
  FontChooser::add_interface(get_type());

  }

  return *this;
}


void FontButton_Class::class_init_function(void* g_class, void* class_data)
{
  const auto klass = static_cast<BaseClassType*>(g_class);
  CppClassParent::class_init_function(klass, class_data);


}


Glib::ObjectBase* FontButton_Class::wrap_new(GObject* o)
{
  return manage(new FontButton((GtkFontButton*)(o)));

}


/* The implementation: */

FontButton::FontButton(const Glib::ConstructParams& construct_params)
:
  Gtk::Widget(construct_params)
{
  }

FontButton::FontButton(GtkFontButton* castitem)
:
  Gtk::Widget((GtkWidget*)(castitem))
{
  }


FontButton::FontButton(FontButton&& src) noexcept
: Gtk::Widget(std::move(src))
  , FontChooser(std::move(src))
{}

FontButton& FontButton::operator=(FontButton&& src) noexcept
{
  Gtk::Widget::operator=(std::move(src));
  FontChooser::operator=(std::move(src));
  return *this;
}

FontButton::~FontButton() noexcept
{
  destroy_();
}

FontButton::CppClassType FontButton::fontbutton_class_; // initialize static member

GType FontButton::get_type()
{
  return fontbutton_class_.init().get_type();
}


GType FontButton::get_base_type()
{
  return gtk_font_button_get_type();
}


FontButton::FontButton()
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(nullptr),
  Gtk::Widget(Glib::ConstructParams(fontbutton_class_.init()))
{
  

}

FontButton::FontButton(const Glib::ustring& font)
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(nullptr),
  Gtk::Widget(Glib::ConstructParams(fontbutton_class_.init(), "font", font.c_str(), nullptr))
{
  

}

Glib::ustring FontButton::get_title() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_font_button_get_title(const_cast<GtkFontButton*>(gobj())));
}

void FontButton::set_title(const Glib::ustring& title)
{
  gtk_font_button_set_title(gobj(), title.c_str());
}

bool FontButton::get_modal() const
{
  return gtk_font_button_get_modal(const_cast<GtkFontButton*>(gobj()));
}

void FontButton::set_modal(bool modal)
{
  gtk_font_button_set_modal(gobj(), static_cast<int>(modal));
}

bool FontButton::get_use_font() const
{
  return gtk_font_button_get_use_font(const_cast<GtkFontButton*>(gobj()));
}

void FontButton::set_use_font(bool use_font)
{
  gtk_font_button_set_use_font(gobj(), static_cast<int>(use_font));
}

bool FontButton::get_use_size() const
{
  return gtk_font_button_get_use_size(const_cast<GtkFontButton*>(gobj()));
}

void FontButton::set_use_size(bool use_size)
{
  gtk_font_button_set_use_size(gobj(), static_cast<int>(use_size));
}


Glib::SignalProxy<void()> FontButton::signal_font_set()
{
  return Glib::SignalProxy<void() >(this, &FontButton_signal_font_set_info);
}


Glib::PropertyProxy< Glib::ustring > FontButton::property_title() 
{
  return Glib::PropertyProxy< Glib::ustring >(this, "title");
}

Glib::PropertyProxy_ReadOnly< Glib::ustring > FontButton::property_title() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "title");
}

Glib::PropertyProxy< bool > FontButton::property_modal() 
{
  return Glib::PropertyProxy< bool >(this, "modal");
}

Glib::PropertyProxy_ReadOnly< bool > FontButton::property_modal() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "modal");
}

Glib::PropertyProxy< bool > FontButton::property_use_font() 
{
  return Glib::PropertyProxy< bool >(this, "use-font");
}

Glib::PropertyProxy_ReadOnly< bool > FontButton::property_use_font() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "use-font");
}

Glib::PropertyProxy< bool > FontButton::property_use_size() 
{
  return Glib::PropertyProxy< bool >(this, "use-size");
}

Glib::PropertyProxy_ReadOnly< bool > FontButton::property_use_size() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "use-size");
}


} // namespace Gtk

#endif // GTKMM_DISABLE_DEPRECATED


