[]Struct jni_android_sys::android::text::DynamicLayout

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

public class DynamicLayout

Required feature: "android-text-DynamicLayout"

Methods

impl DynamicLayout

pub fn new_CharSequence_TextPaint_int_Alignment_float_float_boolean<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env CharSequence>>,
    arg1: impl Into<Option<&'env TextPaint>>,
    arg2: i32,
    arg3: impl Into<Option<&'env Layout_Alignment>>,
    arg4: f32,
    arg5: f32,
    arg6: bool
) -> Result<Local<'env, DynamicLayout>, Local<'env, Throwable>>
[src]

Deprecated

DynamicLayout

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

pub fn new_CharSequence_CharSequence_TextPaint_int_Alignment_float_float_boolean<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env CharSequence>>,
    arg1: impl Into<Option<&'env CharSequence>>,
    arg2: impl Into<Option<&'env TextPaint>>,
    arg3: i32,
    arg4: impl Into<Option<&'env Layout_Alignment>>,
    arg5: f32,
    arg6: f32,
    arg7: bool
) -> Result<Local<'env, DynamicLayout>, Local<'env, Throwable>>
[src]

Deprecated

DynamicLayout

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

pub fn new_CharSequence_CharSequence_TextPaint_int_Alignment_float_float_boolean_TruncateAt_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env CharSequence>>,
    arg1: impl Into<Option<&'env CharSequence>>,
    arg2: impl Into<Option<&'env TextPaint>>,
    arg3: i32,
    arg4: impl Into<Option<&'env Layout_Alignment>>,
    arg5: f32,
    arg6: f32,
    arg7: bool,
    arg8: impl Into<Option<&'env TextUtils_TruncateAt>>,
    arg9: i32
) -> Result<Local<'env, DynamicLayout>, Local<'env, Throwable>>
[src]

Deprecated

DynamicLayout

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

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

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

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

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

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

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

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

getLineDirections

Required features: "android-text-Layout_Directions"

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

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

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

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

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

Methods from Deref<Target = Layout>

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

draw

Required features: "android-graphics-Canvas"

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

draw

Required features: "android-graphics-Canvas", "android-graphics-Paint", "android-graphics-Path"

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

getText

Required features: "java-lang-CharSequence"

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

getPaint

Required features: "android-text-TextPaint"

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

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

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

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

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

getAlignment

Required features: "android-text-Layout_Alignment"

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

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

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

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

getLineBounds

Required features: "android-graphics-Rect"

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

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

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

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

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

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

getLineDirections

Required features: "android-text-Layout_Directions"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn getCursorPath<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Path>>,
    arg2: impl Into<Option<&'env CharSequence>>
) -> Result<(), Local<'env, Throwable>>
[src]

getCursorPath

Required features: "android-graphics-Path", "java-lang-CharSequence"

pub fn getSelectionPath<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Path>>
) -> Result<(), Local<'env, Throwable>>
[src]

getSelectionPath

Required features: "android-graphics-Path"

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

getParagraphAlignment

Required features: "android-text-Layout_Alignment"

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

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

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

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

pub const BREAK_STRATEGY_BALANCED: i32[src]

pub const BREAK_STRATEGY_HIGH_QUALITY: i32[src]

pub const BREAK_STRATEGY_SIMPLE: i32[src]

pub const DEFAULT_LINESPACING_ADDITION: f32[src]

pub const DEFAULT_LINESPACING_MULTIPLIER: f32[src]

pub const DIR_LEFT_TO_RIGHT: i32[src]

pub const DIR_RIGHT_TO_LEFT: i32[src]

pub const HYPHENATION_FREQUENCY_FULL: i32[src]

pub const HYPHENATION_FREQUENCY_NONE: i32[src]

pub const HYPHENATION_FREQUENCY_NORMAL: i32[src]

pub const JUSTIFICATION_MODE_INTER_WORD: i32[src]

pub const JUSTIFICATION_MODE_NONE: i32[src]

Trait Implementations

impl AsJValue for DynamicLayout

impl AsValidJObjectAndEnv for DynamicLayout

impl Deref for DynamicLayout

type Target = Layout

The resulting type after dereferencing.

impl JniType for DynamicLayout

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.