pub struct Graphics {
pub app_supports_hdr: Option<bool>,
pub high_resolution_capable: Option<bool>,
pub supports_automatic_graphics_switching: Option<bool>,
pub gpu_eject_policy: Option<GpuEjectPolicy>,
pub gpu_selection_policy: Option<GpuSelectionPolicy>,
}Expand description
Graphics
Fields§
§app_supports_hdr: Option<bool>A Boolean value indicating whether the app supports HDR mode on Apple TV 4K.
§Availability
- tvOS 11.2+
§Framework
- UIKit
high_resolution_capable: Option<bool>A Boolean value indicating whether the Cocoa app supports high-resolution displays.
§Availability
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
§Framework
- Foundation
supports_automatic_graphics_switching: Option<bool>A Boolean value indicating whether an OpenGL app may utilize the integrated GPU.
§Availability
- macOS 10.7+
§Framework
- Foundation
gpu_eject_policy: Option<GpuEjectPolicy>The preferred system action when an external GPU is connected from the system.
§Availability
- macOS 10.14+
§Framework
- Metal
gpu_selection_policy: Option<GpuSelectionPolicy>The app’s preference for whether it wants to use external graphics processors.
§Availability
- macOS 10.14+
§Framework
- Metal
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Graphics
impl<'de> Deserialize<'de> for Graphics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Graphics
impl StructuralPartialEq for Graphics
Auto Trait Implementations§
impl Freeze for Graphics
impl RefUnwindSafe for Graphics
impl Send for Graphics
impl Sync for Graphics
impl Unpin for Graphics
impl UnwindSafe for Graphics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.