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.jawt.JawtLibrary.JNIEnv;
008 import org.bridj.ann.Convention;
009 /**
010 * <i>native declaration : jawt.h</i><br>
011 * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
012 * 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>
013 * For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> or <a href="http://bridj.googlecode.com/">BridJ</a> .
014 */
015 @Library("jawt")
016 @Convention(Convention.Style.StdCall)
017 public class JAWT extends StructObject {
018 /**
019 * Version of this structure. This must always be set before<br>
020 * calling JAWT_GetAWT()
021 */
022 @Field(0)
023 public int version() {
024 return this.io.getIntField(this, 0);
025 }
026 /**
027 * Version of this structure. This must always be set before<br>
028 * calling JAWT_GetAWT()
029 */
030 @Field(0)
031 public JAWT version(int version) {
032 this.io.setIntField(this, 0, version);
033 return this;
034 }
035
036 @Field(1)
037 public Pointer<GetDrawingSurface_callback> GetDrawingSurface() {
038 return this.io.getPointerField(this, 1);
039 }
040 @Field(2)
041 public Pointer<FreeDrawingSurface_callback> FreeDrawingSurface() {
042 return this.io.getPointerField(this, 2);
043 }
044 @Field(3)
045 public Pointer<Lock_callback> Lock() {
046 return this.io.getPointerField(this, 3);
047 }
048 @Field(4)
049 public Pointer<Unlock_callback> Unlock() {
050 return this.io.getPointerField(this, 4);
051 }
052 @Field(5)
053 public Pointer<GetComponent_callback> GetComponent() {
054 return this.io.getPointerField(this, 5);
055 }
056
057 public static abstract class GetDrawingSurface_callback extends Callback {
058 public abstract Pointer<org.bridj.jawt.JAWT_DrawingSurface > invoke(Pointer<JNIEnv > env, Pointer<? > target);
059 };
060 /// <i>native declaration : jawt.h:236</i>
061 public static abstract class FreeDrawingSurface_callback extends Callback {
062 public abstract void invoke(Pointer<org.bridj.jawt.JAWT_DrawingSurface > ds);
063 };
064 /// <i>native declaration : jawt.h:242</i>
065 public static abstract class Lock_callback extends Callback {
066 public abstract void invoke(Pointer<JNIEnv > env);
067 };
068 /// <i>native declaration : jawt.h:247</i>
069 public static abstract class Unlock_callback extends Callback {
070 public abstract void invoke(Pointer<JNIEnv > env);
071 };
072 /// <i>native declaration : jawt.h:259</i>
073 public static abstract class GetComponent_callback extends Callback {
074 public abstract Pointer<? > invoke(Pointer<JNIEnv > env, Pointer<? > platformInfo);
075 };
076 }