pub struct Crtc { /* private fields */ }Expand description
Structure representing CRTC.
Implementations§
Source§impl Crtc
impl Crtc
Sourcepub fn new(crtc: drmModeCrtcPtr) -> Self
pub fn new(crtc: drmModeCrtcPtr) -> Self
Crtc constructor.
Does not check if passed arguments are valid.
Source§impl Crtc
impl Crtc
pub fn get_crtc_id(&self) -> CrtcId
pub fn get_buffer_id(&self) -> u32
pub fn get_width(&self) -> u32
pub fn get_height(&self) -> u32
pub fn get_mode_valid(&self) -> bool
pub fn get_gamma_size(&self) -> isize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Crtc
impl RefUnwindSafe for Crtc
impl !Send for Crtc
impl !Sync for Crtc
impl Unpin for Crtc
impl UnwindSafe for Crtc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more