Blob Blame History Raw
// Generated by gmmproc 2.54.0 -- DO NOT MODIFY!


#include <glibmm.h>

#include <gtkmm/shortcutsshortcut.h>
#include <gtkmm/private/shortcutsshortcut_p.h>


/* Copyright (C) 2016 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, see <http://www.gnu.org/licenses/>.
 */

#include <gtk/gtk.h>

namespace Gtk
{
} //namespace Gtk

namespace
{
} // anonymous namespace

// static
GType Glib::Value<Gtk::ShortcutType>::value_type()
{
  return gtk_shortcut_type_get_type();
}


namespace Glib
{

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

} /* namespace Glib */

namespace Gtk
{


/* The *_Class implementation: */

const Glib::Class& ShortcutsShortcut_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_ = &ShortcutsShortcut_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_shortcuts_shortcut_get_type());

    // Add derived versions of interfaces, if the C type implements any interfaces:

  }

  return *this;
}


void ShortcutsShortcut_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* ShortcutsShortcut_Class::wrap_new(GObject* o)
{
  return manage(new ShortcutsShortcut((GtkShortcutsShortcut*)(o)));

}


/* The implementation: */

ShortcutsShortcut::ShortcutsShortcut(const Glib::ConstructParams& construct_params)
:
  Box(construct_params)
{
  }

ShortcutsShortcut::ShortcutsShortcut(GtkShortcutsShortcut* castitem)
:
  Box((GtkBox*)(castitem))
{
  }


ShortcutsShortcut::ShortcutsShortcut(ShortcutsShortcut&& src) noexcept
: Box(std::move(src))
{}

ShortcutsShortcut& ShortcutsShortcut::operator=(ShortcutsShortcut&& src) noexcept
{
  Box::operator=(std::move(src));
  return *this;
}

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

ShortcutsShortcut::CppClassType ShortcutsShortcut::shortcutsshortcut_class_; // initialize static member

GType ShortcutsShortcut::get_type()
{
  return shortcutsshortcut_class_.init().get_type();
}


GType ShortcutsShortcut::get_base_type()
{
  return gtk_shortcuts_shortcut_get_type();
}


ShortcutsShortcut::ShortcutsShortcut()
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(nullptr),
  Box(Glib::ConstructParams(shortcutsshortcut_class_.init()))
{
  

}


Glib::PropertyProxy< Glib::ustring > ShortcutsShortcut::property_accelerator() 
{
  return Glib::PropertyProxy< Glib::ustring >(this, "accelerator");
}

Glib::PropertyProxy_ReadOnly< Glib::ustring > ShortcutsShortcut::property_accelerator() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "accelerator");
}

Glib::PropertyProxy< Glib::RefPtr<Gio::Icon> > ShortcutsShortcut::property_icon() 
{
  return Glib::PropertyProxy< Glib::RefPtr<Gio::Icon> >(this, "icon");
}

Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gio::Icon> > ShortcutsShortcut::property_icon() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gio::Icon> >(this, "icon");
}

Glib::PropertyProxy< bool > ShortcutsShortcut::property_icon_set() 
{
  return Glib::PropertyProxy< bool >(this, "icon-set");
}

Glib::PropertyProxy_ReadOnly< bool > ShortcutsShortcut::property_icon_set() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "icon-set");
}

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

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

Glib::PropertyProxy< Glib::ustring > ShortcutsShortcut::property_subtitle() 
{
  return Glib::PropertyProxy< Glib::ustring >(this, "subtitle");
}

Glib::PropertyProxy_ReadOnly< Glib::ustring > ShortcutsShortcut::property_subtitle() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "subtitle");
}

Glib::PropertyProxy< bool > ShortcutsShortcut::property_subtitle_set() 
{
  return Glib::PropertyProxy< bool >(this, "subtitle-set");
}

Glib::PropertyProxy_ReadOnly< bool > ShortcutsShortcut::property_subtitle_set() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "subtitle-set");
}

Glib::PropertyProxy< TextDirection > ShortcutsShortcut::property_direction() 
{
  return Glib::PropertyProxy< TextDirection >(this, "direction");
}

Glib::PropertyProxy_ReadOnly< TextDirection > ShortcutsShortcut::property_direction() const
{
  return Glib::PropertyProxy_ReadOnly< TextDirection >(this, "direction");
}

Glib::PropertyProxy< ShortcutType > ShortcutsShortcut::property_shortcut_type() 
{
  return Glib::PropertyProxy< ShortcutType >(this, "shortcut-type");
}

Glib::PropertyProxy_ReadOnly< ShortcutType > ShortcutsShortcut::property_shortcut_type() const
{
  return Glib::PropertyProxy_ReadOnly< ShortcutType >(this, "shortcut-type");
}

Glib::PropertyProxy< Glib::ustring > ShortcutsShortcut::property_action_name() 
{
  return Glib::PropertyProxy< Glib::ustring >(this, "action-name");
}

Glib::PropertyProxy_ReadOnly< Glib::ustring > ShortcutsShortcut::property_action_name() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "action-name");
}


} // namespace Gtk