home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / sdkjava40.exe / data1.cab / fg_Samples / Samples / COM / CustomMarshal / rect / RectMarshaler.java < prev   
Encoding:
Java Source  |  2000-05-04  |  1.1 KB  |  43 lines

  1. //=====================================================================
  2. // (C) Copyright 1995 - 1999 Microsoft Corporation.  All rights reserved.
  3. //=====================================================================
  4.  
  5. import com.ms.com.CustomLib;
  6. import java.awt.Rectangle;
  7.  
  8. public class RectMarshaler {
  9.  
  10.  
  11.     public static int cbByValSize = 16; //sizeof(RECT)
  12.  
  13.  
  14.     // TODO: This field can normally be set to zero.
  15.     public static int CustomFlags = 0;
  16.  
  17.  
  18.     public static native Rectangle toJava(int ppETYPE, int flags);
  19.  
  20.     public static native void copyToExternal(Rectangle javaval,
  21.                                              int   ppETYPE,
  22.                                              int   flags);
  23.  
  24.  
  25.  
  26.  
  27.  
  28.     public static native void toExternal(Rectangle javaval,
  29.                                          int   flags,
  30.                                          int ppETYPE);
  31.     public static native void releaseExternal(int ppETYPE,
  32.                                               int flags);
  33.  
  34.  
  35.     private static native void classInit();
  36.  
  37.  
  38.     static {
  39.         System.loadLibrary("RectMarshaler");
  40.         classInit();
  41.     }
  42. }
  43.