package sun.awt.X11;
import sun.misc.*;
import java.util.logging.*;
public class Screen extends XWrapperBase {
private Unsafe unsafe = XlibWrapper.unsafe;
private final boolean should_free_memory;
public static int getSize() { return 128; }
public int getDataSize() { return getSize(); }
long pData;
public long getPData() { return pData; }
public Screen(long addr) {
log.finest("Creating");
pData=addr;
should_free_memory = false;
}
public Screen() {
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_display(int index) { log.finest(""); return Native.getLong(pData+8)+index*Native.getLongSize(); }
public long get_display() { log.finest("");return Native.getLong(pData+8); }
public void set_display(long v) { log.finest(""); Native.putLong(pData + 8, v); }
public long get_root() { log.finest("");return (Native.getLong(pData+16)); }
public void set_root(long v) { log.finest(""); Native.putLong(pData+16, v); }
public int get_width() { log.finest("");return (Native.getInt(pData+24)); }
public void set_width(int v) { log.finest(""); Native.putInt(pData+24, v); }
public int get_height() { log.finest("");return (Native.getInt(pData+28)); }
public void set_height(int v) { log.finest(""); Native.putInt(pData+28, v); }
public int get_mwidth() { log.finest("");return (Native.getInt(pData+32)); }
public void set_mwidth(int v) { log.finest(""); Native.putInt(pData+32, v); }
public int get_mheight() { log.finest("");return (Native.getInt(pData+36)); }
public void set_mheight(int v) { log.finest(""); Native.putInt(pData+36, v); }
public int get_ndepths() { log.finest("");return (Native.getInt(pData+40)); }
public void set_ndepths(int v) { log.finest(""); Native.putInt(pData+40, v); }
public Depth get_depths(int index) { log.finest(""); return (Native.getLong(pData+48) != 0)?(new Depth(Native.getLong(pData+48)+index*16)):(null); }
public long get_depths() { log.finest("");return Native.getLong(pData+48); }
public void set_depths(long v) { log.finest(""); Native.putLong(pData + 48, v); }
public int get_root_depth() { log.finest("");return (Native.getInt(pData+56)); }
public void set_root_depth(int v) { log.finest(""); Native.putInt(pData+56, v); }
public Visual get_root_visual(int index) { log.finest(""); return (Native.getLong(pData+64) != 0)?(new Visual(Native.getLong(pData+64)+index*56)):(null); }
public long get_root_visual() { log.finest("");return Native.getLong(pData+64); }
public void set_root_visual(long v) { log.finest(""); Native.putLong(pData + 64, v); }
public long get_default_gc() { log.finest("");return (Native.getLong(pData+72)); }
public void set_default_gc(long v) { log.finest(""); Native.putLong(pData+72, v); }
public long get_cmap() { log.finest("");return (Native.getLong(pData+80)); }
public void set_cmap(long v) { log.finest(""); Native.putLong(pData+80, v); }
public long get_white_pixel() { log.finest("");return (Native.getLong(pData+88)); }
public void set_white_pixel(long v) { log.finest(""); Native.putLong(pData+88, v); }
public long get_black_pixel() { log.finest("");return (Native.getLong(pData+96)); }
public void set_black_pixel(long v) { log.finest(""); Native.putLong(pData+96, v); }
public int get_max_maps() { log.finest("");return (Native.getInt(pData+104)); }
public void set_max_maps(int v) { log.finest(""); Native.putInt(pData+104, v); }
public int get_min_maps() { log.finest("");return (Native.getInt(pData+108)); }
public void set_min_maps(int v) { log.finest(""); Native.putInt(pData+108, v); }
public int get_backing_store() { log.finest("");return (Native.getInt(pData+112)); }
public void set_backing_store(int v) { log.finest(""); Native.putInt(pData+112, v); }
public boolean get_save_unders() { log.finest("");return (Native.getBool(pData+116)); }
public void set_save_unders(boolean v) { log.finest(""); Native.putBool(pData+116, v); }
public long get_root_input_mask() { log.finest("");return (Native.getLong(pData+120)); }
public void set_root_input_mask(long v) { log.finest(""); Native.putLong(pData+120, v); }
String getName() {
return "Screen";
}
String getFieldsAsString() {
String ret="";
ret += ""+"ext_data = " + get_ext_data() +", ";
ret += ""+"display = " + get_display() +", ";
ret += ""+"root = " + get_root() +", ";
ret += ""+"width = " + get_width() +", ";
ret += ""+"height = " + get_height() +", ";
ret += ""+"mwidth = " + get_mwidth() +", ";
ret += ""+"mheight = " + get_mheight() +", ";
ret += ""+"ndepths = " + get_ndepths() +", ";
ret += ""+"depths = " + get_depths() +", ";
ret += ""+"root_depth = " + get_root_depth() +", ";
ret += ""+"root_visual = " + get_root_visual() +", ";
ret += ""+"default_gc = " + get_default_gc() +", ";
ret += ""+"cmap = " + get_cmap() +", ";
ret += ""+"white_pixel = " + get_white_pixel() +", ";
ret += ""+"black_pixel = " + get_black_pixel() +", ";
ret += ""+"max_maps = " + get_max_maps() +", ";
ret += ""+"min_maps = " + get_min_maps() +", ";
ret += ""+"backing_store = " + get_backing_store() +", ";
ret += ""+"save_unders = " + get_save_unders() +", ";
ret += ""+"root_input_mask = " + get_root_input_mask() +", ";
return ret;
}
}