Struct glfw::Monitor [] [src]

pub struct Monitor {
    // some fields omitted
}

A struct that wraps a *GLFWmonitor handle.

Methods

impl Monitor
[src]

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

Wrapper for glfwGetMonitorPos.

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

Wrapper for glfwGetMonitorPhysicalSize.

fn get_name(&self) -> String

Wrapper for glfwGetMonitorName.

fn get_video_modes(&self) -> Vec<VidMode>

Wrapper for glfwGetVideoModes.

fn get_video_mode(&self) -> Option<VidMode>

Wrapper for glfwGetVideoMode.

fn set_gamma(&mut self, gamma: f32)

Wrapper for glfwSetGamma.

fn get_gamma_ramp(&self) -> GammaRamp

Wrapper for glfwGetGammaRamp.

fn set_gamma_ramp(&mut self, ramp: &mut GammaRamp)

Wrapper for glfwSetGammaRamp.

Trait Implementations

impl Debug for Monitor
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.