[]Struct jni_android_sys::android::text::Layout

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

public class Layout

Required feature: "android-text-Layout"

Methods

impl Layout

pub fn getDesiredWidth_CharSequence_TextPaint<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env CharSequence>>,
    arg1: impl Into<Option<&'env TextPaint>>
) -> Result<f32, Local<'env, Throwable>>
[src]

getDesiredWidth

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

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

getDesiredWidth

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

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]

public static final BREAK_STRATEGY_BALANCED

pub const BREAK_STRATEGY_HIGH_QUALITY: i32[src]

public static final BREAK_STRATEGY_HIGH_QUALITY

pub const BREAK_STRATEGY_SIMPLE: i32[src]

public static final BREAK_STRATEGY_SIMPLE

pub const DEFAULT_LINESPACING_ADDITION: f32[src]

public static final DEFAULT_LINESPACING_ADDITION

pub const DEFAULT_LINESPACING_MULTIPLIER: f32[src]

public static final DEFAULT_LINESPACING_MULTIPLIER

pub const DIR_LEFT_TO_RIGHT: i32[src]

public static final DIR_LEFT_TO_RIGHT

pub const DIR_RIGHT_TO_LEFT: i32[src]

public static final DIR_RIGHT_TO_LEFT

pub const HYPHENATION_FREQUENCY_FULL: i32[src]

public static final HYPHENATION_FREQUENCY_FULL

pub const HYPHENATION_FREQUENCY_NONE: i32[src]

public static final HYPHENATION_FREQUENCY_NONE

pub const HYPHENATION_FREQUENCY_NORMAL: i32[src]

public static final HYPHENATION_FREQUENCY_NORMAL

pub const JUSTIFICATION_MODE_INTER_WORD: i32[src]

public static final JUSTIFICATION_MODE_INTER_WORD

pub const JUSTIFICATION_MODE_NONE: i32[src]

public static final JUSTIFICATION_MODE_NONE

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 Layout

impl AsValidJObjectAndEnv for Layout

impl Deref for Layout

type Target = Object

The resulting type after dereferencing.

impl JniType for Layout

Auto Trait Implementations

impl RefUnwindSafe for Layout

impl !Send for Layout

impl !Sync for Layout

impl Unpin for Layout

impl UnwindSafe for Layout

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.