[−][src]Struct raylib::core::RaylibBuilder
A builder that allows more customization of the game window shown to the user before the RaylibHandle
is created.
Methods
impl RaylibBuilder
[src]
pub fn with_logo(&mut self) -> &mut Self
[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]
fn default() -> RaylibBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for RaylibBuilder
impl Send for RaylibBuilder
impl Sync for RaylibBuilder
impl Unpin for RaylibBuilder
impl UnwindSafe for RaylibBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,