[−]Struct jni_android_sys::android::text::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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: impl Into<Option<&'env TextPaint>>
) -> Result<f32, Local<'env, Throwable>>
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]
__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>>
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]
&'env self,
arg0: impl Into<Option<&'env Canvas>>
) -> Result<(), Local<'env, Throwable>>
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]
&'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>>
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]
&'env self
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
Required features: "java-lang-CharSequence"
pub fn getPaint<'env>(
&'env self
) -> Result<Option<Local<'env, TextPaint>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, TextPaint>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn increaseWidthTo<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, Layout_Alignment>>, Local<'env, Throwable>>
Required features: "android-text-Layout_Alignment"
pub fn getSpacingMultiplier<'env>(
&'env self
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<f32, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Rect>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-graphics-Rect"
pub fn getLineTop<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getLineDescent<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getLineStart<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getParagraphDirection<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getLineContainsTab<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn getLineDirections<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Layout_Directions>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Layout_Directions>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn getPrimaryHorizontal<'env>(
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
pub fn getSecondaryHorizontal<'env>(
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
pub fn getLineLeft<'env>(
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
pub fn getLineRight<'env>(
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
pub fn getLineMax<'env>(
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
pub fn getLineWidth<'env>(
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
pub fn getLineForVertical<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getLineForOffset<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getOffsetForHorizontal<'env>(
&'env self,
arg0: i32,
arg1: f32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: f32
) -> Result<i32, Local<'env, Throwable>>
pub fn getLineEnd<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getLineVisibleEnd<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getLineBottom<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getLineBaseline<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getLineAscent<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getOffsetToLeftOf<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getOffsetToRightOf<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Path>>,
arg2: impl Into<Option<&'env CharSequence>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: i32,
arg2: impl Into<Option<&'env Path>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Path"
pub fn getParagraphAlignment<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Layout_Alignment>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Layout_Alignment>>, Local<'env, Throwable>>
Required features: "android-text-Layout_Alignment"
pub fn getParagraphLeft<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getParagraphRight<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getEllipsisStart<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getEllipsisCount<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'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"
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
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
impl JniType for Layout
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
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]
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>,