// 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 sun.util.logging.PlatformLogger;
public class XKeyboardControl extends XWrapperBase { 
	private Unsafe unsafe = XlibWrapper.unsafe; 
	private final boolean should_free_memory;
	public static int getSize() { return 32; }
	public int getDataSize() { return getSize(); }

	long pData;

	public long getPData() { return pData; }


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


	public XKeyboardControl() {
		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 int get_led() { log.finest("");return (Native.getInt(pData+16)); }
	public void set_led(int v) { log.finest(""); Native.putInt(pData+16, v); }
	public int get_led_mode() { log.finest("");return (Native.getInt(pData+20)); }
	public void set_led_mode(int v) { log.finest(""); Native.putInt(pData+20, v); }
	public int get_key() { log.finest("");return (Native.getInt(pData+24)); }
	public void set_key(int v) { log.finest(""); Native.putInt(pData+24, v); }
	public int get_auto_repeat_mode() { log.finest("");return (Native.getInt(pData+28)); }
	public void set_auto_repeat_mode(int v) { log.finest(""); Native.putInt(pData+28, v); }


	String getName() {
		return "XKeyboardControl"; 
	}


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

		ret.append("key_click_percent = ").append( get_key_click_percent() ).append(", ");
		ret.append("bell_percent = ").append( get_bell_percent() ).append(", ");
		ret.append("bell_pitch = ").append( get_bell_pitch() ).append(", ");
		ret.append("bell_duration = ").append( get_bell_duration() ).append(", ");
		ret.append("led = ").append( get_led() ).append(", ");
		ret.append("led_mode = ").append( get_led_mode() ).append(", ");
		ret.append("key = ").append( get_key() ).append(", ");
		ret.append("auto_repeat_mode = ").append( get_auto_repeat_mode() ).append(", ");
		return ret.toString();
	}


}