Struct vulkano::swapchain::display::DisplayMode
source · pub struct DisplayMode { /* private fields */ }
Expand description
Represents a mode on a specific display.
Implementations
sourceimpl DisplayMode
impl DisplayMode
sourcepub fn visible_region(&self) -> [u32; 2]
pub fn visible_region(&self) -> [u32; 2]
Returns the dimensions of the region that is visible on the monitor.
sourcepub fn refresh_rate(&self) -> u32
pub fn refresh_rate(&self) -> u32
Returns the refresh rate of this mode.
Trait Implementations
sourceimpl VulkanObject for DisplayMode
impl VulkanObject for DisplayMode
sourceconst TYPE: DebugReportObjectTypeEXT = 30u32
const TYPE: DebugReportObjectTypeEXT = 30u32
The
DebugReportObjectTypeEXT
of the internal Vulkan handle.sourcefn internal_object(&self) -> DisplayModeKHR
fn internal_object(&self) -> DisplayModeKHR
Returns a reference to the object.
Auto Trait Implementations
impl RefUnwindSafe for DisplayMode
impl !Send for DisplayMode
impl !Sync for DisplayMode
impl Unpin for DisplayMode
impl UnwindSafe for DisplayMode
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.