/*
 * Java-Gnome Bindings Library
 *
 * Copyright 1998-2004 the Java-Gnome Team, all rights reserved.
 *
 * The Java-Gnome bindings library is free software distributed under
 * the terms of the GNU Library General Public License version 2.
 */

package org.gnu.gdk;

import org.gnu.glib.Boxed;
import org.gnu.glib.Handle;

/**
 *
 */
public class EventKey extends Boxed 
{
	public EventKey(Handle handle) {
		super(handle);
	}
	
	public int getKeyVal() {
		return EventKey.getKeyval(getHandle());
	}
	
	public String getString() {
		return EventKey.getString(getHandle());
	}
	
	public int getGroup() {
		return EventKey.getGroup(getHandle());
	}
	
	public int getLength() {
		return EventKey.getLength(getHandle());
	}
	
	public int getState() {
            return EventKey.getState(getHandle());
	}
    
    public ModifierType getModifierKey() {
        return ModifierType.intern( getState() );
    }

    public Window getWindow() {
        return new Window(getWindow(getHandle()));
    }
	

    native static final protected int getType (Handle obj);
    native static final protected Handle getWindow (Handle obj);
    native static final protected boolean getSendEvent (Handle obj);
    native static final protected int getTime (Handle obj);
    native static final protected int getState (Handle obj);
    native static final protected int getKeyval (Handle obj);
    native static final protected int getLength (Handle obj);
    native static final protected String getString (Handle obj);
    native static final protected int getHardwareKeycode (Handle obj);
    native static final protected int getGroup (Handle obj);

}

