Struct dmc::display::Display [] [src]

pub struct Display(_);

A handle to the platform-specific display backend.

On X11, for instance, it wraps a connection to the X server.

Methods

impl<'dpy> Display
[src]

Attempts to get one handle to the platform-specific display backend.

You should need only one.

X11-only specialization of open() where you can specify the name given to XOpenDisplay().

Attempts to create a Window with the given settings.

Same as create_window(), but immediately shows the window afterwards if it succeeds.

Attempts to create a backend-specific OpenGL context.

Sames as create_gl_context(), but attempts to get a context that is not hardware-accelerated (on some platforms, this might try to load the Mesa driver). The use case for this is simple apps that don't specifically need a lot of perf, and would rather prefer saving battery power.

This won't attempt to fall back to the default implementation - in other words, this will succeed only if it is certain that there is a software implementation available AND a context could be created out of it.

Attempts to create an OpenGL context from a dynamically-loaded library.

Trait Implementations

impl Debug for Display
[src]

Formats the value using the given formatter.