1 // Generated by gtkmmproc -- DO NOT MODIFY!
4 #include <pangomm/fontface.h>
5 #include <pangomm/private/fontface_p.h>
12 * Copyright 1998-2002 The gtkmm Development Team
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Library General Public
16 * License as published by the Free Software Foundation; either
17 * version 2 of the License, or (at your option) any later version.
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Library General Public License for more details.
24 * You should have received a copy of the GNU Library General Public
25 * License along with this library; if not, write to the Free
26 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 Glib::ArrayHandle<int> FontFace::list_sizes() const
36 pango_font_face_list_sizes(const_cast<PangoFontFace*>(gobj()), &sizes, &n_sizes);
38 return Glib::ArrayHandle<int>(sizes, n_sizes, Glib::OWNERSHIP_SHALLOW); //The ArrayHandle will free the array.
46 } // anonymous namespace
52 Glib::RefPtr<Pango::FontFace> wrap(PangoFontFace* object, bool take_copy)
54 return Glib::RefPtr<Pango::FontFace>( dynamic_cast<Pango::FontFace*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
55 //We use dynamic_cast<> in case of multiple inheritance.
58 } /* namespace Glib */
65 /* The *_Class implementation: */
67 const Glib::Class& FontFace_Class::init()
69 if(!gtype_) // create the GType if necessary
71 // Glib::Class has to know the class init function to clone custom types.
72 class_init_func_ = &FontFace_Class::class_init_function;
74 // This is actually just optimized away, apparently with no harm.
75 // Make sure that the parent type has been created.
76 //CppClassParent::CppObjectType::get_type();
78 // Create the wrapper type, with the same class/instance size as the base type.
79 register_derived_type(pango_font_face_get_type());
81 // Add derived versions of interfaces, if the C type implements any interfaces:
87 void FontFace_Class::class_init_function(void* g_class, void* class_data)
89 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
90 CppClassParent::class_init_function(klass, class_data);
92 #ifdef GLIBMM_VFUNCS_ENABLED
93 #endif //GLIBMM_VFUNCS_ENABLED
95 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
96 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
99 #ifdef GLIBMM_VFUNCS_ENABLED
100 #endif //GLIBMM_VFUNCS_ENABLED
102 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
103 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
106 Glib::ObjectBase* FontFace_Class::wrap_new(GObject* object)
108 return new FontFace((PangoFontFace*)object);
112 /* The implementation: */
114 PangoFontFace* FontFace::gobj_copy()
120 FontFace::FontFace(const Glib::ConstructParams& construct_params)
122 Glib::Object(construct_params)
125 FontFace::FontFace(PangoFontFace* castitem)
127 Glib::Object((GObject*)(castitem))
130 FontFace::~FontFace()
134 FontFace::CppClassType FontFace::fontface_class_; // initialize static member
136 GType FontFace::get_type()
138 return fontface_class_.init().get_type();
141 GType FontFace::get_base_type()
143 return pango_font_face_get_type();
147 FontDescription FontFace::describe() const
149 return FontDescription((pango_font_face_describe(const_cast<PangoFontFace*>(gobj()))));
152 Glib::ustring FontFace::get_name() const
154 return Glib::convert_const_gchar_ptr_to_ustring(pango_font_face_get_face_name(const_cast<PangoFontFace*>(gobj())));
157 bool FontFace::is_synthesized() const
159 return pango_font_face_is_synthesized(const_cast<PangoFontFace*>(gobj()));
163 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
164 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
166 #ifdef GLIBMM_VFUNCS_ENABLED
167 #endif //GLIBMM_VFUNCS_ENABLED