// Generated by gtkmmproc -- DO NOT MODIFY! #include #include #include // -*- 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 #include #include #include #include namespace Gtk { void RcStyle::set_name(const Glib::ustring& name) { const Glib::ScopedPtr old_name (gobj()->name); gobj()->name = g_strdup(name.c_str()); } void RcStyle::set_bg_pixmap_name(StateType state, const Glib::ustring& name) { const Glib::ScopedPtr old_name (gobj()->bg_pixmap_name[state]); gobj()->bg_pixmap_name[state] = g_strdup(name.c_str()); } Glib::ustring RcStyle::get_bg_pixmap_name(StateType state) const { if(const char *const name = gobj()->bg_pixmap_name[state]) return Glib::ustring(name); else return Glib::ustring(); } void RcStyle::set_font(const Pango::FontDescription& font_desc) { g_return_if_fail(font_desc.gobj() != 0); const Pango::FontDescription old_font_desc (gobj()->font_desc, false); gobj()->font_desc = font_desc.gobj_copy(); } Pango::FontDescription RcStyle::get_font() const { return Pango::FontDescription(gobj()->font_desc, true); } void RcStyle::set_color_flags(StateType state, RcFlags flags) { gobj()->color_flags[state] = static_cast(gobj()->color_flags[state] | flags); } void RcStyle::unset_color_flags(StateType state, RcFlags flags) { gobj()->color_flags[state] = static_cast(gobj()->color_flags[state] & ~flags); } RcFlags RcStyle::get_color_flags(StateType state) const { return static_cast(unsigned(gobj()->color_flags[state])); } void RcStyle::set_xthickness(int xthickness) { gobj()->xthickness = xthickness; } void RcStyle::set_ythickness(int ythickness) { gobj()->ythickness = ythickness; } RC::RC(const Glib::ustring& filename) { //gtk_rc_init(); gtk_rc_parse(filename.c_str()); } Glib::RefPtr