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

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

public class ForegroundColorSpan

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

Methods

impl ForegroundColorSpan

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

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

ForegroundColorSpan

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 getForegroundColor<'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"

Methods from Deref<Target = CharacterStyle>

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 getUnderlying<'env>(
    &'env self
) -> Result<Option<Local<'env, CharacterStyle>>, Local<'env, Throwable>>
[src]

getUnderlying

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

Trait Implementations

impl AsJValue for ForegroundColorSpan

impl AsRef<ParcelableSpan> for ForegroundColorSpan

impl AsRef<UpdateAppearance> for ForegroundColorSpan

impl AsValidJObjectAndEnv for ForegroundColorSpan

impl Deref for ForegroundColorSpan

type Target = CharacterStyle

The resulting type after dereferencing.

impl JniType for ForegroundColorSpan

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.