Struct glerminal::terminal::TerminalBuilder
[−]
[src]
pub struct TerminalBuilder { /* fields omitted */ }
A builder for the Terminal
. Includes some settings that can be set before building.
See terminal mod for examples and more detailed documentation.
Methods
impl TerminalBuilder
[src]
pub fn new() -> TerminalBuilder
[src]
Creates a new terminal builder with default settings.
pub fn with_title<T: Into<String>>(self, title: T) -> TerminalBuilder
[src]
Sets the title for the Terminal
.
pub fn with_dimensions(self, dimensions: (u32, u32)) -> TerminalBuilder
[src]
Sets the dimensions the Terminal
is to be opened with.
pub fn with_clear_color(
self,
clear_color: (f32, f32, f32, f32)
) -> TerminalBuilder
[src]
self,
clear_color: (f32, f32, f32, f32)
) -> TerminalBuilder
Sets the clear color of the terminal.
pub fn with_font(self, font: Font) -> TerminalBuilder
[src]
Changes the font that the terminal uses.
pub fn with_visibility(self, visibility: bool) -> TerminalBuilder
[src]
Changes the visibility that the terminal will be opened with. If headless, visibility will not matter.
pub fn with_headless(self, headless: bool) -> TerminalBuilder
[src]
Changes the visibility that the terminal will be opened with
pub fn with_text_buffer_aspect_ratio(self, tbar: bool) -> TerminalBuilder
[src]
Changes whether the aspect ratio should be retrieved from TextBuffer instead of the original resolution of the screen.
If set to false, the aspect ratio used to make black bars for the screen will be fetched from the original resolution of the screen; This will cause the fonts to strech a bit though.
If set to true (default), the aspect ratio will be fetched from the TextBuffer, causing almost any resolution to have black bars to make up for the missing spaces.
pub fn build(self) -> Terminal
[src]
Builds the actual terminal and opens the window