Example #1
0
 private static bool native_getSegment(android.graphics.PathMeasure.NativePathMeasure
                                       native_instance, float startD, float stopD, android.graphics.Path.NativePath native_path
                                       , bool startWithMoveTo)
 {
     return(libxobotos_PathMeasure_getSegment(native_instance, startD, stopD, native_path
                                              , startWithMoveTo));
 }
Example #2
0
 private static bool native_getMatrix(android.graphics.PathMeasure.NativePathMeasure
                                      native_instance, float distance, android.graphics.Matrix.NativeMatrix native_matrix
                                      , int flags)
 {
     return(libxobotos_PathMeasure_getMatrix(native_instance, distance, native_matrix,
                                             flags));
 }
Example #3
0
 private static bool native_getPosTan(android.graphics.PathMeasure.NativePathMeasure
                                      native_instance, float distance, float[] pos, float[] tan)
 {
     Sharpen.INativeHandle pos_handle = null;
     Sharpen.INativeHandle tan_handle = null;
     try
     {
         pos_handle = XobotOS.Runtime.MarshalGlue.Array_float_Helper.GetPinnedPtr(pos);
         tan_handle = XobotOS.Runtime.MarshalGlue.Array_float_Helper.GetPinnedPtr(tan);
         return(libxobotos_PathMeasure_getPosTan(native_instance, distance, pos_handle !=
                                                 null ? pos_handle.Address : System.IntPtr.Zero, tan_handle != null ? tan_handle.
                                                 Address : System.IntPtr.Zero));
     }
     finally
     {
         if (pos_handle != null)
         {
             pos_handle.Free();
         }
         if (tan_handle != null)
         {
             tan_handle.Free();
         }
     }
 }
Example #4
0
 private static void native_setPath(android.graphics.PathMeasure.NativePathMeasure
                                    native_instance, android.graphics.Path.NativePath native_path, bool forceClosed
                                    )
 {
     libxobotos_PathMeasure_setPath(native_instance, native_path != null ? native_path
                          : android.graphics.Path.NativePath.Zero, forceClosed);
 }
Example #5
0
 private static void native_destroy(android.graphics.PathMeasure.NativePathMeasure
                                    native_instance)
 {
     native_instance.Dispose();
 }
Example #6
0
 private static bool native_nextContour(android.graphics.PathMeasure.NativePathMeasure
                                        native_instance)
 {
     return(libxobotos_PathMeasure_isClosed_0(native_instance));
 }
Example #7
0
 private static extern bool libxobotos_PathMeasure_isClosed_0(android.graphics.PathMeasure.NativePathMeasure
                                                              native_instance);
Example #8
0
 private static extern bool libxobotos_PathMeasure_getSegment(android.graphics.PathMeasure.NativePathMeasure
                                                              native_instance, float startD, float stopD, android.graphics.Path.NativePath native_path
                                                              , bool startWithMoveTo);
Example #9
0
 private static extern bool libxobotos_PathMeasure_getMatrix(android.graphics.PathMeasure.NativePathMeasure
                                                             native_instance, float distance, android.graphics.Matrix.NativeMatrix native_matrix
                                                             , int flags);
Example #10
0
 private static extern bool libxobotos_PathMeasure_getPosTan(android.graphics.PathMeasure.NativePathMeasure
                                                             native_instance, float distance, System.IntPtr pos, System.IntPtr tan);
Example #11
0
 private static float native_getLength(android.graphics.PathMeasure.NativePathMeasure
                                       native_instance)
 {
     return(libxobotos_PathMeasure_getLength(native_instance));
 }
Example #12
0
 private static extern float libxobotos_PathMeasure_getLength(android.graphics.PathMeasure.NativePathMeasure
                                                              native_instance);
Example #13
0
 private static extern void libxobotos_PathMeasure_setPath(android.graphics.PathMeasure.NativePathMeasure
                                                           native_instance, android.graphics.Path.NativePath native_path, bool forceClosed
                                                           );