[][src]Trait gstreamer_gl::GLWindowExt

pub trait GLWindowExt: 'static {
    pub fn controls_viewport(&self) -> bool;
pub fn draw(&self);
pub fn get_context(&self) -> Option<GLContext>;
pub fn get_surface_dimensions(&self) -> (u32, u32);
pub fn handle_events(&self, handle_events: bool);
pub fn has_output_surface(&self) -> bool;
pub fn queue_resize(&self);
pub fn quit(&self);
pub fn resize(&self, width: u32, height: u32);
pub fn run(&self);
pub fn send_key_event(&self, event_type: &str, key_str: &str);
pub fn send_mouse_event(
        &self,
        event_type: &str,
        button: i32,
        posx: f64,
        posy: f64
    );
pub fn send_scroll_event(
        &self,
        posx: f64,
        posy: f64,
        delta_x: f64,
        delta_y: f64
    );
pub fn set_preferred_size(&self, width: i32, height: i32);
pub fn set_render_rectangle(
        &self,
        x: i32,
        y: i32,
        width: i32,
        height: i32
    ) -> Result<(), BoolError>;
pub fn show(&self);
pub fn connect_key_event<F: Fn(&Self, &str, &str) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_mouse_event<F: Fn(&Self, &str, i32, f64, f64) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

pub fn controls_viewport(&self) -> bool[src]

pub fn draw(&self)[src]

pub fn get_context(&self) -> Option<GLContext>[src]

pub fn get_surface_dimensions(&self) -> (u32, u32)[src]

pub fn handle_events(&self, handle_events: bool)[src]

pub fn has_output_surface(&self) -> bool[src]

pub fn queue_resize(&self)[src]

pub fn quit(&self)[src]

pub fn resize(&self, width: u32, height: u32)[src]

pub fn run(&self)[src]

pub fn send_key_event(&self, event_type: &str, key_str: &str)[src]

pub fn send_mouse_event(
    &self,
    event_type: &str,
    button: i32,
    posx: f64,
    posy: f64
)
[src]

pub fn send_scroll_event(
    &self,
    posx: f64,
    posy: f64,
    delta_x: f64,
    delta_y: f64
)
[src]

pub fn set_preferred_size(&self, width: i32, height: i32)[src]

pub fn set_render_rectangle(
    &self,
    x: i32,
    y: i32,
    width: i32,
    height: i32
) -> Result<(), BoolError>
[src]

pub fn show(&self)[src]

pub fn connect_key_event<F: Fn(&Self, &str, &str) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_mouse_event<F: Fn(&Self, &str, i32, f64, f64) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Loading content...

Implementors

impl<O: IsA<GLWindow>> GLWindowExt for O[src]

Loading content...