[][src]Struct basalt::Basalt

pub struct Basalt { /* fields omitted */ }

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 Unpin for Basalt

impl Sync for Basalt

impl !UnwindSafe for Basalt

impl !RefUnwindSafe for Basalt

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Content for T[src]

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> SetParameter for T