[−]Struct jni_android_sys::android::graphics::Canvas
public class Canvas
Required feature: "android-graphics-Canvas"
Methods
impl Canvas
pub fn new<'env>(
__jni_env: &'env Env
) -> Result<Local<'env, Canvas>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Local<'env, Canvas>, Local<'env, Throwable>>
pub fn new_Bitmap<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Bitmap>>
) -> Result<Local<'env, Canvas>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Bitmap>>
) -> Result<Local<'env, Canvas>, Local<'env, Throwable>>
Required features: "android-graphics-Bitmap"
pub fn isHardwareAccelerated<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn setBitmap<'env>(
&'env self,
arg0: impl Into<Option<&'env Bitmap>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Bitmap>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Bitmap"
pub fn isOpaque<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn getWidth<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getHeight<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getDensity<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn setDensity<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getMaximumBitmapWidth<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getMaximumBitmapHeight<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn save<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn saveLayer_RectF_Paint_int<'env>(
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: impl Into<Option<&'env Paint>>,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: impl Into<Option<&'env Paint>>,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-graphics-Paint", "android-graphics-RectF"
pub fn saveLayer_RectF_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-graphics-Paint", "android-graphics-RectF"
pub fn saveLayer_float_float_float_float_Paint_int<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Paint>>,
arg5: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Paint>>,
arg5: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn saveLayer_float_float_float_float_Paint<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Paint>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Paint>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn saveLayerAlpha_RectF_int_int<'env>(
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: i32,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: i32,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-graphics-RectF"
pub fn saveLayerAlpha_RectF_int<'env>(
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-graphics-RectF"
pub fn saveLayerAlpha_float_float_float_float_int_int<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: i32,
arg5: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: i32,
arg5: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn saveLayerAlpha_float_float_float_float_int<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn restore<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn getSaveCount<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn restoreToCount<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn translate<'env>(
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
pub fn scale_float_float<'env>(
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
pub fn scale_float_float_float_float<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32
) -> Result<(), Local<'env, Throwable>>
pub fn rotate_float<'env>(
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
pub fn rotate_float_float_float<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32
) -> Result<(), Local<'env, Throwable>>
pub fn skew<'env>(
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
pub fn concat<'env>(
&'env self,
arg0: impl Into<Option<&'env Matrix>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Matrix>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Matrix"
pub fn setMatrix<'env>(
&'env self,
arg0: impl Into<Option<&'env Matrix>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Matrix>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Matrix"
pub fn getMatrix_Matrix<'env>(
&'env self,
arg0: impl Into<Option<&'env Matrix>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Matrix>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Matrix"
pub fn getMatrix<'env>(
&'env self
) -> Result<Option<Local<'env, Matrix>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Matrix>>, Local<'env, Throwable>>
Required features: "android-graphics-Matrix"
pub fn clipRect_RectF_Op<'env>(
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: impl Into<Option<&'env Region_Op>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: impl Into<Option<&'env Region_Op>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-RectF", "android-graphics-Region_Op"
pub fn clipRect_Rect_Op<'env>(
&'env self,
arg0: impl Into<Option<&'env Rect>>,
arg1: impl Into<Option<&'env Region_Op>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Rect>>,
arg1: impl Into<Option<&'env Region_Op>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-Rect", "android-graphics-Region_Op"
pub fn clipRect_RectF<'env>(
&'env self,
arg0: impl Into<Option<&'env RectF>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RectF>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-RectF"
pub fn clipOutRect_RectF<'env>(
&'env self,
arg0: impl Into<Option<&'env RectF>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RectF>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-RectF"
pub fn clipRect_Rect<'env>(
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-Rect"
pub fn clipOutRect_Rect<'env>(
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-Rect"
pub fn clipRect_float_float_float_float_Op<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Region_Op>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Region_Op>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-Region_Op"
pub fn clipRect_float_float_float_float<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32
) -> Result<bool, Local<'env, Throwable>>
pub fn clipOutRect_float_float_float_float<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32
) -> Result<bool, Local<'env, Throwable>>
pub fn clipRect_int_int_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn clipOutRect_int_int_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn clipPath_Path_Op<'env>(
&'env self,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Region_Op>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Region_Op>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-Path", "android-graphics-Region_Op"
pub fn clipPath_Path<'env>(
&'env self,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-Path"
pub fn clipOutPath<'env>(
&'env self,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-Path"
pub fn getDrawFilter<'env>(
&'env self
) -> Result<Option<Local<'env, DrawFilter>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, DrawFilter>>, Local<'env, Throwable>>
Required features: "android-graphics-DrawFilter"
pub fn setDrawFilter<'env>(
&'env self,
arg0: impl Into<Option<&'env DrawFilter>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env DrawFilter>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-DrawFilter"
pub fn quickReject_RectF_EdgeType<'env>(
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: impl Into<Option<&'env Canvas_EdgeType>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: impl Into<Option<&'env Canvas_EdgeType>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-Canvas_EdgeType", "android-graphics-RectF"
pub fn quickReject_Path_EdgeType<'env>(
&'env self,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Canvas_EdgeType>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Canvas_EdgeType>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-Canvas_EdgeType", "android-graphics-Path"
pub fn quickReject_float_float_float_float_EdgeType<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Canvas_EdgeType>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Canvas_EdgeType>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-Canvas_EdgeType"
pub fn getClipBounds_Rect<'env>(
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-Rect"
pub fn getClipBounds<'env>(
&'env self
) -> Result<Option<Local<'env, Rect>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Rect>>, Local<'env, Throwable>>
Required features: "android-graphics-Rect"
pub fn drawPicture_Picture<'env>(
&'env self,
arg0: impl Into<Option<&'env Picture>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Picture>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Picture"
pub fn drawPicture_Picture_RectF<'env>(
&'env self,
arg0: impl Into<Option<&'env Picture>>,
arg1: impl Into<Option<&'env RectF>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Picture>>,
arg1: impl Into<Option<&'env RectF>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Picture", "android-graphics-RectF"
pub fn drawPicture_Picture_Rect<'env>(
&'env self,
arg0: impl Into<Option<&'env Picture>>,
arg1: impl Into<Option<&'env Rect>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Picture>>,
arg1: impl Into<Option<&'env Rect>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Picture", "android-graphics-Rect"
pub fn drawArc_RectF_float_float_boolean_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: f32,
arg2: f32,
arg3: bool,
arg4: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: f32,
arg2: f32,
arg3: bool,
arg4: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint", "android-graphics-RectF"
pub fn drawArc_float_float_float_float_float_float_boolean_Paint<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: f32,
arg5: f32,
arg6: bool,
arg7: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: f32,
arg5: f32,
arg6: bool,
arg7: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawARGB<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<(), Local<'env, Throwable>>
pub fn drawBitmap_Bitmap_float_float_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: f32,
arg2: f32,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: f32,
arg2: f32,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Bitmap", "android-graphics-Paint"
pub fn drawBitmap_Bitmap_Rect_RectF_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: impl Into<Option<&'env Rect>>,
arg2: impl Into<Option<&'env RectF>>,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: impl Into<Option<&'env Rect>>,
arg2: impl Into<Option<&'env RectF>>,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Bitmap", "android-graphics-Paint", "android-graphics-Rect", "android-graphics-RectF"
pub fn drawBitmap_Bitmap_Rect_Rect_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: impl Into<Option<&'env Rect>>,
arg2: impl Into<Option<&'env Rect>>,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: impl Into<Option<&'env Rect>>,
arg2: impl Into<Option<&'env Rect>>,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Bitmap", "android-graphics-Paint", "android-graphics-Rect"
pub fn drawBitmap_int_array_int_int_float_float_int_int_boolean_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env IntArray>>,
arg1: i32,
arg2: i32,
arg3: f32,
arg4: f32,
arg5: i32,
arg6: i32,
arg7: bool,
arg8: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env IntArray>>,
arg1: i32,
arg2: i32,
arg3: f32,
arg4: f32,
arg5: i32,
arg6: i32,
arg7: bool,
arg8: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawBitmap_int_array_int_int_int_int_int_int_boolean_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env IntArray>>,
arg1: i32,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: i32,
arg6: i32,
arg7: bool,
arg8: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env IntArray>>,
arg1: i32,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: i32,
arg6: i32,
arg7: bool,
arg8: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawBitmap_Bitmap_Matrix_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: impl Into<Option<&'env Matrix>>,
arg2: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: impl Into<Option<&'env Matrix>>,
arg2: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Bitmap", "android-graphics-Matrix", "android-graphics-Paint"
pub fn drawBitmapMesh<'env>(
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env FloatArray>>,
arg4: i32,
arg5: impl Into<Option<&'env IntArray>>,
arg6: i32,
arg7: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env FloatArray>>,
arg4: i32,
arg5: impl Into<Option<&'env IntArray>>,
arg6: i32,
arg7: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Bitmap", "android-graphics-Paint"
pub fn drawCircle<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawColor_int<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn drawColor_int_Mode<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-PorterDuff_Mode"
pub fn drawLine<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawLines_float_array_int_int_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawLines_float_array_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawOval_RectF_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint", "android-graphics-RectF"
pub fn drawOval_float_float_float_float_Paint<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawPaint<'env>(
&'env self,
arg0: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawPath<'env>(
&'env self,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint", "android-graphics-Path"
pub fn drawPoint<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawPoints_float_array_int_int_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawPoints_float_array_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawPosText_char_array_int_int_float_array_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env FloatArray>>,
arg4: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env FloatArray>>,
arg4: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawPosText_String_float_array_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env FloatArray>>,
arg2: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env FloatArray>>,
arg2: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint", "java-lang-String"
pub fn drawRect_RectF_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint", "android-graphics-RectF"
pub fn drawRect_Rect_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env Rect>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Rect>>,
arg1: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint", "android-graphics-Rect"
pub fn drawRect_float_float_float_float_Paint<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawRGB<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32
) -> Result<(), Local<'env, Throwable>>
pub fn drawRoundRect_RectF_float_float_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: f32,
arg2: f32,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RectF>>,
arg1: f32,
arg2: f32,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint", "android-graphics-RectF"
pub fn drawRoundRect_float_float_float_float_float_float_Paint<'env>(
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: f32,
arg5: f32,
arg6: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32,
arg2: f32,
arg3: f32,
arg4: f32,
arg5: f32,
arg6: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawText_char_array_int_int_float_float_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32,
arg3: f32,
arg4: f32,
arg5: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32,
arg3: f32,
arg4: f32,
arg5: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawText_String_float_float_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: f32,
arg2: f32,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: f32,
arg2: f32,
arg3: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint", "java-lang-String"
pub fn drawText_String_int_int_float_float_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: i32,
arg3: f32,
arg4: f32,
arg5: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: i32,
arg3: f32,
arg4: f32,
arg5: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint", "java-lang-String"
pub fn drawText_CharSequence_int_int_float_float_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: i32,
arg2: i32,
arg3: f32,
arg4: f32,
arg5: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: i32,
arg2: i32,
arg3: f32,
arg4: f32,
arg5: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint", "java-lang-CharSequence"
pub fn drawTextOnPath_char_array_int_int_Path_float_float_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env Path>>,
arg4: f32,
arg5: f32,
arg6: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env Path>>,
arg4: f32,
arg5: f32,
arg6: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint", "android-graphics-Path"
pub fn drawTextOnPath_String_Path_float_float_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Path>>,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Path>>,
arg2: f32,
arg3: f32,
arg4: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint", "android-graphics-Path", "java-lang-String"
pub fn drawTextRun_char_array_int_int_int_int_float_float_boolean_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: f32,
arg6: f32,
arg7: bool,
arg8: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: f32,
arg6: f32,
arg7: bool,
arg8: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint"
pub fn drawTextRun_CharSequence_int_int_int_int_float_float_boolean_Paint<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: i32,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: f32,
arg6: f32,
arg7: bool,
arg8: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: i32,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: f32,
arg6: f32,
arg7: bool,
arg8: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Paint", "java-lang-CharSequence"
pub fn drawVertices<'env>(
&'env self,
arg0: impl Into<Option<&'env Canvas_VertexMode>>,
arg1: i32,
arg2: impl Into<Option<&'env FloatArray>>,
arg3: i32,
arg4: impl Into<Option<&'env FloatArray>>,
arg5: i32,
arg6: impl Into<Option<&'env IntArray>>,
arg7: i32,
arg8: impl Into<Option<&'env ShortArray>>,
arg9: i32,
arg10: i32,
arg11: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Canvas_VertexMode>>,
arg1: i32,
arg2: impl Into<Option<&'env FloatArray>>,
arg3: i32,
arg4: impl Into<Option<&'env FloatArray>>,
arg5: i32,
arg6: impl Into<Option<&'env IntArray>>,
arg7: i32,
arg8: impl Into<Option<&'env ShortArray>>,
arg9: i32,
arg10: i32,
arg11: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Canvas_VertexMode", "android-graphics-Paint"
pub const ALL_SAVE_FLAG: i32
[src]
public static final ALL_SAVE_FLAG
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for Canvas
impl AsValidJObjectAndEnv for Canvas
impl Deref for Canvas
impl JniType for Canvas
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for Canvas
impl !Send for Canvas
impl !Sync for Canvas
impl Unpin for Canvas
impl UnwindSafe for Canvas
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,