// This file is an automatically generated file, please do not edit this file, modify the WrapperGenerator.java file instead !

package sun.awt.X11;

import jdk.internal.misc.Unsafe;

import sun.util.logging.PlatformLogger;
public class XIconSize extends XWrapperBase { 
	private Unsafe unsafe = XlibWrapper.unsafe; 
	private final boolean should_free_memory;
	public static int getSize() { return 24; }
	public int getDataSize() { return getSize(); }

	long pData;

	public long getPData() { return pData; }


	public XIconSize(long addr) {
		log.finest("Creating");
		pData=addr;
		should_free_memory = false;
	}


	public XIconSize() {
		log.finest("Creating");
		pData = unsafe.allocateMemory(getSize());
		should_free_memory = true;
	}


	public void dispose() {
		log.finest("Disposing");
		if (should_free_memory) {
			log.finest("freeing memory");
			unsafe.freeMemory(pData); 
	}
		}
	public int get_min_width() { log.finest("");return (Native.getInt(pData+0)); }
	public void set_min_width(int v) { log.finest(""); Native.putInt(pData+0, v); }
	public int get_min_height() { log.finest("");return (Native.getInt(pData+4)); }
	public void set_min_height(int v) { log.finest(""); Native.putInt(pData+4, v); }
	public int get_max_width() { log.finest("");return (Native.getInt(pData+8)); }
	public void set_max_width(int v) { log.finest(""); Native.putInt(pData+8, v); }
	public int get_max_height() { log.finest("");return (Native.getInt(pData+12)); }
	public void set_max_height(int v) { log.finest(""); Native.putInt(pData+12, v); }
	public int get_width_inc() { log.finest("");return (Native.getInt(pData+16)); }
	public void set_width_inc(int v) { log.finest(""); Native.putInt(pData+16, v); }
	public int get_height_inc() { log.finest("");return (Native.getInt(pData+20)); }
	public void set_height_inc(int v) { log.finest(""); Native.putInt(pData+20, v); }


	String getName() {
		return "XIconSize"; 
	}


	String getFieldsAsString() {
		StringBuilder ret = new StringBuilder(240);

		ret.append("min_width = ").append( get_min_width() ).append(", ");
		ret.append("min_height = ").append( get_min_height() ).append(", ");
		ret.append("max_width = ").append( get_max_width() ).append(", ");
		ret.append("max_height = ").append( get_max_height() ).append(", ");
		ret.append("width_inc = ").append( get_width_inc() ).append(", ");
		ret.append("height_inc = ").append( get_height_inc() ).append(", ");
		return ret.toString();
	}


}



