[−][src]Struct gpu::ContextBuilder
A builder for Context
.
Implementations
impl ContextBuilder
[src]
pub fn new() -> Self
[src]
Creates a new ContextBuilder
with the default parameters:
cursor = false
vsync = true
display = ContextDisplay::None
pub fn with_display(self, display: ContextDisplay) -> Self
[src]
Sets the display kind of the Context
.
pub fn cursor(self, cursor: bool) -> Self
[src]
Sets if we want a cursor for the created Context
.
pub fn vsync(self, vsync: bool) -> Self
[src]
Sets if we want vsync for the created Context
.
pub fn build(self) -> Context
[src]
Creates a new Context
with all the parameters specified in the ContextBuilder
.
Trait Implementations
impl Default for ContextBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContextBuilder
impl Send for ContextBuilder
impl Sync for ContextBuilder
impl Unpin for ContextBuilder
impl UnwindSafe for ContextBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,