File: XKeyboardControl.java

package info (click to toggle)
openjdk-7 7u3-2.1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 86,496 kB
  • sloc: java: 170,904; cpp: 6,334; sh: 4,232; makefile: 3,798; ansic: 1,334; python: 310; asm: 83; perl: 65
file content (81 lines) | stat: -rw-r--r-- 2,757 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// 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 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; }


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


	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() {
		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 = " + get_led() +", ";
		ret += ""+"led_mode = " + get_led_mode() +", ";
		ret += ""+"key = " + get_key() +", ";
		ret += ""+"auto_repeat_mode = " + get_auto_repeat_mode() +", ";
		return ret;
	}


}