/*
 * 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.gtk;
import org.gnu.glib.Enum;
public class IconSize extends Enum 
{
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    static final private int _INVALID = 0;
    static final public org.gnu.gtk.IconSize INVALID = new org.gnu.gtk.IconSize (_INVALID);
    static final private int _MENU = 1;
    static final public org.gnu.gtk.IconSize MENU = new org.gnu.gtk.IconSize (_MENU);
    static final private int _SMALL_TOOLBAR = 2;
    static final public org.gnu.gtk.IconSize SMALL_TOOLBAR = new org.gnu.gtk.IconSize (
        _SMALL_TOOLBAR);
    static final private int _LARGE_TOOLBAR = 3;
    static final public org.gnu.gtk.IconSize LARGE_TOOLBAR = new org.gnu.gtk.IconSize (
        _LARGE_TOOLBAR);
    static final private int _BUTTON = 4;
    static final public org.gnu.gtk.IconSize BUTTON = new org.gnu.gtk.IconSize (_BUTTON);
    static final private int _DND = 5;
    static final public org.gnu.gtk.IconSize DND = new org.gnu.gtk.IconSize (_DND);
    static final private int _DIALOG = 6;
    static final public org.gnu.gtk.IconSize DIALOG = new org.gnu.gtk.IconSize (_DIALOG);
    static final private org.gnu.gtk.IconSize[] theInterned = new org.gnu.gtk.IconSize[] 
    {
        INVALID, MENU, SMALL_TOOLBAR, LARGE_TOOLBAR, BUTTON, DND, DIALOG 
    }

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

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

    public org.gnu.gtk.IconSize or (org.gnu.gtk.IconSize other) 
    {
        return intern(value_ | other.value_);
    }

    public org.gnu.gtk.IconSize and (org.gnu.gtk.IconSize other) 
    {
        return intern(value_ & other.value_);
    }

    public org.gnu.gtk.IconSize xor (org.gnu.gtk.IconSize other) 
    {
        return intern(value_ ^ other.value_);
    }

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

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

