[go: up one dir, main page]

Trait drm::control::Device [] [src]

pub trait Device: Sized + Device {
    fn resource_handles(&self) -> Result<ResourceHandles> { ... }
fn plane_handles(&self) -> Result<PlaneResourceHandles> { ... }
fn resource_info<T>(&self, handle: T::Handle) -> Result<T>
    where
        T: ResourceInfo
, { ... }
fn set_crtc(
        &self,
        crtc: Handle,
        fb: Handle,
        cons: &[Handle],
        position: (u32, u32),
        mode: Option<Mode>
    ) -> Result<()> { ... }
fn create_framebuffer<U>(&self, buffer: &U) -> Result<Info>
    where
        U: Buffer
, { ... } }

A trait for devices that provide control (modesetting) functionality.

Provided Methods

Attaches a framebuffer to a CRTC's built-in plane, attaches the CRTC to a connector, and sets the CRTC's mode to output the pixel data.

Creates a framebuffer from a Buffer, returning framebuffer::Info.

Implementors