pub struct Display { /* private fields */ }
Expand description
Represents a monitor connected to a physical device.
Implementations
sourceimpl Display
impl Display
sourcepub fn enumerate_raw(
physical_device: Arc<PhysicalDevice>
) -> Result<IntoIter<Display>, OomError>
pub fn enumerate_raw(
physical_device: Arc<PhysicalDevice>
) -> Result<IntoIter<Display>, OomError>
See the docs of enumerate().
sourcepub fn enumerate(physical_device: Arc<PhysicalDevice>) -> IntoIter<Display>
pub fn enumerate(physical_device: Arc<PhysicalDevice>) -> IntoIter<Display>
Enumerates all the displays that are available on a given physical device.
Panics
- Panics if the device or host ran out of memory.
sourcepub fn physical_device(&self) -> &Arc<PhysicalDevice>
pub fn physical_device(&self) -> &Arc<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.
Panics
- Panics if the device or host ran out of memory.
Trait Implementations
sourceimpl VulkanObject for Display
impl VulkanObject for Display
type Handle = DisplayKHR
type Handle = DisplayKHR
The type of 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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