[]Struct jni_android_sys::android::view::WindowInsets

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

public final class WindowInsets

Required feature: "android-view-WindowInsets"

Methods

impl WindowInsets

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env WindowInsets>>
) -> Result<Local<'env, WindowInsets>, Local<'env, Throwable>>
[src]

WindowInsets

Required features: "android-view-WindowInsets"

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

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

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

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

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

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

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

getDisplayCutout

Required features: "android-view-DisplayCutout"

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

consumeDisplayCutout

Required features: "android-view-WindowInsets"

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

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

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

consumeSystemWindowInsets

Required features: "android-view-WindowInsets"

pub fn replaceSystemWindowInsets_int_int_int_int<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32
) -> Result<Option<Local<'env, WindowInsets>>, Local<'env, Throwable>>
[src]

replaceSystemWindowInsets

Required features: "android-view-WindowInsets"

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

replaceSystemWindowInsets

Required features: "android-graphics-Rect", "android-view-WindowInsets"

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

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

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

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

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

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

consumeStableInsets

Required features: "android-view-WindowInsets"

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

toString

Required features: "java-lang-String"

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 hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

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 WindowInsets

impl AsValidJObjectAndEnv for WindowInsets

impl Deref for WindowInsets

type Target = Object

The resulting type after dereferencing.

impl JniType for WindowInsets

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.