pub struct ContextBuilder { /* private fields */ }
Expand description
A builder for Context
.
Implementations§
Source§impl ContextBuilder
impl ContextBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new ContextBuilder
with the default parameters:
cursor = false
vsync = true
display = ContextDisplay::None
Sourcepub fn with_display(self, display: ContextDisplay) -> Self
pub fn with_display(self, display: ContextDisplay) -> Self
Sets the display kind of the Context
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContextBuilder
impl RefUnwindSafe for ContextBuilder
impl Send for ContextBuilder
impl Sync for ContextBuilder
impl Unpin for ContextBuilder
impl UnwindSafe for ContextBuilder
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