[][src]Struct raylib::core::RaylibBuilder

pub struct RaylibBuilder { /* fields omitted */ }

A builder that allows more customization of the game window shown to the user before the RaylibHandle is created.

Methods

impl RaylibBuilder[src]

Shows the raylib logo at startup.

pub fn fullscreen(&mut self) -> &mut Self[src]

Sets the window to be fullscreen.

pub fn resizable(&mut self) -> &mut Self[src]

Sets the window to be resizable.

pub fn undecorated(&mut self) -> &mut Self[src]

Sets the window to be undecorated (without a border).

pub fn transparent(&mut self) -> &mut Self[src]

Sets the window to be transparent.

pub fn msaa_4x(&mut self) -> &mut Self[src]

Hints that 4x MSAA (anti-aliasing) should be enabled. The system's graphics drivers may override this setting.

pub fn vsync(&mut self) -> &mut Self[src]

Hints that vertical sync (VSync) should be enabled. The system's graphics drivers may override this setting.

pub fn width(&mut self, w: i32) -> &mut Self[src]

Sets the window's width.

pub fn height(&mut self, h: i32) -> &mut Self[src]

Sets the window's height.

pub fn size(&mut self, w: i32, h: i32) -> &mut Self[src]

Sets the window's width and height.

pub fn title(&mut self, text: &str) -> &mut Self[src]

Sets the window title.

pub fn build(&self) -> (RaylibHandle, RaylibThread)[src]

Builds and initializes a Raylib window.

Panics

Attempting to initialize Raylib more than once will result in a panic.

Trait Implementations

impl Debug for RaylibBuilder[src]

impl Default for RaylibBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.