// 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 XFontStruct extends XWrapperBase { private Unsafe unsafe = XlibWrapper.unsafe; private final boolean should_free_memory; public static int getSize() { return 96; } public int getDataSize() { return getSize(); } long pData; public long getPData() { return pData; } XFontStruct(long addr) { log.finest("Creating"); pData=addr; should_free_memory = false; } XFontStruct() { 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 XExtData get_ext_data(int index) { log.finest(""); return (Native.getLong(pData+0) != 0)?(new XExtData(Native.getLong(pData+0)+index*32)):(null); } public long get_ext_data() { log.finest("");return Native.getLong(pData+0); } public void set_ext_data(long v) { log.finest(""); Native.putLong(pData + 0, v); } public long get_fid() { log.finest("");return (Native.getLong(pData+8)); } public void set_fid(long v) { log.finest(""); Native.putLong(pData+8, v); } public int get_direction() { log.finest("");return (Native.getInt(pData+16)); } public void set_direction(int v) { log.finest(""); Native.putInt(pData+16, v); } public int get_min_char_or_byte2() { log.finest("");return (Native.getInt(pData+20)); } public void set_min_char_or_byte2(int v) { log.finest(""); Native.putInt(pData+20, v); } public int get_max_char_or_byte2() { log.finest("");return (Native.getInt(pData+24)); } public void set_max_char_or_byte2(int v) { log.finest(""); Native.putInt(pData+24, v); } public int get_min_byte1() { log.finest("");return (Native.getInt(pData+28)); } public void set_min_byte1(int v) { log.finest(""); Native.putInt(pData+28, v); } public int get_max_byte1() { log.finest("");return (Native.getInt(pData+32)); } public void set_max_byte1(int v) { log.finest(""); Native.putInt(pData+32, v); } public boolean get_all_chars_exist() { log.finest("");return (Native.getBool(pData+36)); } public void set_all_chars_exist(boolean v) { log.finest(""); Native.putBool(pData+36, v); } public int get_n_properties() { log.finest("");return (Native.getInt(pData+44)); } public void set_n_properties(int v) { log.finest(""); Native.putInt(pData+44, v); } public XFontProp get_properties(int index) { log.finest(""); return (Native.getLong(pData+48) != 0)?(new XFontProp(Native.getLong(pData+48)+index*16)):(null); } public long get_properties() { log.finest("");return Native.getLong(pData+48); } public void set_properties(long v) { log.finest(""); Native.putLong(pData + 48, v); } public XCharStruct get_min_bounds() { log.finest("");return new XCharStruct(pData + 56); } public XCharStruct get_max_bounds() { log.finest("");return new XCharStruct(pData + 68); } public XCharStruct get_per_char(int index) { log.finest(""); return (Native.getLong(pData+80) != 0)?(new XCharStruct(Native.getLong(pData+80)+index*12)):(null); } public long get_per_char() { log.finest("");return Native.getLong(pData+80); } public void set_per_char(long v) { log.finest(""); Native.putLong(pData + 80, v); } public int get_ascent() { log.finest("");return (Native.getInt(pData+88)); } public void set_ascent(int v) { log.finest(""); Native.putInt(pData+88, v); } public int get_descent() { log.finest("");return (Native.getInt(pData+92)); } public void set_descent(int v) { log.finest(""); Native.putInt(pData+92, v); } String getName() { return "XFontStruct"; } String getFieldsAsString() { String ret=""; ret += ""+"ext_data = " + get_ext_data() +", "; ret += ""+"fid = " + get_fid() +", "; ret += ""+"direction = " + get_direction() +", "; ret += ""+"min_char_or_byte2 = " + get_min_char_or_byte2() +", "; ret += ""+"max_char_or_byte2 = " + get_max_char_or_byte2() +", "; ret += ""+"min_byte1 = " + get_min_byte1() +", "; ret += ""+"max_byte1 = " + get_max_byte1() +", "; ret += ""+"all_chars_exist = " + get_all_chars_exist() +", "; ret += ""+"n_properties = " + get_n_properties() +", "; ret += ""+"properties = " + get_properties() +", "; ret += ""+"min_bounds = " + get_min_bounds() +", "; ret += ""+"max_bounds = " + get_max_bounds() +", "; ret += ""+"per_char = " + get_per_char() +", "; ret += ""+"ascent = " + get_ascent() +", "; ret += ""+"descent = " + get_descent() +", "; return ret; } }