[]Struct jni_android_sys::android::text::TextPaint

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

public class TextPaint

Required feature: "android-text-TextPaint"

Methods

impl TextPaint

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

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

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

TextPaint

Required features: "android-graphics-Paint"

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

set

Required features: "android-text-TextPaint"

pub fn baselineShift<'env>(&'env self) -> i32[src]

get public baselineShift

pub fn set_baselineShift<'env>(&'env self, value: i32)[src]

set public baselineShift

pub fn bgColor<'env>(&'env self) -> i32[src]

get public bgColor

pub fn set_bgColor<'env>(&'env self, value: i32)[src]

set public bgColor

pub fn density<'env>(&'env self) -> f32[src]

get public density

pub fn set_density<'env>(&'env self, value: f32)[src]

set public density

pub fn drawableState<'env>(&'env self) -> Option<Local<'env, IntArray>>[src]

get public drawableState

pub fn set_drawableState<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj IntArray>>
)
[src]

set public drawableState

pub fn linkColor<'env>(&'env self) -> i32[src]

get public linkColor

pub fn set_linkColor<'env>(&'env self, value: i32)[src]

set public linkColor

Methods from Deref<Target = 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]

pub const DEV_KERN_TEXT_FLAG: i32[src]

pub const DITHER_FLAG: i32[src]

pub const EMBEDDED_BITMAP_TEXT_FLAG: i32[src]

pub const FAKE_BOLD_TEXT_FLAG: i32[src]

pub const FILTER_BITMAP_FLAG: i32[src]

pub const HINTING_OFF: i32[src]

pub const HINTING_ON: i32[src]

pub const LINEAR_TEXT_FLAG: i32[src]

pub const STRIKE_THRU_TEXT_FLAG: i32[src]

pub const SUBPIXEL_TEXT_FLAG: i32[src]

pub const UNDERLINE_TEXT_FLAG: i32[src]

Trait Implementations

impl AsJValue for TextPaint

impl AsValidJObjectAndEnv for TextPaint

impl Deref for TextPaint

type Target = Paint

The resulting type after dereferencing.

impl JniType for TextPaint

Auto Trait Implementations

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.