[]Struct jni_android_sys::android::text::StaticLayout_Builder

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

public final class StaticLayout.Builder

Required feature: "android-text-StaticLayout_Builder"

Methods

impl StaticLayout_Builder

pub fn obtain<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env CharSequence>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env TextPaint>>,
    arg4: i32
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

obtain

Required features: "android-text-StaticLayout_Builder", "android-text-TextPaint", "java-lang-CharSequence"

pub fn setText<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

setText

Required features: "android-text-StaticLayout_Builder", "java-lang-CharSequence"

pub fn setAlignment<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Layout_Alignment>>
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

setAlignment

Required features: "android-text-Layout_Alignment", "android-text-StaticLayout_Builder"

pub fn setTextDirection<'env>(
    &'env self,
    arg0: impl Into<Option<&'env TextDirectionHeuristic>>
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

setTextDirection

Required features: "android-text-StaticLayout_Builder", "android-text-TextDirectionHeuristic"

pub fn setLineSpacing<'env>(
    &'env self,
    arg0: f32,
    arg1: f32
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

setLineSpacing

Required features: "android-text-StaticLayout_Builder"

pub fn setIncludePad<'env>(
    &'env self,
    arg0: bool
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

setIncludePad

Required features: "android-text-StaticLayout_Builder"

pub fn setUseLineSpacingFromFallbacks<'env>(
    &'env self,
    arg0: bool
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

setUseLineSpacingFromFallbacks

Required features: "android-text-StaticLayout_Builder"

pub fn setEllipsizedWidth<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

setEllipsizedWidth

Required features: "android-text-StaticLayout_Builder"

pub fn setEllipsize<'env>(
    &'env self,
    arg0: impl Into<Option<&'env TextUtils_TruncateAt>>
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

setEllipsize

Required features: "android-text-StaticLayout_Builder", "android-text-TextUtils_TruncateAt"

pub fn setMaxLines<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

setMaxLines

Required features: "android-text-StaticLayout_Builder"

pub fn setBreakStrategy<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

setBreakStrategy

Required features: "android-text-StaticLayout_Builder"

pub fn setHyphenationFrequency<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

setHyphenationFrequency

Required features: "android-text-StaticLayout_Builder"

pub fn setIndents<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntArray>>,
    arg1: impl Into<Option<&'env IntArray>>
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

setIndents

Required features: "android-text-StaticLayout_Builder"

pub fn setJustificationMode<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, StaticLayout_Builder>>, Local<'env, Throwable>>
[src]

setJustificationMode

Required features: "android-text-StaticLayout_Builder"

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

build

Required features: "android-text-StaticLayout"

Methods from Deref<Target = Object>

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

getClass

Required features: "java-lang-Class"

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

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

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

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

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

Trait Implementations

impl AsJValue for StaticLayout_Builder

impl AsValidJObjectAndEnv for StaticLayout_Builder

impl Deref for StaticLayout_Builder

type Target = Object

The resulting type after dereferencing.

impl JniType for StaticLayout_Builder

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.