// -*- c++ -*-
//  Generated by gtkmmproc from ./../accelgroup.gen_h -- DO NOT MODIFY!
#include <gtk--/accelgroup.h>
#include <gtk--/private/accelgroup_p.h>
namespace Gtk
{

AccelGroup* AccelGroup::create()
{
  return (AccelGroup*)gtk_accel_group_new();
}

void
AccelGroup::ref()
{
  gtk_accel_group_ref(gtkobj());
}

void
AccelGroup::unref()
{
  gtk_accel_group_unref(gtkobj());
}


AccelGroup::~AccelGroup()
{}


bool
AccelGroup::activate(Object& obj,
				guint accel_key, GdkModifierType accel_mod)
{
  return (gtk_accel_groups_activate(obj.gtkobj(), accel_key, accel_mod))?true:false;
}

bool
AccelGroup::activate(guint accel_key, GdkModifierType accel_mod)
{
  return (gtk_accel_group_activate(gtkobj(), accel_key, accel_mod))?true:false;
}

void
AccelGroup::lock()
{
  gtk_accel_group_lock(gtkobj());
}

void
AccelGroup::unlock()
{
  gtk_accel_group_unlock(gtkobj());
}


bool
AccelGroup::valid(guint keyval, GdkModifierType modifiers)
{
  return (gtk_accelerator_valid(keyval, modifiers))?true:false;
}

void
AccelGroup::parse(const string & accelerator,
		  guint &accelerator_key, // out arg
		  GdkModifierType &accelerator_mods) // out arg
{
  gtk_accelerator_parse(accelerator.c_str(),
			&accelerator_key,
			&accelerator_mods);
}

string
AccelGroup::name(guint accelerator_key,
		     GdkModifierType accelerator_mods)
{
  return gtk_accelerator_name(accelerator_key,
			      accelerator_mods);
}

const AccelGroup*
AccelGroup::get_default()
{
  return (AccelGroup*) gtk_accel_group_get_default();
}

void
AccelGroup::set_default_mod_mask(GdkModifierType default_mod_mask)
{
  gtk_accelerator_set_default_mod_mask(default_mod_mask);
}

guint AccelGroup::get_default_mod_mask()
{
  return gtk_accelerator_get_default_mod_mask();
}

AccelEntry::~AccelEntry()
{}

}
