NativeDisplayManager_DisplayInfo

Struct NativeDisplayManager_DisplayInfo 

Source
#[repr(C)]
pub struct NativeDisplayManager_DisplayInfo {
Show 20 fields pub id: u32, pub name: [c_char; 33], pub isAlive: bool, pub width: i32, pub height: i32, pub physicalWidth: i32, pub physicalHeight: i32, pub refreshRate: u32, pub availableWidth: u32, pub availableHeight: u32, pub densityDPI: f32, pub densityPixels: f32, pub scaledDensity: f32, pub xDPI: f32, pub yDPI: f32, pub rotation: NativeDisplayManager_Rotation, pub state: NativeDisplayManager_DisplayState, pub orientation: NativeDisplayManager_Orientation, pub hdrFormat: *mut NativeDisplayManager_DisplayHdrFormat, pub colorSpace: *mut NativeDisplayManager_DisplayColorSpace,
}
Available on crate feature api-14 only.
Expand description

Defines the display structure.

Available since API-level: 14

Version: 1.0

Fields§

§id: u32

display id

§name: [c_char; 33]

display name

§isAlive: bool

display is alive

§width: i32

display width

§height: i32

display height

§physicalWidth: i32

display physical width

§physicalHeight: i32

display physical height

§refreshRate: u32

display refresh rate

§availableWidth: u32

display available width

§availableHeight: u32

display available height

§densityDPI: f32

display density dpi

§densityPixels: f32

display density pixels

§scaledDensity: f32

display scale density

§xDPI: f32

display xdpi

§yDPI: f32

display ydpi

§rotation: NativeDisplayManager_Rotation

display rotation

§state: NativeDisplayManager_DisplayState

display state

§orientation: NativeDisplayManager_Orientation

display orientation

§hdrFormat: *mut NativeDisplayManager_DisplayHdrFormat

display hdr format

§colorSpace: *mut NativeDisplayManager_DisplayColorSpace

display color space

Trait Implementations§

Source§

impl Debug for NativeDisplayManager_DisplayInfo

Available on crate feature api-12 only.
Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for NativeDisplayManager_DisplayInfo

Available on crate feature api-12 only.
§

impl RefUnwindSafe for NativeDisplayManager_DisplayInfo

Available on crate feature api-12 only.
§

impl !Send for NativeDisplayManager_DisplayInfo

Available on crate feature api-12 only.
§

impl !Sync for NativeDisplayManager_DisplayInfo

Available on crate feature api-12 only.
§

impl Unpin for NativeDisplayManager_DisplayInfo

Available on crate feature api-12 only.
§

impl UnwindSafe for NativeDisplayManager_DisplayInfo

Available on crate feature api-12 only.

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

Available on crate feature api-12 only.
§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

Available on crate feature api-12 only.
§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Available on crate feature api-12 only.
§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

Available on crate feature api-12 only.
§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

Available on crate feature api-12 only.
§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Available on crate feature api-12 only.
§

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>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Available on crate feature api-12 only.
§

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>

Performs the conversion.