/*
 * 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.Enum;
public class AxisUse extends Enum{
	
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    static final private int _IGNORE = 0;
    static final public org.gnu.gdk.AxisUse IGNORE = new org.gnu.gdk.AxisUse (_IGNORE);
    static final private int _X = 1;
    static final public org.gnu.gdk.AxisUse X = new org.gnu.gdk.AxisUse (_X);
    static final private int _Y = 2;
    static final public org.gnu.gdk.AxisUse Y = new org.gnu.gdk.AxisUse (_Y);
    static final private int _PRESSURE = 3;
    static final public org.gnu.gdk.AxisUse PRESSURE = new org.gnu.gdk.AxisUse (_PRESSURE);
    static final private int _XTILT = 4;
    static final public org.gnu.gdk.AxisUse XTILT = new org.gnu.gdk.AxisUse (_XTILT);
    static final private int _YTILT = 5;
    static final public org.gnu.gdk.AxisUse YTILT = new org.gnu.gdk.AxisUse (_YTILT);
    static final private int _WHEEL = 6;
    static final public org.gnu.gdk.AxisUse WHEEL = new org.gnu.gdk.AxisUse (_WHEEL);
    static final private int _LAST = 7;
    static final public org.gnu.gdk.AxisUse LAST = new org.gnu.gdk.AxisUse (_LAST);
    static final private org.gnu.gdk.AxisUse[] theInterned = new org.gnu.gdk.AxisUse[] 
    {
        IGNORE, X, Y, PRESSURE, XTILT, YTILT, WHEEL, LAST 
    }

;
    static private java.util.Hashtable theInternedExtras;
    static final private org.gnu.gdk.AxisUse theSacrificialOne = new org.gnu.gdk.AxisUse (0);
    static public org.gnu.gdk.AxisUse intern (int value) 
    {
        if (value < theInterned.length) 
        {
            return theInterned[value];
        }
        theSacrificialOne.value_ = value;
        if (theInternedExtras == null) 
        {
            theInternedExtras = new java.util.Hashtable();
        }
        org.gnu.gdk.AxisUse already = (org.gnu.gdk.AxisUse) theInternedExtras.get (
            theSacrificialOne);
        if (already == null) 
        {
            already = new org.gnu.gdk.AxisUse(value);
            theInternedExtras.put(already, already);
        }
        return already;
    }

    private AxisUse (int value) 
    {
        value_ = value;
    }

    public org.gnu.gdk.AxisUse or (org.gnu.gdk.AxisUse other) 
    {
        return intern(value_ | other.value_);
    }

    public org.gnu.gdk.AxisUse and (org.gnu.gdk.AxisUse other) 
    {
        return intern(value_ & other.value_);
    }

    public org.gnu.gdk.AxisUse xor (org.gnu.gdk.AxisUse other) 
    {
        return intern(value_ ^ other.value_);
    }

    public boolean test (org.gnu.gdk.AxisUse other) 
    {
        return (value_ & other.value_) == other.value_;
    }

    /****************************************
     * END OF GENERATED CODE
     ****************************************/
}

