pub struct Display { /* private fields */ }
Expand description
Represents a monitor connected to a physical device.
Implementations
sourceimpl Display
impl Display
sourcepub fn enumerate_raw(
device: PhysicalDevice<'_>
) -> Result<IntoIter<Display>, OomError>
pub fn enumerate_raw(
device: PhysicalDevice<'_>
) -> Result<IntoIter<Display>, OomError>
See the docs of enumerate().
sourcepub fn enumerate(device: PhysicalDevice<'_>) -> IntoIter<Display>
pub fn enumerate(device: PhysicalDevice<'_>) -> IntoIter<Display>
Enumerates all the displays that are available on a given physical device.
Panic
- Panics if the device or host ran out of memory.
sourcepub fn physical_device(&self) -> PhysicalDevice<'_>
pub fn physical_device(&self) -> PhysicalDevice<'_>
Returns the physical device that was used to create this display.
sourcepub fn physical_dimensions(&self) -> [u32; 2]
pub fn physical_dimensions(&self) -> [u32; 2]
Returns the physical dimensions of the display in millimeters.
sourcepub fn physical_resolution(&self) -> [u32; 2]
pub fn physical_resolution(&self) -> [u32; 2]
Returns the physical, native, or preferred resolution of the display.
Note: The display is usually still capable of displaying other resolutions. This is only the “best” resolution.
sourcepub fn supported_transforms(&self) -> SupportedSurfaceTransforms
pub fn supported_transforms(&self) -> SupportedSurfaceTransforms
Returns the transforms supported by this display.
sourcepub fn plane_reorder_possible(&self) -> bool
pub fn plane_reorder_possible(&self) -> bool
Returns true if TODO.
sourcepub fn persistent_content(&self) -> bool
pub fn persistent_content(&self) -> bool
Returns true if TODO.
sourcepub fn display_modes_raw(&self) -> Result<IntoIter<DisplayMode>, OomError>
pub fn display_modes_raw(&self) -> Result<IntoIter<DisplayMode>, OomError>
See the docs of display_modes().
sourcepub fn display_modes(&self) -> IntoIter<DisplayMode>
pub fn display_modes(&self) -> IntoIter<DisplayMode>
Returns a list of all modes available on this display.
Panic
- Panics if the device or host ran out of memory.
Trait Implementations
sourceimpl VulkanObject for Display
impl VulkanObject for Display
type Object = DisplayKHR
type Object = DisplayKHR
The type of the object.
sourcefn internal_object(&self) -> DisplayKHR
fn internal_object(&self) -> DisplayKHR
Returns a reference to the object.
Auto Trait Implementations
impl RefUnwindSafe for Display
impl !Send for Display
impl !Sync for Display
impl Unpin for Display
impl UnwindSafe for Display
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more