[−]Struct jni_android_sys::android::text::style::ReplacementSpan
public class ReplacementSpan
Required feature: "android-text-style-ReplacementSpan"
Methods
impl ReplacementSpan
pub fn new<'env>(
__jni_env: &'env Env
) -> Result<Local<'env, ReplacementSpan>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Local<'env, ReplacementSpan>, Local<'env, Throwable>>
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 fn updateMeasureState<'env>(
&'env self,
arg0: impl Into<Option<&'env TextPaint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env TextPaint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-text-TextPaint"
pub fn updateDrawState<'env>(
&'env self,
arg0: impl Into<Option<&'env TextPaint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env TextPaint>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env TextPaint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-text-TextPaint"
pub fn getUnderlying<'env>(
&'env self
) -> Result<Option<Local<'env, MetricAffectingSpan>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, MetricAffectingSpan>>, Local<'env, Throwable>>
Required features: "android-text-style-MetricAffectingSpan"
Trait Implementations
impl AsJValue for ReplacementSpan
impl AsValidJObjectAndEnv for ReplacementSpan
impl Deref for ReplacementSpan
type Target = MetricAffectingSpan
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
impl JniType for ReplacementSpan
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for ReplacementSpan
impl !Send for ReplacementSpan
impl !Sync for ReplacementSpan
impl Unpin for ReplacementSpan
impl UnwindSafe for ReplacementSpan
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>,