[]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>>[src]

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

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

Required features: "android-graphics-Paint"

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

set

Required features: "android-text-TextPaint"

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

get public baselineShift

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

set public baselineShift

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

get public bgColor

pub fn set_bg_color<'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

get public linkColor

set public linkColor

Methods from Deref<Target = Paint>

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

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

set

Required features: "android-graphics-Paint"

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

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

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

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

pub fn is_anti_alias<'env>(&'env self) -> Result<bool>[src]

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

pub fn is_dither<'env>(&'env self) -> Result<bool>[src]

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

pub fn is_linear_text<'env>(&'env self) -> Result<bool>[src]

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

pub fn is_subpixel_text<'env>(&'env self) -> Result<bool>[src]

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

pub fn is_underline_text<'env>(&'env self) -> Result<bool>[src]

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

pub fn is_strike_thru_text<'env>(&'env self) -> Result<bool>[src]

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

pub fn is_fake_bold_text<'env>(&'env self) -> Result<bool>[src]

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

pub fn is_filter_bitmap<'env>(&'env self) -> Result<bool>[src]

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

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

getStyle

Required features: "android-graphics-Paint_Style"

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

setStyle

Required features: "android-graphics-Paint_Style"

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

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

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

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

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

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

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

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

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

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

getStrokeCap

Required features: "android-graphics-Paint_Cap"

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

setStrokeCap

Required features: "android-graphics-Paint_Cap"

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

getStrokeJoin

Required features: "android-graphics-Paint_Join"

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

setStrokeJoin

Required features: "android-graphics-Paint_Join"

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

getFillPath

Required features: "android-graphics-Path"

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

getShader

Required features: "android-graphics-Shader"

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

setShader

Required features: "android-graphics-Shader"

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

getColorFilter

Required features: "android-graphics-ColorFilter"

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

setColorFilter

Required features: "android-graphics-ColorFilter"

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

getXfermode

Required features: "android-graphics-Xfermode"

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

setXfermode

Required features: "android-graphics-Xfermode"

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

getPathEffect

Required features: "android-graphics-PathEffect"

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

setPathEffect

Required features: "android-graphics-PathEffect"

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

getMaskFilter

Required features: "android-graphics-MaskFilter"

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

setMaskFilter

Required features: "android-graphics-MaskFilter"

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

getTypeface

Required features: "android-graphics-Typeface"

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

setTypeface

Required features: "android-graphics-Typeface"

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

pub fn clear_shadow_layer<'env>(&'env self) -> Result<()>[src]

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

getTextAlign

Required features: "android-graphics-Paint_Align"

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

setTextAlign

Required features: "android-graphics-Paint_Align"

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

getTextLocale

Required features: "java-util-Locale"

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

getTextLocales

Required features: "android-os-LocaleList"

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

setTextLocale

Required features: "java-util-Locale"

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

setTextLocales

Required features: "android-os-LocaleList"

pub fn is_elegant_text_height<'env>(&'env self) -> Result<bool>[src]

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

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

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

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

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

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

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

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

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

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

getFontFeatureSettings

Required features: "java-lang-String"

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

setFontFeatureSettings

Required features: "java-lang-String"

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

getFontVariationSettings

Required features: "java-lang-String"

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

setFontVariationSettings

Required features: "java-lang-String"

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

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

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

getFontMetrics

Required features: "android-graphics-Paint_FontMetrics"

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

getFontMetrics

Required features: "android-graphics-Paint_FontMetrics"

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

getFontMetricsInt

Required features: "android-graphics-Paint_FontMetricsInt"

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

getFontMetricsInt

Required features: "android-graphics-Paint_FontMetricsInt"

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

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

measureText

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

measureText

Required features: "java-lang-String"

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

measureText

Required features: "java-lang-String"

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

measureText

Required features: "java-lang-CharSequence"

pub fn break_text_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>
[src]

breakText

pub fn break_text_char_sequence_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>
[src]

breakText

Required features: "java-lang-CharSequence"

pub fn break_text_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>
[src]

breakText

Required features: "java-lang-String"

pub fn get_text_widths_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>
[src]

getTextWidths

pub fn get_text_widths_char_sequence_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>
[src]

getTextWidths

Required features: "java-lang-CharSequence"

pub fn get_text_widths_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>
[src]

getTextWidths

Required features: "java-lang-String"

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

getTextWidths

Required features: "java-lang-String"

pub fn get_text_path_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<()>
[src]

getTextPath

Required features: "android-graphics-Path"

pub fn get_text_path_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<()>
[src]

getTextPath

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

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

getTextBounds

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

pub fn get_text_bounds_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<()>
[src]

getTextBounds

Required features: "android-graphics-Rect"

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

hasGlyph

Required features: "java-lang-String"

pub fn get_run_advance_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>
[src]

getRunAdvance

pub fn get_run_advance_char_sequence_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>
[src]

getRunAdvance

Required features: "java-lang-CharSequence"

pub fn get_offset_for_advance_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>
[src]

getOffsetForAdvance

pub fn get_offset_for_advance_char_sequence_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>
[src]

getOffsetForAdvance

Required features: "java-lang-CharSequence"

pub fn equals_for_text_measurement<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Paint>>
) -> Result<bool>
[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 Deref for TextPaint

type Target = Paint

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for TextPaint

impl AsJValue for TextPaint

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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