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

package sun.awt.X11;

import sun.misc.*;

import java.util.logging.*;
public class awtImageData extends XWrapperBase { 
	private Unsafe unsafe = XlibWrapper.unsafe; 
	private final boolean should_free_memory;
	public static int getSize() { return 304; }
	public int getDataSize() { return getSize(); }

	long pData;

	public long getPData() { return pData; }


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


	awtImageData() {
		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_Depth() { log.finest("");return (Native.getInt(pData+0)); }
	public void set_Depth(int v) { log.finest(""); Native.putInt(pData+0, v); }
	public XPixmapFormatValues get_wsImageFormat() { log.finest("");return new XPixmapFormatValues(pData + 4); }
	public long get_clrdata(int index) { log.finest(""); return Native.getLong(pData+16)+index*Native.getLongSize(); }
	public long get_clrdata() { log.finest("");return Native.getLong(pData+16); }
	public void set_clrdata(long v) { log.finest(""); Native.putLong(pData + 16, v); }
	public long get_convert(int index) { log.finest("");return Native.getLong(pData + 48+index*Native.getLongSize()); }
	public void set_convert(int index, long v) { log.finest(""); Native.putLong(pData+48 + index*Native.getLongSize(), v); }
	public long get_convert() { log.finest("");return pData+48; }


	String getName() {
		return "awtImageData"; 
	}


	String getFieldsAsString() {
		String ret="";

		ret += ""+"Depth = " + get_Depth() +", ";
		ret += ""+"wsImageFormat = " + get_wsImageFormat() +", ";
		ret += ""+"clrdata = " + get_clrdata() +", ";
		ret += "{" + get_convert(0) + " " + get_convert(1) + " " + get_convert(2) + " " + get_convert(3) + " " + get_convert(4) + " " + get_convert(5) + " " + get_convert(6) + " " + get_convert(7) + " " + get_convert(8) + " " + get_convert(9) + " " + get_convert(10) + " " + get_convert(11) + " " + get_convert(12) + " " + get_convert(13) + " " + get_convert(14) + " " + get_convert(15) + " " + get_convert(16) + " " + get_convert(17) + " " + get_convert(18) + " " + get_convert(19) + " " + get_convert(20) + " " + get_convert(21) + " " + get_convert(22) + " " + get_convert(23) + " " + get_convert(24) + " " + get_convert(25) + " " + get_convert(26) + " " + get_convert(27) + " " + get_convert(28) + " " + get_convert(29) + " " + get_convert(30) + " " + get_convert(31) + " " + "}";
		return ret;
	}


}



