Trait WindowPositionTrait

Source
pub trait WindowPositionTrait {
    // Required methods
    fn set_render_at_bottom<'life0, 'async_trait>(
        &'life0 self,
        render_at_bottom: bool,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_render_at_bottom<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn set_pos<'life0, 'async_trait>(
        &'life0 self,
        x: i32,
        y: i32,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn set_size<'life0, 'async_trait>(
        &'life0 self,
        width: u32,
        height: u32,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn set_scale<'life0, 'async_trait>(
        &'life0 self,
        scale: f32,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_pos<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = (i32, i32)> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_pos_blocking(&self) -> (i32, i32);
    fn get_size<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = (u32, u32)> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_size_blocking(&self) -> (u32, u32);
    fn get_scale<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn set_render_at_bottom<'life0, 'async_trait>( &'life0 self, render_at_bottom: bool, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_render_at_bottom<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn set_pos<'life0, 'async_trait>( &'life0 self, x: i32, y: i32, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn set_size<'life0, 'async_trait>( &'life0 self, width: u32, height: u32, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn set_scale<'life0, 'async_trait>( &'life0 self, scale: f32, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_pos<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = (i32, i32)> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_pos_blocking(&self) -> (i32, i32)

Source

fn get_size<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = (u32, u32)> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_size_blocking(&self) -> (u32, u32)

Source

fn get_scale<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§