// 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 XKeyboardState extends XWrapperBase { 
	private Unsafe unsafe = XlibWrapper.unsafe; 
	private final boolean should_free_memory;
	public static int getSize() { return 56; }
	public int getDataSize() { return getSize(); }

	long pData;

	public long getPData() { return pData; }


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


	XKeyboardState() {
		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_key_click_percent() { log.finest("");return (Native.getInt(pData+0)); }
	public void set_key_click_percent(int v) { log.finest(""); Native.putInt(pData+0, v); }
	public int get_bell_percent() { log.finest("");return (Native.getInt(pData+4)); }
	public void set_bell_percent(int v) { log.finest(""); Native.putInt(pData+4, v); }
	public int get_bell_pitch() { log.finest("");return (Native.getInt(pData+8)); }
	public void set_bell_pitch(int v) { log.finest(""); Native.putInt(pData+8, v); }
	public int get_bell_duration() { log.finest("");return (Native.getInt(pData+12)); }
	public void set_bell_duration(int v) { log.finest(""); Native.putInt(pData+12, v); }
	public long get_led_mask() { log.finest("");return (Native.getLong(pData+16)); }
	public void set_led_mask(long v) { log.finest(""); Native.putLong(pData+16, v); }
	public int get_global_auto_repeat() { log.finest("");return (Native.getInt(pData+20)); }
	public void set_global_auto_repeat(int v) { log.finest(""); Native.putInt(pData+20, v); }
	public byte get_auto_repeats(int index) { log.finest("");return Native.getByte(pData + 24+index*1); }
	public void set_auto_repeats(int index, byte v) { log.finest(""); Native.putByte(pData+24 + index*1, v); }
	public long get_auto_repeats() { log.finest("");return pData+24; }


	String getName() {
		return "XKeyboardState"; 
	}


	String getFieldsAsString() {
		String ret="";

		ret += ""+"key_click_percent = " + get_key_click_percent() +", ";
		ret += ""+"bell_percent = " + get_bell_percent() +", ";
		ret += ""+"bell_pitch = " + get_bell_pitch() +", ";
		ret += ""+"bell_duration = " + get_bell_duration() +", ";
		ret += ""+"led_mask = " + get_led_mask() +", ";
		ret += ""+"global_auto_repeat = " + get_global_auto_repeat() +", ";
		ret += "{" + get_auto_repeats(0) + " " + get_auto_repeats(1) + " " + get_auto_repeats(2) + " " + get_auto_repeats(3) + " " + get_auto_repeats(4) + " " + get_auto_repeats(5) + " " + get_auto_repeats(6) + " " + get_auto_repeats(7) + " " + get_auto_repeats(8) + " " + get_auto_repeats(9) + " " + get_auto_repeats(10) + " " + get_auto_repeats(11) + " " + get_auto_repeats(12) + " " + get_auto_repeats(13) + " " + get_auto_repeats(14) + " " + get_auto_repeats(15) + " " + get_auto_repeats(16) + " " + get_auto_repeats(17) + " " + get_auto_repeats(18) + " " + get_auto_repeats(19) + " " + get_auto_repeats(20) + " " + get_auto_repeats(21) + " " + get_auto_repeats(22) + " " + get_auto_repeats(23) + " " + get_auto_repeats(24) + " " + get_auto_repeats(25) + " " + get_auto_repeats(26) + " " + get_auto_repeats(27) + " " + get_auto_repeats(28) + " " + get_auto_repeats(29) + " " + get_auto_repeats(30) + " " + get_auto_repeats(31) + " " + "}";
		return ret;
	}


}



