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.

Finalise the builder and return an instance.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.