Struct sfml::window::Context [] [src]

pub struct Context {
    // some fields omitted
}

Drawing context

Class holding a valid drawing context.

Methods

impl Context
[src]

fn new() -> Context

Create a new context

This function activates the new context.

Return New Context object

fn set_active(&mut self, active: bool)

Activate or deactivate explicitely a context

Arguments

  • active - True to activate, False to deactivate

Trait Implementations

impl Drop for Context
[src]

fn drop(&mut self)

Destructor for class Context.