pub struct WindowRenderOptions {Show 14 fields
pub feathering_enabled: bool,
pub feather_width: f32,
pub optical_vertical_text_alignment_enabled: bool,
pub text_hinting: TextRenderHinting,
pub stem_darkening: TextRenderStemDarkening,
pub text_coverage_policy: TextRenderCoveragePolicy,
pub text_subpixel_order: TextSubpixelOrder,
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: TextRenderHinting§stem_darkening: TextRenderStemDarkening§text_coverage_policy: TextRenderCoveragePolicy§text_subpixel_order: TextSubpixelOrder§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, ) -> WindowRenderOptions
pub const fn with_optical_vertical_text_alignment_enabled( self, enabled: bool, ) -> WindowRenderOptions
pub const fn with_text_hinting( self, hinting: TextRenderHinting, ) -> WindowRenderOptions
pub const fn with_stem_darkening( self, darkening: TextRenderStemDarkening, ) -> WindowRenderOptions
pub const fn with_text_coverage_policy( self, policy: TextRenderCoveragePolicy, ) -> WindowRenderOptions
pub const fn with_text_subpixel_order( self, order: TextSubpixelOrder, ) -> WindowRenderOptions
pub const fn with_system_text_smoothing_enabled( self, enabled: bool, ) -> WindowRenderOptions
pub const fn with_output_color_primaries( self, primaries: WindowOutputColorPrimaries, ) -> WindowRenderOptions
pub const fn with_dynamic_range_mode( self, mode: WindowDynamicRangeMode, ) -> WindowRenderOptions
pub const fn with_tone_mapping_mode( self, mode: WindowToneMappingMode, ) -> WindowRenderOptions
pub const fn with_color_management_mode( self, mode: WindowColorManagementMode, ) -> WindowRenderOptions
pub const fn with_sdr_content_brightness_nits( self, brightness_nits: f32, ) -> WindowRenderOptions
pub const fn with_system_sdr_content_brightness_enabled( self, enabled: bool, ) -> WindowRenderOptions
pub fn clamped(self) -> WindowRenderOptions
Trait Implementations§
Source§impl Clone for WindowRenderOptions
impl Clone for WindowRenderOptions
Source§fn clone(&self) -> WindowRenderOptions
fn clone(&self) -> WindowRenderOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.