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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.