javauis/eswt_akn/org.eclipse.ercp.swt.s60/src/org/eclipse/swt/internal/symbian/OS.java
branchRCL_3
changeset 17 0fd27995241b
parent 14 04becd199f91
child 24 6c158198356e
equal deleted inserted replaced
15:f9bb0fca356a 17:0fd27995241b
    19 
    19 
    20 
    20 
    21 /**
    21 /**
    22  * @brief This is the place where all native functions are located.
    22  * @brief This is the place where all native functions are located.
    23  *
    23  *
    24  * This class is not supposed to be instanciated as it only contains static
    24  * This class is not supposed to be instantiated as it only contains static
    25  * methods. <b>Warning</b>: the content of this class is platform dependent.
    25  * methods. <b>Warning</b>: the content of this class is platform dependent.
    26  */
    26  */
    27 public class OS
    27 public class OS
    28 {
    28 {
    29 
    29 
    30     // Load the DLL needed for the JNIs
    30     // Load the DLL needed for the JNIs
    31     static
    31     static
    32     {
    32     {
    33         Library.loadLibrary("eswt");
    33         Library.loadLibrary("eswt");
    34     }
    34     }
       
    35     
       
    36     public static final int WS_SYMBIAN_S60_50 = 1;
       
    37     public static final int WS_SYMBIAN_S60_92 = 2;
       
    38 
       
    39     // Underlying window server.
       
    40     public static final int windowServer = windowServer();
    35 
    41 
    36     /*
    42     /*
    37      * Class Device
    43      * Class Device
    38      */
    44      */
    39     public static final native Rectangle Device_GetBounds(int handle);
    45     public static final native Rectangle Device_GetBounds(int handle);
   299     public static final native Shell[] Shell_GetShells(int handle);
   305     public static final native Shell[] Shell_GetShells(int handle);
   300     public static final native void Shell_SetMinimumSize(int shellHandle, int width, int height);
   306     public static final native void Shell_SetMinimumSize(int shellHandle, int width, int height);
   301     public static final native void Shell_SetImeInputMode(int shellHandle, int mode);
   307     public static final native void Shell_SetImeInputMode(int shellHandle, int mode);
   302     public static final native Rectangle Shell_GetDefaultBounds(int shellHandle);
   308     public static final native Rectangle Shell_GetDefaultBounds(int shellHandle);
   303     public static final native void Shell_SetAsyncPainting(int shellHandle, boolean status);
   309     public static final native void Shell_SetAsyncPainting(int shellHandle, boolean status);
       
   310     public static final native void Shell_SetTaskTip(int shellHandle);
   304 
   311 
   305     /*
   312     /*
   306      * Class Label
   313      * Class Label
   307      */
   314      */
   308     public static final native int Label_ControlHandle(int handle);
   315     public static final native int Label_ControlHandle(int handle);
   479     public static final native void ImageDataLoader_AppendData(int handle, byte[] buffer);
   486     public static final native void ImageDataLoader_AppendData(int handle, byte[] buffer);
   480     public static final native ImageData[] ImageDataLoader_GetImageData(int handle);
   487     public static final native ImageData[] ImageDataLoader_GetImageData(int handle);
   481     public static final native int ImageDataLoader_GetLogicalScreenHeight(int handle);
   488     public static final native int ImageDataLoader_GetLogicalScreenHeight(int handle);
   482     public static final native int ImageDataLoader_GetLogicalScreenWidth(int handle);
   489     public static final native int ImageDataLoader_GetLogicalScreenWidth(int handle);
   483 
   490 
       
   491     /*
       
   492      * General
       
   493      */
       
   494     private static final native int windowServer();
   484 }
   495 }