[−][src]Struct basalt::Basalt
Methods
impl Basalt
[src]
pub fn new(options: Options) -> Result<Arc<Self>, String>
[src]
pub fn input_ref(&self) -> &Arc<Input>
[src]
pub fn limits(&self) -> Arc<Limits>
[src]
pub fn current_scale(&self) -> f32
[src]
pub fn set_scale(&self, to: f32)
[src]
pub fn add_scale(&self, amt: f32)
[src]
pub fn interface(&self) -> Arc<Interface>
[src]
pub fn interface_ref(&self) -> &Arc<Interface>
[src]
pub fn atlas(&self) -> Arc<Atlas>
[src]
pub fn atlas_ref(&self) -> &Arc<Atlas>
[src]
pub fn device(&self) -> Arc<Device>
[src]
pub fn device_ref(&self) -> &Arc<Device>
[src]
pub fn transfer_queue(&self) -> Arc<Queue>
[src]
pub fn transfer_queue_ref(&self) -> &Arc<Queue>
[src]
pub fn graphics_queue(&self) -> Arc<Queue>
[src]
pub fn graphics_queue_ref(&self) -> &Arc<Queue>
[src]
pub fn physical_device_index(&self) -> usize
[src]
pub fn surface(&self) -> Arc<Surface<Arc<dyn BasaltWindow + Send + Sync>>>
[src]
pub fn surface_ref(&self) -> &Arc<Surface<Arc<dyn BasaltWindow + Send + Sync>>>
[src]
pub fn swap_caps(&self) -> &Capabilities
[src]
pub fn wants_exit(&self) -> bool
[src]
pub fn window(&self) -> Arc<dyn BasaltWindow + Send + Sync>
[src]
pub fn wait_for_exit(&self) -> Result<(), String>
[src]
This will only work if the basalt is handling the loop thread. This
is done via the method spawn_app_loop()
pub fn spawn_app_loop(self: &Arc<Self>)
[src]
pub fn resize(&self, w: u32, h: u32)
[src]
only works with app loop
pub fn fullscreen(&self, fullscreen: bool)
[src]
only works with app loop
pub fn exit(&self)
[src]
only works with app loop
pub fn do_every(&self, func: Arc<dyn Fn() + Send + Sync>)
[src]
only works with app loop
pub fn fps(&self) -> usize
[src]
only works with app loop
pub fn app_loop(self: &Arc<Self>) -> Result<(), String>
[src]
Auto Trait Implementations
impl Send for Basalt
impl Sync for Basalt
impl Unpin for Basalt
impl !UnwindSafe for Basalt
impl !RefUnwindSafe for Basalt
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> SafeBorrow<T> for T
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,