Beispiel #1
0
 public android.graphics.Region getTransparentRegion(android.graphics.Rect location
                                                     )
 {
     android.graphics.Region.NativeRegion r = nativeGetTransparentRegion(mBitmap.nativeInstance
                                                                         , mChunk, location);
     return(r != null ? new android.graphics.Region(r) : null);
 }
Beispiel #2
0
 internal Region(android.graphics.Region.NativeRegion ni_1)
 {
     if (ni_1 == null)
     {
         throw new java.lang.RuntimeException();
     }
     mNativeRegion = ni_1;
 }
Beispiel #3
0
 private static bool nativeOp(android.graphics.Region.NativeRegion native_dst, android.graphics.Rect
                              rect, android.graphics.Region.NativeRegion native_region, int op_1)
 {
     System.IntPtr rect_ptr = System.IntPtr.Zero;
     try
     {
         rect_ptr = android.graphics.Rect.Rect_Helper.ManagedToNative(rect);
         return(libxobotos_Region_rectOp(native_dst, rect_ptr, native_region, op_1));
     }
     finally
     {
         android.graphics.Rect.Rect_Helper.FreeManagedPtr(rect_ptr);
     }
 }
Beispiel #4
0
 private static bool nativeGetBounds(android.graphics.Region.NativeRegion native_region
                                     , android.graphics.Rect rect)
 {
     System.IntPtr rect_ptr = System.IntPtr.Zero;
     try
     {
         rect_ptr = android.graphics.Rect.Rect_Helper.ManagedToNative(rect);
         bool _retval = libxobotos_Region_getBounds(native_region, rect_ptr);
         android.graphics.Rect.Rect_Helper.MarshalOut(rect_ptr, rect);
         return(_retval);
     }
     finally
     {
         android.graphics.Rect.Rect_Helper.FreeManagedPtr(rect_ptr);
     }
 }
Beispiel #5
0
 private static bool nativeSetPath(android.graphics.Region.NativeRegion native_dst
                                   , android.graphics.Path.NativePath native_path, android.graphics.Region.NativeRegion
                                   native_clip)
 {
     return(libxobotos_Region_setPath(native_dst, native_path, native_clip));
 }
Beispiel #6
0
 private static extern bool libxobotos_Region_setPath(android.graphics.Region.NativeRegion
                                                      native_dst, android.graphics.Path.NativePath native_path, android.graphics.Region.NativeRegion
                                                      native_clip);
Beispiel #7
0
 private static extern bool libxobotos_Region_contains(android.graphics.Region.NativeRegion
                                                       _instance, int x, int y);
Beispiel #8
0
 private static extern void libxobotos_Region_translate(android.graphics.Region.NativeRegion
                                                        _instance, int dx, int dy, android.graphics.Region.NativeRegion dst);
Beispiel #9
0
 private static extern bool libxobotos_Region_rectOp(android.graphics.Region.NativeRegion
                                                     native_dst, System.IntPtr rect, android.graphics.Region.NativeRegion native_region
                                                     , int op_1);
Beispiel #10
0
 private static extern bool libxobotos_Region_recOp(android.graphics.Region.NativeRegion
                                                    native_dst, int left, int top, int right, int bottom, int op_1);
Beispiel #11
0
 private static extern bool libxobotos_Region_getBoundaryPath(android.graphics.Region.NativeRegion
                                                              native_region, android.graphics.Path.NativePath native_path);
Beispiel #12
0
 private static bool nativeEquals(android.graphics.Region.NativeRegion native_r1,
                                  android.graphics.Region.NativeRegion native_r2)
 {
     return(libxobotos_Region_equals(native_r1, native_r2));
 }
Beispiel #13
0
 private static extern bool libxobotos_Region_equals(android.graphics.Region.NativeRegion
                                                     native_r1, android.graphics.Region.NativeRegion native_r2);
Beispiel #14
0
 private Region(android.graphics.Region.NativeRegion ni_1, android.graphics.Region.NativeRegion
                dummy) : this(ni_1)
 {
 }
Beispiel #15
0
 private static extern bool libxobotos_Region_quickRejectRect(android.graphics.Region.NativeRegion
                                                              _instance, int left, int top, int right, int bottom);
Beispiel #16
0
 /// <summary>Return a region set to the specified rectangle</summary>
 public Region(int left, int top, int right, int bottom)
 {
     mNativeRegion = nativeConstructor();
     nativeSetRect(mNativeRegion, left, top, right, bottom);
 }
Beispiel #17
0
 /// <summary>Return a region set to the specified rectangle</summary>
 public Region(android.graphics.Rect r)
 {
     mNativeRegion = nativeConstructor();
     nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom);
 }
Beispiel #18
0
 private static extern void libxobotos_Region_scale(android.graphics.Region.NativeRegion
                                                    _instance, float scale_1, android.graphics.Region.NativeRegion dst);
Beispiel #19
0
 private static extern bool libxobotos_Region_getBounds(android.graphics.Region.NativeRegion
                                                        native_region, System.IntPtr rect);
Beispiel #20
0
 private static void nativeDestructor(android.graphics.Region.NativeRegion native_region
                                      )
 {
     native_region.Dispose();
 }
Beispiel #21
0
 private static extern bool libxobotos_Region_op(android.graphics.Region.NativeRegion
                                                 native_dst, android.graphics.Region.NativeRegion native_region1, android.graphics.Region.NativeRegion
                                                 native_region2, int op_1);
Beispiel #22
0
 private static bool nativeGetBoundaryPath(android.graphics.Region.NativeRegion native_region
                                           , android.graphics.Path.NativePath native_path)
 {
     return(libxobotos_Region_getBoundaryPath(native_region, native_path));
 }
Beispiel #23
0
 private static extern bool libxobotos_Region_isRect(android.graphics.Region.NativeRegion
                                                     _instance);
Beispiel #24
0
 private static bool nativeOp(android.graphics.Region.NativeRegion native_dst, int
                              left, int top, int right, int bottom, int op_1)
 {
     return(libxobotos_Region_recOp(native_dst, left, top, right, bottom, op_1));
 }
Beispiel #25
0
		/// <summary>Return a region set to the specified rectangle</summary>
		public Region(int left, int top, int right, int bottom)
		{
			mNativeRegion = nativeConstructor();
			nativeSetRect(mNativeRegion, left, top, right, bottom);
		}
Beispiel #26
0
 private static extern bool libxobotos_Region_setRegion(android.graphics.Region.NativeRegion
                                                        native_dst, android.graphics.Region.NativeRegion native_src);
Beispiel #27
0
 private static extern bool libxobotos_Region_quickReject(android.graphics.Region.NativeRegion
                                                          _instance, android.graphics.Region.NativeRegion rgn);
Beispiel #28
0
 private static bool nativeOp(android.graphics.Region.NativeRegion native_dst, android.graphics.Region.NativeRegion
                              native_region1, android.graphics.Region.NativeRegion native_region2, int op_1)
 {
     return(libxobotos_Region_op(native_dst, native_region1, native_region2, op_1));
 }
Beispiel #29
0
 private static bool nativeSetRegion(android.graphics.Region.NativeRegion native_dst
                                     , android.graphics.Region.NativeRegion native_src)
 {
     return(libxobotos_Region_setRegion(native_dst, native_src));
 }
Beispiel #30
0
		/// <summary>Return a region set to the specified rectangle</summary>
		public Region(android.graphics.Rect r)
		{
			mNativeRegion = nativeConstructor();
			nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom);
		}
Beispiel #31
0
 private static extern bool libxobotos_Region_setRect(android.graphics.Region.NativeRegion
                                                      native_dst, int left, int top, int right, int bottom);
Beispiel #32
0
		internal Region(android.graphics.Region.NativeRegion ni_1)
		{
			if (ni_1 == null)
			{
				throw new java.lang.RuntimeException();
			}
			mNativeRegion = ni_1;
		}
Beispiel #33
0
 private static bool nativeSetRect(android.graphics.Region.NativeRegion native_dst
                                   , int left, int top, int right, int bottom)
 {
     return(libxobotos_Region_setRect(native_dst, left, top, right, bottom));
 }