[−]Struct jni_android_sys::android::text::style::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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Bitmap>>
) -> Result<Local<'env, ImageSpan>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: i32
) -> Result<Local<'env, ImageSpan>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Bitmap>>
) -> Result<Local<'env, ImageSpan>, Local<'env, Throwable>>
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]
__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>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Drawable>>
) -> Result<Local<'env, ImageSpan>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Drawable>>,
arg1: i32
) -> Result<Local<'env, ImageSpan>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Drawable>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, ImageSpan>, Local<'env, Throwable>>
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]
__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>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>
) -> Result<Local<'env, ImageSpan>, Local<'env, Throwable>>
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]
__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>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: i32
) -> Result<Local<'env, ImageSpan>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: i32,
arg2: i32
) -> Result<Local<'env, ImageSpan>, Local<'env, Throwable>>
Required features: "android-content-Context"
pub fn getDrawable<'env>(
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
Required features: "android-graphics-drawable-Drawable"
pub fn getSource<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
Methods from Deref<Target = DynamicDrawableSpan>
pub fn getVerticalAlignment<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getDrawable<'env>(
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'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>>
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.
fn deref(&self) -> &Self::Target
impl JniType for ImageSpan
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for ImageSpan
impl !Send for ImageSpan
impl !Sync for ImageSpan
impl Unpin for ImageSpan
impl UnwindSafe for ImageSpan
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,