[]Struct jni_android_sys::android::graphics::Paint

#[repr(transparent)]
pub struct Paint(_);

public class Paint

Required feature: "android-graphics-Paint"

Methods

impl Paint

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, Paint>, Local<'env, Throwable>>
[src]

pub fn new_int<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<Local<'env, Paint>, Local<'env, Throwable>>
[src]

pub fn new_Paint<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Paint>>
) -> Result<Local<'env, Paint>, Local<'env, Throwable>>
[src]

Paint

Required features: "android-graphics-Paint"

pub fn reset<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn set<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Paint>>
) -> Result<(), Local<'env, Throwable>>
[src]

set

Required features: "android-graphics-Paint"

pub fn getFlags<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn setFlags<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getHinting<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn setHinting<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn isAntiAlias<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setAntiAlias<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn isDither<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setDither<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn isLinearText<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setLinearText<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn isSubpixelText<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setSubpixelText<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn isUnderlineText<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setUnderlineText<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn isStrikeThruText<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn setStrikeThruText<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn isFakeBoldText<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setFakeBoldText<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn isFilterBitmap<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setFilterBitmap<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getStyle<'env>(
    &'env self
) -> Result<Option<Local<'env, Paint_Style>>, Local<'env, Throwable>>
[src]

getStyle

Required features: "android-graphics-Paint_Style"

pub fn setStyle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Paint_Style>>
) -> Result<(), Local<'env, Throwable>>
[src]

setStyle

Required features: "android-graphics-Paint_Style"

pub fn getColor<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn setColor<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getAlpha<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn setAlpha<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setARGB<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getStrokeWidth<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn setStrokeWidth<'env>(
    &'env self,
    arg0: f32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getStrokeMiter<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn setStrokeMiter<'env>(
    &'env self,
    arg0: f32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getStrokeCap<'env>(
    &'env self
) -> Result<Option<Local<'env, Paint_Cap>>, Local<'env, Throwable>>
[src]

getStrokeCap

Required features: "android-graphics-Paint_Cap"

pub fn setStrokeCap<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Paint_Cap>>
) -> Result<(), Local<'env, Throwable>>
[src]

setStrokeCap

Required features: "android-graphics-Paint_Cap"

pub fn getStrokeJoin<'env>(
    &'env self
) -> Result<Option<Local<'env, Paint_Join>>, Local<'env, Throwable>>
[src]

getStrokeJoin

Required features: "android-graphics-Paint_Join"

pub fn setStrokeJoin<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Paint_Join>>
) -> Result<(), Local<'env, Throwable>>
[src]

setStrokeJoin

Required features: "android-graphics-Paint_Join"

pub fn getFillPath<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Path>>,
    arg1: impl Into<Option<&'env Path>>
) -> Result<bool, Local<'env, Throwable>>
[src]

getFillPath

Required features: "android-graphics-Path"

pub fn getShader<'env>(
    &'env self
) -> Result<Option<Local<'env, Shader>>, Local<'env, Throwable>>
[src]

getShader

Required features: "android-graphics-Shader"

pub fn setShader<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Shader>>
) -> Result<Option<Local<'env, Shader>>, Local<'env, Throwable>>
[src]

setShader

Required features: "android-graphics-Shader"

pub fn getColorFilter<'env>(
    &'env self
) -> Result<Option<Local<'env, ColorFilter>>, Local<'env, Throwable>>
[src]

getColorFilter

Required features: "android-graphics-ColorFilter"

pub fn setColorFilter<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ColorFilter>>
) -> Result<Option<Local<'env, ColorFilter>>, Local<'env, Throwable>>
[src]

setColorFilter

Required features: "android-graphics-ColorFilter"

pub fn getXfermode<'env>(
    &'env self
) -> Result<Option<Local<'env, Xfermode>>, Local<'env, Throwable>>
[src]

getXfermode

Required features: "android-graphics-Xfermode"

pub fn setXfermode<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Xfermode>>
) -> Result<Option<Local<'env, Xfermode>>, Local<'env, Throwable>>
[src]

setXfermode

Required features: "android-graphics-Xfermode"

pub fn getPathEffect<'env>(
    &'env self
) -> Result<Option<Local<'env, PathEffect>>, Local<'env, Throwable>>
[src]

getPathEffect

Required features: "android-graphics-PathEffect"

pub fn setPathEffect<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PathEffect>>
) -> Result<Option<Local<'env, PathEffect>>, Local<'env, Throwable>>
[src]

setPathEffect

Required features: "android-graphics-PathEffect"

pub fn getMaskFilter<'env>(
    &'env self
) -> Result<Option<Local<'env, MaskFilter>>, Local<'env, Throwable>>
[src]

getMaskFilter

Required features: "android-graphics-MaskFilter"

pub fn setMaskFilter<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MaskFilter>>
) -> Result<Option<Local<'env, MaskFilter>>, Local<'env, Throwable>>
[src]

setMaskFilter

Required features: "android-graphics-MaskFilter"

pub fn getTypeface<'env>(
    &'env self
) -> Result<Option<Local<'env, Typeface>>, Local<'env, Throwable>>
[src]

getTypeface

Required features: "android-graphics-Typeface"

pub fn setTypeface<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Typeface>>
) -> Result<Option<Local<'env, Typeface>>, Local<'env, Throwable>>
[src]

setTypeface

Required features: "android-graphics-Typeface"

pub fn setShadowLayer<'env>(
    &'env self,
    arg0: f32,
    arg1: f32,
    arg2: f32,
    arg3: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn clearShadowLayer<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn getTextAlign<'env>(
    &'env self
) -> Result<Option<Local<'env, Paint_Align>>, Local<'env, Throwable>>
[src]

getTextAlign

Required features: "android-graphics-Paint_Align"

pub fn setTextAlign<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Paint_Align>>
) -> Result<(), Local<'env, Throwable>>
[src]

setTextAlign

Required features: "android-graphics-Paint_Align"

pub fn getTextLocale<'env>(
    &'env self
) -> Result<Option<Local<'env, Locale>>, Local<'env, Throwable>>
[src]

getTextLocale

Required features: "java-util-Locale"

pub fn getTextLocales<'env>(
    &'env self
) -> Result<Option<Local<'env, LocaleList>>, Local<'env, Throwable>>
[src]

getTextLocales

Required features: "android-os-LocaleList"

pub fn setTextLocale<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Locale>>
) -> Result<(), Local<'env, Throwable>>
[src]

setTextLocale

Required features: "java-util-Locale"

pub fn setTextLocales<'env>(
    &'env self,
    arg0: impl Into<Option<&'env LocaleList>>
) -> Result<(), Local<'env, Throwable>>
[src]

setTextLocales

Required features: "android-os-LocaleList"

pub fn isElegantTextHeight<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn setElegantTextHeight<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getTextSize<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn setTextSize<'env>(
    &'env self,
    arg0: f32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getTextScaleX<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn setTextScaleX<'env>(
    &'env self,
    arg0: f32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getTextSkewX<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn setTextSkewX<'env>(
    &'env self,
    arg0: f32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getLetterSpacing<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn setLetterSpacing<'env>(
    &'env self,
    arg0: f32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getFontFeatureSettings<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getFontFeatureSettings

Required features: "java-lang-String"

pub fn setFontFeatureSettings<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

setFontFeatureSettings

Required features: "java-lang-String"

pub fn getFontVariationSettings<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getFontVariationSettings

Required features: "java-lang-String"

pub fn setFontVariationSettings<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]

setFontVariationSettings

Required features: "java-lang-String"

pub fn ascent<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn descent<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn getFontMetrics_FontMetrics<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Paint_FontMetrics>>
) -> Result<f32, Local<'env, Throwable>>
[src]

getFontMetrics

Required features: "android-graphics-Paint_FontMetrics"

pub fn getFontMetrics<'env>(
    &'env self
) -> Result<Option<Local<'env, Paint_FontMetrics>>, Local<'env, Throwable>>
[src]

getFontMetrics

Required features: "android-graphics-Paint_FontMetrics"

pub fn getFontMetricsInt_FontMetricsInt<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Paint_FontMetricsInt>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getFontMetricsInt

Required features: "android-graphics-Paint_FontMetricsInt"

pub fn getFontMetricsInt<'env>(
    &'env self
) -> Result<Option<Local<'env, Paint_FontMetricsInt>>, Local<'env, Throwable>>
[src]

getFontMetricsInt

Required features: "android-graphics-Paint_FontMetricsInt"

pub fn getFontSpacing<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn measureText_char_array_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharArray>>,
    arg1: i32,
    arg2: i32
) -> Result<f32, Local<'env, Throwable>>
[src]

pub fn measureText_String_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32,
    arg2: i32
) -> Result<f32, Local<'env, Throwable>>
[src]

measureText

Required features: "java-lang-String"

pub fn measureText_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<f32, Local<'env, Throwable>>
[src]

measureText

Required features: "java-lang-String"

pub fn measureText_CharSequence_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharSequence>>,
    arg1: i32,
    arg2: i32
) -> Result<f32, Local<'env, Throwable>>
[src]

measureText

Required features: "java-lang-CharSequence"

pub fn breakText_char_array_int_int_float_float_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharArray>>,
    arg1: i32,
    arg2: i32,
    arg3: f32,
    arg4: impl Into<Option<&'env FloatArray>>
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn breakText_CharSequence_int_int_boolean_float_float_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharSequence>>,
    arg1: i32,
    arg2: i32,
    arg3: bool,
    arg4: f32,
    arg5: impl Into<Option<&'env FloatArray>>
) -> Result<i32, Local<'env, Throwable>>
[src]

breakText

Required features: "java-lang-CharSequence"

pub fn breakText_String_boolean_float_float_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: bool,
    arg2: f32,
    arg3: impl Into<Option<&'env FloatArray>>
) -> Result<i32, Local<'env, Throwable>>
[src]

breakText

Required features: "java-lang-String"

pub fn getTextWidths_char_array_int_int_float_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharArray>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env FloatArray>>
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getTextWidths_CharSequence_int_int_float_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharSequence>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env FloatArray>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getTextWidths

Required features: "java-lang-CharSequence"

pub fn getTextWidths_String_int_int_float_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env FloatArray>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getTextWidths

Required features: "java-lang-String"

pub fn getTextWidths_String_float_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env FloatArray>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getTextWidths

Required features: "java-lang-String"

pub fn getTextPath_char_array_int_int_float_float_Path<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharArray>>,
    arg1: i32,
    arg2: i32,
    arg3: f32,
    arg4: f32,
    arg5: impl Into<Option<&'env Path>>
) -> Result<(), Local<'env, Throwable>>
[src]

getTextPath

Required features: "android-graphics-Path"

pub fn getTextPath_String_int_int_float_float_Path<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32,
    arg2: i32,
    arg3: f32,
    arg4: f32,
    arg5: impl Into<Option<&'env Path>>
) -> Result<(), Local<'env, Throwable>>
[src]

getTextPath

Required features: "android-graphics-Path", "java-lang-String"

pub fn getTextBounds_String_int_int_Rect<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env Rect>>
) -> Result<(), Local<'env, Throwable>>
[src]

getTextBounds

Required features: "android-graphics-Rect", "java-lang-String"

pub fn getTextBounds_char_array_int_int_Rect<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharArray>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env Rect>>
) -> Result<(), Local<'env, Throwable>>
[src]

getTextBounds

Required features: "android-graphics-Rect"

pub fn hasGlyph<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]

hasGlyph

Required features: "java-lang-String"

pub fn getRunAdvance_char_array_int_int_int_int_boolean_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharArray>>,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: bool,
    arg6: i32
) -> Result<f32, Local<'env, Throwable>>
[src]

pub fn getRunAdvance_CharSequence_int_int_int_int_boolean_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharSequence>>,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: bool,
    arg6: i32
) -> Result<f32, Local<'env, Throwable>>
[src]

getRunAdvance

Required features: "java-lang-CharSequence"

pub fn getOffsetForAdvance_char_array_int_int_int_int_boolean_float<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharArray>>,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: bool,
    arg6: f32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getOffsetForAdvance_CharSequence_int_int_int_int_boolean_float<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharSequence>>,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: bool,
    arg6: f32
) -> Result<i32, Local<'env, Throwable>>
[src]

getOffsetForAdvance

Required features: "java-lang-CharSequence"

pub fn equalsForTextMeasurement<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Paint>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equalsForTextMeasurement

Required features: "android-graphics-Paint"

pub const ANTI_ALIAS_FLAG: i32[src]

public static final ANTI_ALIAS_FLAG

pub const DEV_KERN_TEXT_FLAG: i32[src]

public static final DEV_KERN_TEXT_FLAG

pub const DITHER_FLAG: i32[src]

public static final DITHER_FLAG

pub const EMBEDDED_BITMAP_TEXT_FLAG: i32[src]

public static final EMBEDDED_BITMAP_TEXT_FLAG

pub const FAKE_BOLD_TEXT_FLAG: i32[src]

public static final FAKE_BOLD_TEXT_FLAG

pub const FILTER_BITMAP_FLAG: i32[src]

public static final FILTER_BITMAP_FLAG

pub const HINTING_OFF: i32[src]

public static final HINTING_OFF

pub const HINTING_ON: i32[src]

public static final HINTING_ON

pub const LINEAR_TEXT_FLAG: i32[src]

public static final LINEAR_TEXT_FLAG

pub const STRIKE_THRU_TEXT_FLAG: i32[src]

public static final STRIKE_THRU_TEXT_FLAG

pub const SUBPIXEL_TEXT_FLAG: i32[src]

public static final SUBPIXEL_TEXT_FLAG

pub const UNDERLINE_TEXT_FLAG: i32[src]

public static final UNDERLINE_TEXT_FLAG

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

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]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

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]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for Paint

impl AsValidJObjectAndEnv for Paint

impl Deref for Paint

type Target = Object

The resulting type after dereferencing.

impl JniType for Paint

Auto Trait Implementations

impl RefUnwindSafe for Paint

impl !Send for Paint

impl !Sync for Paint

impl Unpin for Paint

impl UnwindSafe for Paint

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.