[]Struct jni_android_sys::android::text::style::TextAppearanceSpan

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

public class TextAppearanceSpan

Required feature: "android-text-style-TextAppearanceSpan"

Methods

impl TextAppearanceSpan

pub fn new_Context_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: i32
) -> Result<Local<'env, TextAppearanceSpan>, Local<'env, Throwable>>
[src]

TextAppearanceSpan

Required features: "android-content-Context"

pub fn new_Context_int_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: i32,
    arg2: i32
) -> Result<Local<'env, TextAppearanceSpan>, Local<'env, Throwable>>
[src]

TextAppearanceSpan

Required features: "android-content-Context"

pub fn new_String_int_int_ColorStateList_ColorStateList<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env ColorStateList>>,
    arg4: impl Into<Option<&'env ColorStateList>>
) -> Result<Local<'env, TextAppearanceSpan>, Local<'env, Throwable>>
[src]

TextAppearanceSpan

Required features: "android-content-res-ColorStateList", "java-lang-String"

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

TextAppearanceSpan

Required features: "android-os-Parcel"

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

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

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

writeToParcel

Required features: "android-os-Parcel"

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

getFamily

Required features: "java-lang-String"

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

getTextColor

Required features: "android-content-res-ColorStateList"

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

getLinkTextColor

Required features: "android-content-res-ColorStateList"

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

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

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

updateDrawState

Required features: "android-text-TextPaint"

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

updateMeasureState

Required features: "android-text-TextPaint"

Methods from Deref<Target = MetricAffectingSpan>

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

updateMeasureState

Required features: "android-text-TextPaint"

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

getUnderlying

Required features: "android-text-style-MetricAffectingSpan"

Trait Implementations

impl AsJValue for TextAppearanceSpan

impl AsRef<ParcelableSpan> for TextAppearanceSpan

impl AsValidJObjectAndEnv for TextAppearanceSpan

impl Deref for TextAppearanceSpan

type Target = MetricAffectingSpan

The resulting type after dereferencing.

impl JniType for TextAppearanceSpan

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.