pub struct SurfaceProps(/* private fields */);
Implementations§
Source§impl SurfaceProps
impl SurfaceProps
pub const MAX_CONTRAST_INCLUSIVE: scalar = 1f32
pub const MIN_CONTRAST_INCLUSIVE: scalar = 0f32
pub const MAX_GAMMA_EXCLUSIVE: scalar = 4f32
pub const MIN_GAMMA_INCLUSIVE: scalar = 0f32
pub fn new( flags: SurfacePropsFlags, pixel_geometry: PixelGeometry, ) -> SurfaceProps
pub fn new_with_text_properties( flags: SurfacePropsFlags, pixel_geometry: PixelGeometry, text_contrast: scalar, text_gamma: scalar, ) -> SurfaceProps
pub fn flags(self) -> SurfacePropsFlags
pub fn clone_with_pixel_geometry( &self, new_pixel_geometry: PixelGeometry, ) -> Self
pub fn pixel_geometry(self) -> PixelGeometry
pub fn text_contrast(self) -> scalar
pub fn text_gamma(self) -> scalar
pub fn is_use_device_independent_fonts(self) -> bool
pub fn is_always_dither(self) -> bool
Trait Implementations§
Source§impl Clone for SurfaceProps
impl Clone for SurfaceProps
Source§fn clone(&self) -> SurfaceProps
fn clone(&self) -> SurfaceProps
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SurfaceProps
impl Debug for SurfaceProps
Source§impl Default for SurfaceProps
impl Default for SurfaceProps
Source§impl PartialEq for SurfaceProps
impl PartialEq for SurfaceProps
impl Copy for SurfaceProps
impl Eq for SurfaceProps
Auto Trait Implementations§
impl Freeze for SurfaceProps
impl RefUnwindSafe for SurfaceProps
impl Send for SurfaceProps
impl Sync for SurfaceProps
impl Unpin for SurfaceProps
impl UnwindSafe for SurfaceProps
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