pub struct WindowRenderOptions {Show 14 fields
pub feathering_enabled: bool,
pub feather_width: f32,
pub optical_vertical_text_alignment_enabled: bool,
pub text_hinting: WindowTextHinting,
pub stem_darkening: WindowStemDarkening,
pub text_coverage_policy: WindowTextCoveragePolicy,
pub text_subpixel_order: WindowTextSubpixelOrder,
pub use_system_text_smoothing: bool,
pub output_color_primaries: WindowOutputColorPrimaries,
pub dynamic_range_mode: WindowDynamicRangeMode,
pub tone_mapping_mode: WindowToneMappingMode,
pub color_management_mode: WindowColorManagementMode,
pub sdr_content_brightness_nits: f32,
pub use_system_sdr_content_brightness: bool,
}Fields§
§feathering_enabled: bool§feather_width: f32§optical_vertical_text_alignment_enabled: bool§text_hinting: WindowTextHinting§stem_darkening: WindowStemDarkening§text_coverage_policy: WindowTextCoveragePolicy§text_subpixel_order: WindowTextSubpixelOrder§use_system_text_smoothing: boolFollow the system’s text smoothing: when it requests RGB/BGR, render LCD
text in its subpixel order. An explicit RGB or BGR
text_subpixel_order still chooses the order. On by default.
output_color_primaries: WindowOutputColorPrimaries§dynamic_range_mode: WindowDynamicRangeMode§tone_mapping_mode: WindowToneMappingMode§color_management_mode: WindowColorManagementMode§sdr_content_brightness_nits: f32§use_system_sdr_content_brightness: boolImplementations§
Source§impl WindowRenderOptions
impl WindowRenderOptions
pub const fn new(feathering_enabled: bool, feather_width: f32) -> Self
pub const fn with_optical_vertical_text_alignment_enabled( self, enabled: bool, ) -> Self
pub const fn with_text_hinting(self, hinting: WindowTextHinting) -> Self
pub const fn with_stem_darkening(self, darkening: WindowStemDarkening) -> Self
pub const fn with_text_coverage_policy( self, policy: WindowTextCoveragePolicy, ) -> Self
pub const fn with_text_subpixel_order( self, order: WindowTextSubpixelOrder, ) -> Self
pub const fn with_system_text_smoothing_enabled(self, enabled: bool) -> Self
pub const fn with_output_color_primaries( self, primaries: WindowOutputColorPrimaries, ) -> Self
pub const fn with_dynamic_range_mode(self, mode: WindowDynamicRangeMode) -> Self
pub const fn with_tone_mapping_mode(self, mode: WindowToneMappingMode) -> Self
pub const fn with_color_management_mode( self, mode: WindowColorManagementMode, ) -> Self
pub const fn with_sdr_content_brightness_nits( self, brightness_nits: f32, ) -> Self
pub const fn with_system_sdr_content_brightness_enabled( self, enabled: bool, ) -> Self
pub fn clamped(self) -> Self
Trait Implementations§
Source§impl Clone for WindowRenderOptions
impl Clone for WindowRenderOptions
impl Copy for WindowRenderOptions
Source§impl Debug for WindowRenderOptions
impl Debug for WindowRenderOptions
Source§impl PartialEq for WindowRenderOptions
impl PartialEq for WindowRenderOptions
impl StructuralPartialEq for WindowRenderOptions
Auto Trait Implementations§
impl Forget for WindowRenderOptions
impl Freeze for WindowRenderOptions
impl Move for WindowRenderOptions
impl RefUnwindSafe for WindowRenderOptions
impl Send for WindowRenderOptions
impl Sync for WindowRenderOptions
impl Unpin for WindowRenderOptions
impl UnsafeUnpin for WindowRenderOptions
impl UnwindSafe for WindowRenderOptions
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