13
0
livetrax/libs/gtkmm2/gtk/gtkmm/fontselection.cc
Paul Davis 449aab3c46 rollback to 3428, before the mysterious removal of libs/* at 3431/3432
git-svn-id: svn://localhost/ardour2/branches/3.0@3435 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-06-02 21:41:35 +00:00

450 lines
11 KiB
C++

// Generated by gtkmmproc -- DO NOT MODIFY!
#include <gtkmm/fontselection.h>
#include <gtkmm/private/fontselection_p.h>
// -*- c++ -*-
/* $Id$ */
/* Copyright 1998-2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gtkmm/button.h>
#include <gtkmm/entry.h>
#include <gtkmm/radiobutton.h>
#include <gtk/gtkfontsel.h>
namespace
{
} // anonymous namespace
namespace Glib
{
Gtk::FontSelection* wrap(GtkFontSelection* object, bool take_copy)
{
return dynamic_cast<Gtk::FontSelection *> (Glib::wrap_auto ((GObject*)(object), take_copy));
}
} /* namespace Glib */
namespace Gtk
{
/* The *_Class implementation: */
const Glib::Class& FontSelection_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_ = &FontSelection_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_selection_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
}
return *this;
}
void FontSelection_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* FontSelection_Class::wrap_new(GObject* o)
{
return manage(new FontSelection((GtkFontSelection*)(o)));
}
/* The implementation: */
FontSelection::FontSelection(const Glib::ConstructParams& construct_params)
:
Gtk::VBox(construct_params)
{
}
FontSelection::FontSelection(GtkFontSelection* castitem)
:
Gtk::VBox((GtkVBox*)(castitem))
{
}
FontSelection::~FontSelection()
{
destroy_();
}
FontSelection::CppClassType FontSelection::fontselection_class_; // initialize static member
GType FontSelection::get_type()
{
return fontselection_class_.init().get_type();
}
GType FontSelection::get_base_type()
{
return gtk_font_selection_get_type();
}
FontSelection::FontSelection()
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Gtk::VBox(Glib::ConstructParams(fontselection_class_.init()))
{
}
Glib::ustring FontSelection::get_font_name() const
{
return Glib::convert_return_gchar_ptr_to_ustring(gtk_font_selection_get_font_name(const_cast<GtkFontSelection*>(gobj())));
}
bool FontSelection::set_font_name(const Glib::ustring& fontname)
{
return gtk_font_selection_set_font_name(gobj(), fontname.c_str());
}
Glib::ustring FontSelection::get_preview_text() const
{
return Glib::convert_const_gchar_ptr_to_ustring(gtk_font_selection_get_preview_text(const_cast<GtkFontSelection*>(gobj())));
}
void FontSelection::set_preview_text(const Glib::ustring& fontname)
{
gtk_font_selection_set_preview_text(gobj(), fontname.c_str());
}
Entry* FontSelection::get_font_entry()
{
return Glib::wrap((GtkEntry*)(gobj()->font_entry));
}
const Entry* FontSelection::get_font_entry() const
{
return Glib::wrap((GtkEntry*)(gobj()->font_entry));
}
Entry* FontSelection::get_font_style_entry()
{
return Glib::wrap((GtkEntry*)(gobj()->font_style_entry));
}
const Entry* FontSelection::get_font_style_entry() const
{
return Glib::wrap((GtkEntry*)(gobj()->font_style_entry));
}
Entry* FontSelection::get_size_entry()
{
return Glib::wrap((GtkEntry*)(gobj()->size_entry));
}
const Entry* FontSelection::get_size_entry() const
{
return Glib::wrap((GtkEntry*)(gobj()->size_entry));
}
RadioButton* FontSelection::get_pixels_button()
{
return Glib::wrap((GtkRadioButton*)(gobj()->pixels_button));
}
const RadioButton* FontSelection::get_pixels_button() const
{
return Glib::wrap((GtkRadioButton*)(gobj()->pixels_button));
}
RadioButton* FontSelection::get_points_button()
{
return Glib::wrap((GtkRadioButton*)(gobj()->points_button));
}
const RadioButton* FontSelection::get_points_button() const
{
return Glib::wrap((GtkRadioButton*)(gobj()->points_button));
}
Button* FontSelection::get_filter_button()
{
return Glib::wrap((GtkButton*)(gobj()->filter_button));
}
const Button* FontSelection::get_filter_button() const
{
return Glib::wrap((GtkButton*)(gobj()->filter_button));
}
Entry* FontSelection::get_preview_entry()
{
return Glib::wrap((GtkEntry*)(gobj()->preview_entry));
}
const Entry* FontSelection::get_preview_entry() const
{
return Glib::wrap((GtkEntry*)(gobj()->preview_entry));
}
#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Glib::ustring> FontSelection::property_font_name()
{
return Glib::PropertyProxy<Glib::ustring>(this, "font-name");
}
#endif //GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Glib::ustring> FontSelection::property_font_name() const
{
return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "font-name");
}
#endif //GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<Glib::ustring> FontSelection::property_preview_text()
{
return Glib::PropertyProxy<Glib::ustring>(this, "preview-text");
}
#endif //GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<Glib::ustring> FontSelection::property_preview_text() const
{
return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "preview-text");
}
#endif //GLIBMM_PROPERTIES_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gtk
namespace Glib
{
Gtk::FontSelectionDialog* wrap(GtkFontSelectionDialog* object, bool take_copy)
{
return dynamic_cast<Gtk::FontSelectionDialog *> (Glib::wrap_auto ((GObject*)(object), take_copy));
}
} /* namespace Glib */
namespace Gtk
{
/* The *_Class implementation: */
const Glib::Class& FontSelectionDialog_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_ = &FontSelectionDialog_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_selection_dialog_get_type());
// Add derived versions of interfaces, if the C type implements any interfaces:
}
return *this;
}
void FontSelectionDialog_Class::class_init_function(void* g_class, void* class_data)
{
BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
CppClassParent::class_init_function(klass, class_data);
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
Glib::ObjectBase* FontSelectionDialog_Class::wrap_new(GObject* o)
{
return new FontSelectionDialog((GtkFontSelectionDialog*)(o)); //top-level windows can not be manage()ed.
}
/* The implementation: */
FontSelectionDialog::FontSelectionDialog(const Glib::ConstructParams& construct_params)
:
Gtk::Dialog(construct_params)
{
}
FontSelectionDialog::FontSelectionDialog(GtkFontSelectionDialog* castitem)
:
Gtk::Dialog((GtkDialog*)(castitem))
{
}
FontSelectionDialog::~FontSelectionDialog()
{
destroy_();
}
FontSelectionDialog::CppClassType FontSelectionDialog::fontselectiondialog_class_; // initialize static member
GType FontSelectionDialog::get_type()
{
return fontselectiondialog_class_.init().get_type();
}
GType FontSelectionDialog::get_base_type()
{
return gtk_font_selection_dialog_get_type();
}
FontSelectionDialog::FontSelectionDialog()
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Gtk::Dialog(Glib::ConstructParams(fontselectiondialog_class_.init()))
{
}
FontSelectionDialog::FontSelectionDialog(const Glib::ustring& title)
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
Gtk::Dialog(Glib::ConstructParams(fontselectiondialog_class_.init(), "title", title.c_str(), static_cast<char*>(0)))
{
}
bool FontSelectionDialog::set_font_name(const Glib::ustring& fontname)
{
return gtk_font_selection_dialog_set_font_name(gobj(), fontname.c_str());
}
Glib::ustring FontSelectionDialog::get_font_name() const
{
return Glib::convert_return_gchar_ptr_to_ustring(gtk_font_selection_dialog_get_font_name(const_cast<GtkFontSelectionDialog*>(gobj())));
}
Glib::ustring FontSelectionDialog::get_preview_text() const
{
return Glib::convert_const_gchar_ptr_to_ustring(gtk_font_selection_dialog_get_preview_text(const_cast<GtkFontSelectionDialog*>(gobj())));
}
void FontSelectionDialog::set_preview_text(const Glib::ustring& fontname)
{
gtk_font_selection_dialog_set_preview_text(gobj(), fontname.c_str());
}
FontSelection* FontSelectionDialog::get_font_selection()
{
return Glib::wrap((GtkFontSelection*)(gobj()->fontsel));
}
const FontSelection* FontSelectionDialog::get_font_selection() const
{
return Glib::wrap((GtkFontSelection*)(gobj()->fontsel));
}
Button* FontSelectionDialog::get_ok_button()
{
return Glib::wrap((GtkButton*)(gobj()->ok_button));
}
const Button* FontSelectionDialog::get_ok_button() const
{
return Glib::wrap((GtkButton*)(gobj()->ok_button));
}
Button* FontSelectionDialog::get_apply_button()
{
return Glib::wrap((GtkButton*)(gobj()->apply_button));
}
const Button* FontSelectionDialog::get_apply_button() const
{
return Glib::wrap((GtkButton*)(gobj()->apply_button));
}
Button* FontSelectionDialog::get_cancel_button()
{
return Glib::wrap((GtkButton*)(gobj()->cancel_button));
}
const Button* FontSelectionDialog::get_cancel_button() const
{
return Glib::wrap((GtkButton*)(gobj()->cancel_button));
}
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED
} // namespace Gtk