pub struct DrmOutputOptions {
pub scaling: f64,
pub orientation: SurfaceOrientation,
pub enable_initial_buffer_swapping: bool,
pub initial_buffer_swapping_color: Color,
pub video_mode: Option<PixelSize>,
pub connector_type: Option<DrmConnectorType>,
pub connector_type_id: Option<u32>,
}Expand description
DRM Output Options
Fields§
§scaling: f64Scaling factor. Default: 1.0
orientation: SurfaceOrientationThe orientation of the screen relative to the frame buffer memory orientation Default: Normal
enable_initial_buffer_swapping: boolIf true an two cycle buffer swapping is processed at init. Default: True
initial_buffer_swapping_color: ColorColor for enable_initial_buffer_swapping
Default: R0 G0 B0 A0
video_mode: Option<PixelSize>Specifies the video mode with which the DrmOutput should be created, if it is not found it will fallback to the preferred mode. If null, the preferred mode will be used.
connector_type: Option<DrmConnectorType>Specifies whether our connector is HDMI-A, DVI, DisplayPort, etc. If null, the preferred connector will be used.
connector_type_id: Option<u32>Specifies the connector type ID used with connector_type.
If null, the preferred connector type ID will be used.
Trait Implementations§
Source§impl Clone for DrmOutputOptions
impl Clone for DrmOutputOptions
Source§impl Debug for DrmOutputOptions
impl Debug for DrmOutputOptions
Source§impl Default for DrmOutputOptions
impl Default for DrmOutputOptions
Source§impl PartialEq for DrmOutputOptions
impl PartialEq for DrmOutputOptions
impl StructuralPartialEq for DrmOutputOptions
Auto Trait Implementations§
impl Freeze for DrmOutputOptions
impl RefUnwindSafe for DrmOutputOptions
impl Send for DrmOutputOptions
impl Sync for DrmOutputOptions
impl Unpin for DrmOutputOptions
impl UnsafeUnpin for DrmOutputOptions
impl UnwindSafe for DrmOutputOptions
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more