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

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

public class ImageSpan

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

Methods

impl ImageSpan

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

Deprecated

ImageSpan

Required features: "android-graphics-Bitmap"

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

Deprecated

ImageSpan

Required features: "android-graphics-Bitmap"

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

ImageSpan

Required features: "android-content-Context", "android-graphics-Bitmap"

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

ImageSpan

Required features: "android-content-Context", "android-graphics-Bitmap"

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

ImageSpan

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

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

ImageSpan

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

pub fn new_Drawable_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Drawable>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, ImageSpan>, Local<'env, Throwable>>
[src]

ImageSpan

Required features: "android-graphics-drawable-Drawable", "java-lang-String"

pub fn new_Drawable_String_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Drawable>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: i32
) -> Result<Local<'env, ImageSpan>, Local<'env, Throwable>>
[src]

ImageSpan

Required features: "android-graphics-drawable-Drawable", "java-lang-String"

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

ImageSpan

Required features: "android-content-Context", "android-net-Uri"

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

ImageSpan

Required features: "android-content-Context", "android-net-Uri"

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

ImageSpan

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, ImageSpan>, Local<'env, Throwable>>
[src]

ImageSpan

Required features: "android-content-Context"

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

getDrawable

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

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

getSource

Required features: "java-lang-String"

Methods from Deref<Target = DynamicDrawableSpan>

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]

pub const ALIGN_BOTTOM: i32[src]

Trait Implementations

impl AsJValue for ImageSpan

impl AsValidJObjectAndEnv for ImageSpan

impl Deref for ImageSpan

type Target = DynamicDrawableSpan

The resulting type after dereferencing.

impl JniType for ImageSpan

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.