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

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

public class DynamicDrawableSpan

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

Methods

impl DynamicDrawableSpan

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

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

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

getDrawable

Required features: "android-graphics-drawable-Drawable"

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

getSize

Required features: "android-graphics-Paint", "android-graphics-Paint_FontMetricsInt", "java-lang-CharSequence"

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

draw

Required features: "android-graphics-Canvas", "android-graphics-Paint", "java-lang-CharSequence"

pub const ALIGN_BASELINE: i32[src]

public static final ALIGN_BASELINE

pub const ALIGN_BOTTOM: i32[src]

public static final ALIGN_BOTTOM

Methods from Deref<Target = ReplacementSpan>

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

getSize

Required features: "android-graphics-Paint", "android-graphics-Paint_FontMetricsInt", "java-lang-CharSequence"

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

draw

Required features: "android-graphics-Canvas", "android-graphics-Paint", "java-lang-CharSequence"

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 updateDrawState<'env>(
    &'env self,
    arg0: impl Into<Option<&'env TextPaint>>
) -> Result<(), Local<'env, Throwable>>
[src]

updateDrawState

Required features: "android-text-TextPaint"

Trait Implementations

impl AsJValue for DynamicDrawableSpan

impl AsValidJObjectAndEnv for DynamicDrawableSpan

impl Deref for DynamicDrawableSpan

type Target = ReplacementSpan

The resulting type after dereferencing.

impl JniType for DynamicDrawableSpan

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.