< prev index next >

src/java.desktop/share/native/libawt/java2d/loops/ProcessPath.h

Print this page


   1 /*
   2  * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  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


  75 /* Constants representing KEY_STROKE_CONTROL rendering hints */
  76 typedef enum {
  77     PH_STROKE_PURE,   /* RenderingHints.VALUE_STROKE_PURE    */
  78     PH_STROKE_DEFAULT /* RenderingHints.VALUE_STROKE_DEFAULT */
  79 } PHStroke;
  80 
  81 typedef struct _ProcessHandler {
  82     void (*pProcessFixedLine)(struct _ProcessHandler* hnd,
  83                               jint x1,jint y1,
  84                               jint x2,jint y2, jint* pixelInfo,
  85                               jboolean checkBounds,
  86                               jboolean endSubPath);
  87     void (*pProcessEndSubPath)(struct _ProcessHandler* hnd);
  88     DrawHandler* dhnd;
  89     PHStroke stroke;
  90     PHClip clipMode;
  91     void* pData;
  92 } ProcessHandler;
  93 
  94 
  95 jboolean doDrawPath(DrawHandler* hnd,

  96                     void (*pProcessEndSubPath)(ProcessHandler* hnd),
  97                     jint transX, jint transY,
  98                     jfloat* coords, jint maxCoords,
  99                     jbyte* types, jint numTypes,
 100                     PHStroke stroke);
 101 
 102 jboolean doFillPath(DrawHandler* hnd,

 103                     jint transX, jint transY,
 104                     jfloat* coords, jint maxCoords,
 105                     jbyte* types, jint numTypes,
 106                     PHStroke stroke,
 107                     jint fillRule);
 108 
 109 #endif
   1 /*
   2  * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  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


  75 /* Constants representing KEY_STROKE_CONTROL rendering hints */
  76 typedef enum {
  77     PH_STROKE_PURE,   /* RenderingHints.VALUE_STROKE_PURE    */
  78     PH_STROKE_DEFAULT /* RenderingHints.VALUE_STROKE_DEFAULT */
  79 } PHStroke;
  80 
  81 typedef struct _ProcessHandler {
  82     void (*pProcessFixedLine)(struct _ProcessHandler* hnd,
  83                               jint x1,jint y1,
  84                               jint x2,jint y2, jint* pixelInfo,
  85                               jboolean checkBounds,
  86                               jboolean endSubPath);
  87     void (*pProcessEndSubPath)(struct _ProcessHandler* hnd);
  88     DrawHandler* dhnd;
  89     PHStroke stroke;
  90     PHClip clipMode;
  91     void* pData;
  92 } ProcessHandler;
  93 
  94 
  95 JNIEXPORT jboolean JNICALL
  96 doDrawPath(DrawHandler* hnd,
  97            void (*pProcessEndSubPath)(ProcessHandler* hnd),
  98            jint transX, jint transY,
  99            jfloat* coords, jint maxCoords,
 100            jbyte* types, jint numTypes,
 101            PHStroke stroke);
 102 
 103 JNIEXPORT jboolean JNICALL
 104 doFillPath(DrawHandler* hnd,
 105            jint transX, jint transY,
 106            jfloat* coords, jint maxCoords,
 107            jbyte* types, jint numTypes,
 108            PHStroke stroke,
 109            jint fillRule);
 110 
 111 #endif
< prev index next >