[go: up one dir, main page]

GLAreaExt

Trait GLAreaExt 

Source
pub trait GLAreaExt: IsA<GLArea> + 'static {
Show 29 methods // Provided methods fn attach_buffers(&self) { ... } fn allowed_apis(&self) -> GLAPI { ... } fn api(&self) -> GLAPI { ... } fn is_auto_render(&self) -> bool { ... } fn context(&self) -> Option<GLContext> { ... } fn error(&self) -> Option<Error> { ... } fn has_depth_buffer(&self) -> bool { ... } fn has_stencil_buffer(&self) -> bool { ... } fn required_version(&self) -> (i32, i32) { ... } fn uses_es(&self) -> bool { ... } fn make_current(&self) { ... } fn queue_render(&self) { ... } fn set_allowed_apis(&self, apis: GLAPI) { ... } fn set_auto_render(&self, auto_render: bool) { ... } fn set_error(&self, error: Option<&Error>) { ... } fn set_has_depth_buffer(&self, has_depth_buffer: bool) { ... } fn set_has_stencil_buffer(&self, has_stencil_buffer: bool) { ... } fn set_required_version(&self, major: i32, minor: i32) { ... } fn set_use_es(&self, use_es: bool) { ... } fn connect_create_context<F: Fn(&Self) -> Option<GLContext> + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_render<F: Fn(&Self, &GLContext) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_resize<F: Fn(&Self, i32, i32) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_allowed_apis_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_api_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_auto_render_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_context_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_has_depth_buffer_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_has_stencil_buffer_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_use_es_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methodsยง

Source

fn attach_buffers(&self)

Source

fn allowed_apis(&self) -> GLAPI

Available on crate feature v4_12 only.
Source

fn api(&self) -> GLAPI

Available on crate feature v4_12 only.
Source

fn is_auto_render(&self) -> bool

Source

fn context(&self) -> Option<GLContext>

Source

fn error(&self) -> Option<Error>

Source

fn has_depth_buffer(&self) -> bool

Source

fn has_stencil_buffer(&self) -> bool

Source

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

Source

fn uses_es(&self) -> bool

๐Ÿ‘ŽDeprecated: Since 4.12
Source

fn make_current(&self)

Source

fn queue_render(&self)

Source

fn set_allowed_apis(&self, apis: GLAPI)

Available on crate feature v4_12 only.
Source

fn set_auto_render(&self, auto_render: bool)

Source

fn set_error(&self, error: Option<&Error>)

Source

fn set_has_depth_buffer(&self, has_depth_buffer: bool)

Source

fn set_has_stencil_buffer(&self, has_stencil_buffer: bool)

Source

fn set_required_version(&self, major: i32, minor: i32)

Source

fn set_use_es(&self, use_es: bool)

๐Ÿ‘ŽDeprecated: Since 4.12
Source

fn connect_create_context<F: Fn(&Self) -> Option<GLContext> + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_render<F: Fn(&Self, &GLContext) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_resize<F: Fn(&Self, i32, i32) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_allowed_apis_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Available on crate feature v4_12 only.
Source

fn connect_api_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Available on crate feature v4_12 only.
Source

fn connect_auto_render_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_context_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_has_depth_buffer_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_has_stencil_buffer_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_use_es_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

๐Ÿ‘ŽDeprecated: Since 4.12

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementorsยง