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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more