pub struct DisplayPropertiesKHR<'a> {
pub display: DisplayKHR,
pub display_name: *const c_char,
pub physical_dimensions: Extent2D,
pub physical_resolution: Extent2D,
pub supported_transforms: SurfaceTransformFlagsKHR,
pub plane_reorder_possible: Bool32,
pub persistent_content: Bool32,
/* private fields */
}Expand description
Native structure VkDisplayPropertiesKHR.
Fields§
§display: DisplayKHRNative field display.
display_name: *const c_charNative field displayName.
physical_dimensions: Extent2DNative field physicalDimensions.
physical_resolution: Extent2DNative field physicalResolution.
supported_transforms: SurfaceTransformFlagsKHRNative field supportedTransforms.
plane_reorder_possible: Bool32Native field planeReorderPossible.
persistent_content: Bool32Native field persistentContent.
Implementations§
Source§impl<'a> DisplayPropertiesKHR<'a>
impl<'a> DisplayPropertiesKHR<'a>
Sourcepub fn set_display(self, value: DisplayKHR) -> Self
pub fn set_display(self, value: DisplayKHR) -> Self
Set native field display without native effects.
Sourcepub fn set_display_name(self, value: &'a CStr) -> Self
pub fn set_display_name(self, value: &'a CStr) -> Self
Set native field displayName without native effects.
Sourcepub fn set_physical_dimensions(self, value: Extent2D) -> Self
pub fn set_physical_dimensions(self, value: Extent2D) -> Self
Set native field physicalDimensions without native effects.
Sourcepub fn set_physical_resolution(self, value: Extent2D) -> Self
pub fn set_physical_resolution(self, value: Extent2D) -> Self
Set native field physicalResolution without native effects.
Sourcepub fn set_supported_transforms(self, value: SurfaceTransformFlagsKHR) -> Self
pub fn set_supported_transforms(self, value: SurfaceTransformFlagsKHR) -> Self
Set native field supportedTransforms without native effects.
Sourcepub fn set_plane_reorder_possible(self, value: Bool32) -> Self
pub fn set_plane_reorder_possible(self, value: Bool32) -> Self
Set native field planeReorderPossible without native effects.
Sourcepub fn set_persistent_content(self, value: Bool32) -> Self
pub fn set_persistent_content(self, value: Bool32) -> Self
Set native field persistentContent without native effects.
Trait Implementations§
Source§impl<'a> Clone for DisplayPropertiesKHR<'a>
impl<'a> Clone for DisplayPropertiesKHR<'a>
impl<'a> Copy for DisplayPropertiesKHR<'a>
Auto Trait Implementations§
impl<'a> !Send for DisplayPropertiesKHR<'a>
impl<'a> !Sync for DisplayPropertiesKHR<'a>
impl<'a> Forget for DisplayPropertiesKHR<'a>
impl<'a> Freeze for DisplayPropertiesKHR<'a>
impl<'a> Move for DisplayPropertiesKHR<'a>
impl<'a> RefUnwindSafe for DisplayPropertiesKHR<'a>
impl<'a> Unpin for DisplayPropertiesKHR<'a>
impl<'a> UnsafeUnpin for DisplayPropertiesKHR<'a>
impl<'a> UnwindSafe for DisplayPropertiesKHR<'a>
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