Struct mterm::Builder [−][src]
pub struct Builder { /* fields omitted */ }
Expand description
Used to build the window to host the ASCII rendering.
Implementations
Create a new builder with default settings.
The default settings will produce a 800x600 window aligned to character cell size, the title “mterm” and the default built-in font.
Set the size of the window when it is created.
The size given is the number of pixels inside the window’s frame. On creation the frame size will be reduced so that there are no margins around the characters.
Set the title of the window.
Choose a font for rendering.
A FontData
structure can be created using the load_font_image
.
The font image passed in must contain 256 characters on a 16x16 equally
sized grid. The size of each character is determined by taking the
width and size of the data in FontData
and dividing it by 16.
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder