src/java.desktop/unix/classes/sun/awt/X11/XTranslateCoordinates.java

Print this page
rev 12972 : 8140606: Update library code to use internal Unsafe
Reviewed-by: duke


  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 // This file is an automatically generated file, please do not edit this file, modify the WrapperGenerator.java file instead !
  27 
  28 package sun.awt.X11;
  29 
  30 import sun.misc.Unsafe;
  31 
  32 public class XTranslateCoordinates {
  33         private static Unsafe unsafe = XlibWrapper.unsafe;
  34         private boolean __executed = false;
  35         long _scr_w;
  36         long _dest_w;
  37         int _src_x;
  38         int _src_y;
  39         long dest_x_ptr = unsafe.allocateMemory(Native.getIntSize());
  40         long dest_y_ptr = unsafe.allocateMemory(Native.getIntSize());
  41         long child_ptr = unsafe.allocateMemory(Native.getLongSize());
  42         public XTranslateCoordinates(
  43                 long scr_w,
  44                 long dest_w,
  45                 int src_x,
  46                 int src_y       )
  47         {
  48                 set_scr_w(scr_w);
  49                 set_dest_w(dest_w);
  50                 set_src_x(src_x);




  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 // This file is an automatically generated file, please do not edit this file, modify the WrapperGenerator.java file instead !
  27 
  28 package sun.awt.X11;
  29 
  30 import jdk.internal.misc.Unsafe;
  31 
  32 public class XTranslateCoordinates {
  33         private static Unsafe unsafe = XlibWrapper.unsafe;
  34         private boolean __executed = false;
  35         long _scr_w;
  36         long _dest_w;
  37         int _src_x;
  38         int _src_y;
  39         long dest_x_ptr = unsafe.allocateMemory(Native.getIntSize());
  40         long dest_y_ptr = unsafe.allocateMemory(Native.getIntSize());
  41         long child_ptr = unsafe.allocateMemory(Native.getLongSize());
  42         public XTranslateCoordinates(
  43                 long scr_w,
  44                 long dest_w,
  45                 int src_x,
  46                 int src_y       )
  47         {
  48                 set_scr_w(scr_w);
  49                 set_dest_w(dest_w);
  50                 set_src_x(src_x);