Class UIJNI

java.lang.Object
javaforce.jni.UIJNI
All Implemented Interfaces:
UIAPI

public class UIJNI extends Object implements UIAPI
  • Field Details

  • Constructor Details

    • UIJNI

      public UIJNI()
  • Method Details

    • getInstance

      public static UIAPI getInstance()
    • uiLoadFont

      public int uiLoadFont(byte[] font, int ptSize, int[] fontinfo, int[] coords, int[] adv, int[] cps, byte[] pixels, int px, int py)
      Specified by:
      uiLoadFont in interface UIAPI
    • uiLoadPNG

      public int[] uiLoadPNG(byte[] data, int[] dim)
      Specified by:
      uiLoadPNG in interface UIAPI
    • uiSavePNG

      public byte[] uiSavePNG(int[] pixels, int width, int height)
      Specified by:
      uiSavePNG in interface UIAPI
    • uiLoadJPG

      public int[] uiLoadJPG(byte[] data, int[] dim)
      Specified by:
      uiLoadJPG in interface UIAPI
    • uiSaveJPG

      public byte[] uiSaveJPG(int[] pixels, int width, int height, int quality)
      Specified by:
      uiSaveJPG in interface UIAPI
    • uiInit

      public boolean uiInit()
      Specified by:
      uiInit in interface UIAPI
    • uiWindowCreate

      public long uiWindowCreate(int style, String title, int width, int height, Window eventMgr, long shared)
      Specified by:
      uiWindowCreate in interface UIAPI
    • uiWindowDestroy

      public void uiWindowDestroy(long id)
      Specified by:
      uiWindowDestroy in interface UIAPI
    • uiWindowSetCurrent

      public void uiWindowSetCurrent(long id)
      Specified by:
      uiWindowSetCurrent in interface UIAPI
    • uiWindowSetIcon

      public void uiWindowSetIcon(long id, String icon, int x, int y)
      Specified by:
      uiWindowSetIcon in interface UIAPI
    • uiPollEvents

      public void uiPollEvents(int wait)
      Specified by:
      uiPollEvents in interface UIAPI
    • uiPostEvent

      public void uiPostEvent()
      Specified by:
      uiPostEvent in interface UIAPI
    • uiWindowShow

      public void uiWindowShow(long id)
      Specified by:
      uiWindowShow in interface UIAPI
    • uiWindowHide

      public void uiWindowHide(long id)
      Specified by:
      uiWindowHide in interface UIAPI
    • uiWindowSwap

      public void uiWindowSwap(long id)
      Specified by:
      uiWindowSwap in interface UIAPI
    • uiWindowHideCursor

      public void uiWindowHideCursor(long id)
      Specified by:
      uiWindowHideCursor in interface UIAPI
    • uiWindowShowCursor

      public void uiWindowShowCursor(long id)
      Specified by:
      uiWindowShowCursor in interface UIAPI
    • uiWindowLockCursor

      public void uiWindowLockCursor(long id)
      Specified by:
      uiWindowLockCursor in interface UIAPI
    • uiWindowGetPos

      public void uiWindowGetPos(long id, int[] pos)
      Specified by:
      uiWindowGetPos in interface UIAPI
    • uiWindowSetPos

      public void uiWindowSetPos(long id, int x, int y)
      Specified by:
      uiWindowSetPos in interface UIAPI