WindowPositionTrait

Trait WindowPositionTrait 

Source
pub trait WindowPositionTrait {
    // Required methods
    fn set_render_at_bottom(
        &self,
        render_at_bottom: bool,
    ) -> Result<(), ObsError>;
    fn get_render_at_bottom(&self) -> Result<bool, ObsError>;
    fn set_pos(&self, x: i32, y: i32) -> Result<(), ObsError>;
    fn set_size(&self, width: u32, height: u32) -> Result<(), ObsError>;
    fn get_pos(&self) -> Result<(i32, i32), ObsError>;
    fn get_size(&self) -> Result<(u32, u32), ObsError>;
}

Required Methods§

Source

fn set_render_at_bottom(&self, render_at_bottom: bool) -> Result<(), ObsError>

If create_child is true, sets whether the window is rendered at the bottom of the Z order.

Otherwise, this function has no effect.

Source

fn get_render_at_bottom(&self) -> Result<bool, ObsError>

Returns true if the window is rendered at the bottom of the Z order. If create_child was false during creation, this function always returns false.

Source

fn set_pos(&self, x: i32, y: i32) -> Result<(), ObsError>

Source

fn set_size(&self, width: u32, height: u32) -> Result<(), ObsError>

Source

fn get_pos(&self) -> Result<(i32, i32), ObsError>

Source

fn get_size(&self) -> Result<(u32, u32), ObsError>

Implementors§