pub struct Window {
pub title: String,
pub surface: Option<Surface>,
/* private fields */
}Expand description
Window interface
Fields§
§title: StringWindow title
surface: Option<Surface>The graphical backend (on our case, vulkan)
Implementations§
Source§impl Window
impl Window
Sourcepub fn get_backend(&self) -> *mut void
pub fn get_backend(&self) -> *mut void
Get system specific window backend (for renderer)
Sourcepub fn connect_surface(&mut self, surface: Surface) -> Result<(), WResponse>
pub fn connect_surface(&mut self, surface: Surface) -> Result<(), WResponse>
Connects a specified vulkan surface with the current window
Sourcepub fn has_surface(&self) -> bool
pub fn has_surface(&self) -> bool
Returns if window does have a surface or not
Trait Implementations§
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl !Send for Window
impl !Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
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