# Trait gdk::GLContextExt [−] [src]

    pub trait GLContextExt {
        fn get_debug_enabled(&self) -> bool;
        fn get_display(&self) -> Option<Display>;
        fn get_forward_compatible(&self) -> bool;
        fn get_required_version(&self) -> (i32, i32);
        fn get_shared_context(&self) -> Option<GLContext>;
        fn get_use_es(&self) -> bool;
        fn get_version(&self) -> (i32, i32);
        fn get_window(&self) -> Option<Window>;
        fn is_legacy(&self) -> bool;
        fn make_current(&self);
        fn realize(&self) -> Result<(), Error>;
        fn set_debug_enabled(&self, enabled: bool);
        fn set_forward_compatible(&self, compatible: bool);
        fn set_required_version(&self, major: i32, minor: i32);
        fn set_use_es(&self, use_es: i32);
    }

## Required Methods

### `fn get_debug_enabled(&self) -> bool`

### `fn get_display(&self) -> Option<Display>`

### `fn get_forward_compatible(&self) -> bool`

### `fn get_required_version(&self) -> (i32, i32)`

### `fn get_shared_context(&self) -> Option<GLContext>`

### `fn get_use_es(&self) -> bool`

### `fn get_version(&self) -> (i32, i32)`

### `fn get_window(&self) -> Option<Window>`

### `fn is_legacy(&self) -> bool`

### `fn make_current(&self)`

### `fn realize(&self) -> Result<(), Error>`

### `fn set_debug_enabled(&self, enabled: bool)`

### `fn set_forward_compatible(&self, compatible: bool)`

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

### `fn set_use_es(&self, use_es: i32)`

## Implementors

- `impl<O: IsA<GLContext>> GLContextExt for O`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)