Struct prototty_glutin::ContextBuilder
source · pub struct ContextBuilder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> ContextBuilder<'a>
impl<'a> ContextBuilder<'a>
pub fn new_with_font(font: &'a [u8]) -> Self
pub fn with_title<T: Into<String>>(self, title: T) -> Self
pub fn with_cell_dimensions(self, size: Size) -> Self
pub fn with_window_dimensions(self, size: Size) -> Self
pub fn with_min_window_dimensions(self, size: Size) -> Self
pub fn with_max_window_dimensions(self, size: Size) -> Self
pub fn with_vsync(self, vsync: bool) -> Self
pub fn with_underline_width(self, underline_width: u32) -> Self
pub fn with_underline_position(self, underline_position: u32) -> Self
pub fn with_bold_font(self, bold_font: &'a [u8]) -> Self
pub fn with_font_scale(self, x: f32, y: f32) -> Self
pub fn with_bold_font_scale(self, x: f32, y: f32) -> Self
pub fn with_max_grid_size(self, size: Size) -> Self
pub fn build(self) -> Result<Context<'a>>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ContextBuilder<'a>
impl<'a> !Send for ContextBuilder<'a>
impl<'a> !Sync for ContextBuilder<'a>
impl<'a> Unpin for ContextBuilder<'a>
impl<'a> !UnwindSafe for ContextBuilder<'a>
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