[−]Struct jni_android_sys::android::view::Display
public final class Display
Required feature: android-view-Display
Methods
impl Display
pub fn get_display_id<'env>(&'env self) -> Result<i32>[src]
pub fn is_valid<'env>(&'env self) -> Result<bool>[src]
pub fn get_flags<'env>(&'env self) -> Result<i32>[src]
pub fn get_name<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]
Required features: "java-lang-String"
pub fn get_size<'env>(
&'env self,
arg0: impl Into<Option<&'env Point>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Point>>
) -> Result<()>
Required features: "android-graphics-Point"
pub fn get_rect_size<'env>(
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<()>
Required features: "android-graphics-Rect"
pub fn get_current_size_range<'env>(
&'env self,
arg0: impl Into<Option<&'env Point>>,
arg1: impl Into<Option<&'env Point>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Point>>,
arg1: impl Into<Option<&'env Point>>
) -> Result<()>
Required features: "android-graphics-Point"
pub fn get_width<'env>(&'env self) -> Result<i32>[src]
pub fn get_height<'env>(&'env self) -> Result<i32>[src]
pub fn get_rotation<'env>(&'env self) -> Result<i32>[src]
pub fn get_orientation<'env>(&'env self) -> Result<i32>[src]
pub fn get_pixel_format<'env>(&'env self) -> Result<i32>[src]
pub fn get_refresh_rate<'env>(&'env self) -> Result<f32>[src]
pub fn get_supported_refresh_rates<'env>(
&'env self
) -> Result<Option<Local<'env, FloatArray>>>[src]
&'env self
) -> Result<Option<Local<'env, FloatArray>>>
pub fn get_mode<'env>(&'env self) -> Result<Option<Local<'env, Display_Mode>>>[src]
Required features: "android-view-Display_Mode"
pub fn get_hdr_capabilities<'env>(
&'env self
) -> Result<Option<Local<'env, Display_HdrCapabilities>>>[src]
&'env self
) -> Result<Option<Local<'env, Display_HdrCapabilities>>>
Required features: "android-view-Display_HdrCapabilities"
pub fn is_hdr<'env>(&'env self) -> Result<bool>[src]
pub fn is_wide_color_gamut<'env>(&'env self) -> Result<bool>[src]
pub fn get_app_vsync_offset_nanos<'env>(&'env self) -> Result<i64>[src]
pub fn get_presentation_deadline_nanos<'env>(&'env self) -> Result<i64>[src]
pub fn get_metrics<'env>(
&'env self,
arg0: impl Into<Option<&'env DisplayMetrics>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env DisplayMetrics>>
) -> Result<()>
Required features: "android-util-DisplayMetrics"
pub fn get_real_size<'env>(
&'env self,
arg0: impl Into<Option<&'env Point>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Point>>
) -> Result<()>
Required features: "android-graphics-Point"
pub fn get_real_metrics<'env>(
&'env self,
arg0: impl Into<Option<&'env DisplayMetrics>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env DisplayMetrics>>
) -> Result<()>
Required features: "android-util-DisplayMetrics"
pub fn get_state<'env>(&'env self) -> Result<i32>[src]
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]
Required features: "java-lang-String"
pub const DEFAULT_DISPLAY: i32[src]
public static final DEFAULT_DISPLAY
pub const FLAG_PRESENTATION: i32[src]
public static final FLAG_PRESENTATION
pub const FLAG_PRIVATE: i32[src]
public static final FLAG_PRIVATE
pub const FLAG_ROUND: i32[src]
public static final FLAG_ROUND
pub const FLAG_SECURE: i32[src]
public static final FLAG_SECURE
pub const FLAG_SUPPORTS_PROTECTED_BUFFERS: i32[src]
public static final FLAG_SUPPORTS_PROTECTED_BUFFERS
pub const INVALID_DISPLAY: i32[src]
public static final INVALID_DISPLAY
pub const STATE_DOZE: i32[src]
public static final STATE_DOZE
pub const STATE_DOZE_SUSPEND: i32[src]
public static final STATE_DOZE_SUSPEND
pub const STATE_OFF: i32[src]
public static final STATE_OFF
pub const STATE_ON: i32[src]
public static final STATE_ON
pub const STATE_ON_SUSPEND: i32[src]
public static final STATE_ON_SUSPEND
pub const STATE_UNKNOWN: i32[src]
public static final STATE_UNKNOWN
pub const STATE_VR: i32[src]
public static final STATE_VR
Methods from Deref<Target = Object>
pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]
Required features: "java-lang-Class"
pub fn hash_code<'env>(&'env self) -> Result<i32>[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
Required features: "java-lang-Object"
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<()>[src]
pub fn notify_all<'env>(&'env self) -> Result<()>[src]
pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]
pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]
pub fn wait<'env>(&'env self) -> Result<()>[src]
Trait Implementations
Auto Trait Implementations
impl !Sync for Display
impl Unpin for Display
impl !Send for Display
impl UnwindSafe for Display
impl RefUnwindSafe for Display
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,