001 package org.bridj.jawt;
002 import org.bridj.Pointer;
003 import org.bridj.StructObject;
004 import org.bridj.ann.Field;
005 import org.bridj.ann.Library;
006 /**
007 * <i>native declaration : jawt.h</i><br>
008 * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
009 * a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
010 * For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> or <a href="http://bridj.googlecode.com/">BridJ</a> .
011 */
012 @Library("jawt")
013 public class JAWT_DrawingSurfaceInfo extends StructObject {
014 /**
015 * Pointer to the platform-specific information. This can be safely<br>
016 * cast to a JAWT_Win32DrawingSurfaceInfo on Windows or a<br>
017 * JAWT_X11DrawingSurfaceInfo on Solaris. See jawt_md.h for details.<br>
018 * C type : void*
019 */
020 @Field(0)
021 public Pointer platformInfo() {
022 return this.io.getPointerField(this, 0);
023 }
024 /**
025 * Cached pointer to the underlying drawing surface<br>
026 * C type : jawt_DrawingSurface*
027 */
028 @Field(1)
029 public Pointer ds() {
030 return this.io.getPointerField(this, 1);
031 }
032 /**
033 * Bounding rectangle of the drawing surface<br>
034 * C type : JAWT_Rectangle
035 */
036 @Field(2)
037 public org.bridj.jawt.JAWT_Rectangle bounds() {
038 return this.io.getNativeObjectField(this, 2);
039 }
040 /// Number of rectangles in the clip
041 @Field(3)
042 public int clipSize() {
043 return this.io.getIntField(this, 3);
044 }
045 /**
046 * Clip rectangle array<br>
047 * C type : JAWT_Rectangle*
048 */
049 @Field(4)
050 public org.bridj.jawt.JAWT_Rectangle clip() {
051 return this.io.getNativeObjectField(this, 4);
052 }
053 }