001 package org.bridj.jawt;
002 import org.bridj.BridJ;
003 import org.bridj.CRuntime;
004 import org.bridj.Pointer;
005 import org.bridj.TypedPointer;
006 import org.bridj.ann.Library;
007 import org.bridj.ann.Runtime;
008 import org.bridj.Platform;
009 import java.io.File;
010 /**
011 * Wrapper for library <b>jawt</b><br>
012 * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
013 * 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>
014 * For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> or <a href="http://bridj.googlecode.com/">BridJ</a> .
015 */
016 @Library("jawt")
017 @Runtime(CRuntime.class)
018 public class JawtLibrary {
019 static {
020 try {
021 //if (Platform.isLinux())
022 // SystemBridJ.getNativeLibrary("headless/libmawt");
023 } catch (Throwable th) {}
024 BridJ.register();
025 }
026 /// <i>native declaration : jawt.h</i>
027 public static final int JAWT_LOCK_CLIP_CHANGED = 2;
028 /// <i>native declaration : jawt.h</i>
029 public static final int JAWT_VERSION_1_4 = 65540;
030 /// <i>native declaration : jawt.h</i>
031 public static final int JAWT_VERSION_1_3 = 65539;
032 /// <i>native declaration : jawt.h</i>
033 public static final int JAWT_LOCK_SURFACE_CHANGED = 8;
034 /// <i>native declaration : jawt.h</i>
035 public static final int JAWT_LOCK_ERROR = 1;
036 /// <i>native declaration : jawt.h</i>
037 public static final int JAWT_LOCK_BOUNDS_CHANGED = 4;
038 public native static boolean JAWT_GetAWT(Pointer<JawtLibrary.JNIEnv > env, Pointer<org.bridj.jawt.JAWT > awt);
039 /// Pointer to unknown (opaque) type
040 public static class JNIEnv extends TypedPointer {
041 public JNIEnv(long address) {
042 super(address);
043 }
044 public JNIEnv(Pointer address) {
045 super(address);
046 }
047 };
048 }