pub struct ThreadSafeGlfw { /* private fields */ }
Expand description
A struct that represents a thread safe handle to a Glfw
Implementations§
Source§impl ThreadSafeGlfw
impl ThreadSafeGlfw
Sourcepub fn from(glfw: &mut Glfw) -> ThreadSafeGlfw
pub fn from(glfw: &mut Glfw) -> ThreadSafeGlfw
Creates a new Glfw
wrapper that can be shared between threads
Sourcepub fn set_swap_interval(&mut self, interval: SwapInterval)
pub fn set_swap_interval(&mut self, interval: SwapInterval)
Wrapper function, please refer to Glfw::set_swap_interval
Sourcepub fn extension_supported(&self, extension: &str) -> bool
pub fn extension_supported(&self, extension: &str) -> bool
Wrapper function, please refer to Glfw::extension_supported
Sourcepub fn get_time(&self) -> f64
pub fn get_time(&self) -> f64
Wrapper function, please refer to Glfw::get_time
Sourcepub fn set_time(&mut self, time: f64)
pub fn set_time(&mut self, time: f64)
Wrapper function, please refer to Glfw::set_time
Sourcepub fn get_timer_value(&self) -> u64
pub fn get_timer_value(&self) -> u64
Wrapper function, please refer to Glfw::get_timer_value
Sourcepub fn get_timer_frequency(&self) -> u64
pub fn get_timer_frequency(&self) -> u64
Wrapper function, please refer to Glfw::get_timer_frequency
Sourcepub fn post_empty_event(&self)
pub fn post_empty_event(&self)
Wrapper function, please refer to Glfw::post_empty_event
Trait Implementations§
Source§impl Debug for ThreadSafeGlfw
impl Debug for ThreadSafeGlfw
impl Send for ThreadSafeGlfw
Auto Trait Implementations§
impl Freeze for ThreadSafeGlfw
impl RefUnwindSafe for ThreadSafeGlfw
impl !Sync for ThreadSafeGlfw
impl Unpin for ThreadSafeGlfw
impl UnwindSafe for ThreadSafeGlfw
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more