Struct mini_gl_fb::config::ConfigBuilder[][src]

pub struct ConfigBuilder { /* fields omitted */ }
Expand description

Builder for Config.

Implementations

Sets the pixel dimensions of the buffer. The buffer will automatically stretch to fill the whole window. By default this will be the same as the window_size.

If this is true, the window created by mini_gl_fb will be set to resizable. This can be changed later. Please note that the buffer itself will not be automatically resized, only the viewport.

The title of the window that will be created.

The logical size of the window that gets created. On HiDPI screens the actual size may be larger than this

By default, the origin of the buffer is the bottom-left. This is known as “inverted Y”, as most screen-space coordinate systems begin from the top-left. By explicitly setting this option to false, you can switch to screen-space coordinates rather than OpenGL coordinates. Otherwise, you will have to invert all mouse events received from winit/glutin.

Builds a new Config.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.