// 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 XGCValues extends XWrapperBase { 
	private Unsafe unsafe = XlibWrapper.unsafe; 
	private final boolean should_free_memory;
	public static int getSize() { return ((XlibWrapper.dataModel == 32)?(92):(128)); }
	public int getDataSize() { return getSize(); }

	long pData;

	public long getPData() { return pData; }


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


	public XGCValues() {
		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_function() { log.finest("");return (Native.getInt(pData+0)); }
	public void set_function(int v) { log.finest(""); Native.putInt(pData+0, v); }
	public long get_plane_mask() { log.finest("");return (Native.getLong(pData+((XlibWrapper.dataModel == 32)?(4):(8)))); }
	public void set_plane_mask(long v) { log.finest(""); Native.putLong(pData+((XlibWrapper.dataModel == 32)?(4):(8)), v); }
	public long get_foreground() { log.finest("");return (Native.getLong(pData+((XlibWrapper.dataModel == 32)?(8):(16)))); }
	public void set_foreground(long v) { log.finest(""); Native.putLong(pData+((XlibWrapper.dataModel == 32)?(8):(16)), v); }
	public long get_background() { log.finest("");return (Native.getLong(pData+((XlibWrapper.dataModel == 32)?(12):(24)))); }
	public void set_background(long v) { log.finest(""); Native.putLong(pData+((XlibWrapper.dataModel == 32)?(12):(24)), v); }
	public int get_line_width() { log.finest("");return (Native.getInt(pData+((XlibWrapper.dataModel == 32)?(16):(32)))); }
	public void set_line_width(int v) { log.finest(""); Native.putInt(pData+((XlibWrapper.dataModel == 32)?(16):(32)), v); }
	public int get_line_style() { log.finest("");return (Native.getInt(pData+((XlibWrapper.dataModel == 32)?(20):(36)))); }
	public void set_line_style(int v) { log.finest(""); Native.putInt(pData+((XlibWrapper.dataModel == 32)?(20):(36)), v); }
	public int get_cap_style() { log.finest("");return (Native.getInt(pData+((XlibWrapper.dataModel == 32)?(24):(40)))); }
	public void set_cap_style(int v) { log.finest(""); Native.putInt(pData+((XlibWrapper.dataModel == 32)?(24):(40)), v); }
	public int get_join_style() { log.finest("");return (Native.getInt(pData+((XlibWrapper.dataModel == 32)?(28):(44)))); }
	public void set_join_style(int v) { log.finest(""); Native.putInt(pData+((XlibWrapper.dataModel == 32)?(28):(44)), v); }
	public int get_fill_style() { log.finest("");return (Native.getInt(pData+((XlibWrapper.dataModel == 32)?(32):(48)))); }
	public void set_fill_style(int v) { log.finest(""); Native.putInt(pData+((XlibWrapper.dataModel == 32)?(32):(48)), v); }
	public int get_fill_rule() { log.finest("");return (Native.getInt(pData+((XlibWrapper.dataModel == 32)?(36):(52)))); }
	public void set_fill_rule(int v) { log.finest(""); Native.putInt(pData+((XlibWrapper.dataModel == 32)?(36):(52)), v); }
	public int get_arc_mode() { log.finest("");return (Native.getInt(pData+((XlibWrapper.dataModel == 32)?(40):(56)))); }
	public void set_arc_mode(int v) { log.finest(""); Native.putInt(pData+((XlibWrapper.dataModel == 32)?(40):(56)), v); }
	public long get_tile() { log.finest("");return (Native.getLong(pData+((XlibWrapper.dataModel == 32)?(44):(64)))); }
	public void set_tile(long v) { log.finest(""); Native.putLong(pData+((XlibWrapper.dataModel == 32)?(44):(64)), v); }
	public long get_stipple() { log.finest("");return (Native.getLong(pData+((XlibWrapper.dataModel == 32)?(48):(72)))); }
	public void set_stipple(long v) { log.finest(""); Native.putLong(pData+((XlibWrapper.dataModel == 32)?(48):(72)), v); }
	public int get_ts_x_origin() { log.finest("");return (Native.getInt(pData+((XlibWrapper.dataModel == 32)?(52):(80)))); }
	public void set_ts_x_origin(int v) { log.finest(""); Native.putInt(pData+((XlibWrapper.dataModel == 32)?(52):(80)), v); }
	public int get_ts_y_origin() { log.finest("");return (Native.getInt(pData+((XlibWrapper.dataModel == 32)?(56):(84)))); }
	public void set_ts_y_origin(int v) { log.finest(""); Native.putInt(pData+((XlibWrapper.dataModel == 32)?(56):(84)), v); }
	public long get_font() { log.finest("");return (Native.getLong(pData+((XlibWrapper.dataModel == 32)?(60):(88)))); }
	public void set_font(long v) { log.finest(""); Native.putLong(pData+((XlibWrapper.dataModel == 32)?(60):(88)), v); }
	public int get_subwindow_mode() { log.finest("");return (Native.getInt(pData+((XlibWrapper.dataModel == 32)?(64):(96)))); }
	public void set_subwindow_mode(int v) { log.finest(""); Native.putInt(pData+((XlibWrapper.dataModel == 32)?(64):(96)), v); }
	public boolean get_graphics_exposures() { log.finest("");return (Native.getBool(pData+((XlibWrapper.dataModel == 32)?(68):(100)))); }
	public void set_graphics_exposures(boolean v) { log.finest(""); Native.putBool(pData+((XlibWrapper.dataModel == 32)?(68):(100)), v); }
	public int get_clip_x_origin() { log.finest("");return (Native.getInt(pData+((XlibWrapper.dataModel == 32)?(72):(104)))); }
	public void set_clip_x_origin(int v) { log.finest(""); Native.putInt(pData+((XlibWrapper.dataModel == 32)?(72):(104)), v); }
	public int get_clip_y_origin() { log.finest("");return (Native.getInt(pData+((XlibWrapper.dataModel == 32)?(76):(108)))); }
	public void set_clip_y_origin(int v) { log.finest(""); Native.putInt(pData+((XlibWrapper.dataModel == 32)?(76):(108)), v); }
	public long get_clip_mask() { log.finest("");return (Native.getLong(pData+((XlibWrapper.dataModel == 32)?(80):(112)))); }
	public void set_clip_mask(long v) { log.finest(""); Native.putLong(pData+((XlibWrapper.dataModel == 32)?(80):(112)), v); }
	public int get_dash_offset() { log.finest("");return (Native.getInt(pData+((XlibWrapper.dataModel == 32)?(84):(120)))); }
	public void set_dash_offset(int v) { log.finest(""); Native.putInt(pData+((XlibWrapper.dataModel == 32)?(84):(120)), v); }
	public byte get_dashes() { log.finest("");return (Native.getByte(pData+((XlibWrapper.dataModel == 32)?(88):(124)))); }
	public void set_dashes(byte v) { log.finest(""); Native.putByte(pData+((XlibWrapper.dataModel == 32)?(88):(124)), v); }


	String getName() {
		return "XGCValues"; 
	}


	String getFieldsAsString() {
		String ret="";

		ret += ""+"function = " + get_function() +", ";
		ret += ""+"plane_mask = " + get_plane_mask() +", ";
		ret += ""+"foreground = " + get_foreground() +", ";
		ret += ""+"background = " + get_background() +", ";
		ret += ""+"line_width = " + get_line_width() +", ";
		ret += ""+"line_style = " + get_line_style() +", ";
		ret += ""+"cap_style = " + get_cap_style() +", ";
		ret += ""+"join_style = " + get_join_style() +", ";
		ret += ""+"fill_style = " + get_fill_style() +", ";
		ret += ""+"fill_rule = " + get_fill_rule() +", ";
		ret += ""+"arc_mode = " + get_arc_mode() +", ";
		ret += ""+"tile = " + get_tile() +", ";
		ret += ""+"stipple = " + get_stipple() +", ";
		ret += ""+"ts_x_origin = " + get_ts_x_origin() +", ";
		ret += ""+"ts_y_origin = " + get_ts_y_origin() +", ";
		ret += ""+"font = " + get_font() +", ";
		ret += ""+"subwindow_mode = " + get_subwindow_mode() +", ";
		ret += ""+"graphics_exposures = " + get_graphics_exposures() +", ";
		ret += ""+"clip_x_origin = " + get_clip_x_origin() +", ";
		ret += ""+"clip_y_origin = " + get_clip_y_origin() +", ";
		ret += ""+"clip_mask = " + get_clip_mask() +", ";
		ret += ""+"dash_offset = " + get_dash_offset() +", ";
		ret += ""+"dashes = " + get_dashes() +", ";
		return ret;
	}


}



