001 package org.bridj.jawt;
002 import org.bridj.Callback;
003 import org.bridj.Pointer;
004 import org.bridj.StructObject;
005 import org.bridj.ann.Field;
006 import org.bridj.ann.Library;
007 import org.bridj.ann.Convention;
008 /**
009 * <i>native declaration : jawt.h</i><br>
010 * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
011 * 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>
012 * For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> or <a href="http://bridj.googlecode.com/">BridJ</a> .
013 */
014 @Library("jawt")
015 @Convention(Convention.Style.StdCall)
016 public class JAWT_DrawingSurface extends StructObject {
017 /**
018 * Cached reference to the Java environment of the calling thread.<br>
019 * If Lock(), Unlock(), GetDrawingSurfaceInfo() or<br>
020 * FreeDrawingSurfaceInfo() are called from a different thread,<br>
021 * this data member should be set before calling those functions.<br>
022 * C type : JNIEnv*
023 */
024 @Field(0)
025 public Pointer env() {
026 return this.io.getPointerField(this, 0);
027 }
028 /**
029 * Cached reference to the target object<br>
030 * C type : void*
031 */
032 @Field(1)
033 public Pointer target() {
034 return this.io.getPointerField(this, 1);
035 }
036 @Field(2)
037 public Pointer<Lock_callback> Lock() {
038 return this.io.getPointerField(this, 2);
039 }
040 @Field(3)
041 public Pointer<GetDrawingSurfaceInfo_callback> GetDrawingSurfaceInfo() {
042 return this.io.getPointerField(this, 3);
043 }
044 @Field(4)
045 public Pointer<FreeDrawingSurfaceInfo_callback> FreeDrawingSurfaceInfo() {
046 return this.io.getPointerField(this, 4);
047 }
048 @Field(5)
049 public Pointer<Unlock_callback> Unlock() {
050 return this.io.getPointerField(this, 5);
051 }
052
053 /// Conversion Error : Lock_callback (Unsupported type)
054 /// Conversion Error : GetDrawingSurfaceInfo_callback (Unsupported type)
055 /// Conversion Error : FreeDrawingSurfaceInfo_callback (Unsupported type)
056 /// Conversion Error : Unlock_callback (Unsupported type)
057 /// <i>native declaration : jawt.h:187</i>
058 public static abstract class Lock_callback extends Callback {
059 public abstract int invoke(Pointer<JAWT_DrawingSurface > ds);
060 };
061 /// <i>native declaration : jawt.h:198</i>
062 public static abstract class GetDrawingSurfaceInfo_callback extends Callback {
063 public abstract Pointer<org.bridj.jawt.JAWT_DrawingSurfaceInfo > invoke(Pointer<JAWT_DrawingSurface > ds);
064 };
065 /// <i>native declaration : jawt.h:203</i>
066 public static abstract class FreeDrawingSurfaceInfo_callback extends Callback {
067 public abstract void invoke(Pointer<org.bridj.jawt.JAWT_DrawingSurfaceInfo > dsi);
068 };
069 /// <i>native declaration : jawt.h:208</i>
070 public static abstract class Unlock_callback extends Callback {
071 public abstract void invoke(Pointer<JAWT_DrawingSurface > ds);
072 };
073 }