pub struct OffsetRounding {
pub x: bool,
pub y: bool,
}Expand description
The axes of a composite component’s offset that are rounded to the pixel grid.
This applies when the component has the ROUND_XY_TO_GRID flag. The
hinter selects the axes through
Hinter::round_composite_x_offset.
Fields§
§x: bool§y: boolTrait Implementations§
Source§impl Clone for OffsetRounding
impl Clone for OffsetRounding
Source§fn clone(&self) -> OffsetRounding
fn clone(&self) -> OffsetRounding
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 OffsetRounding
Source§impl Debug for OffsetRounding
impl Debug for OffsetRounding
Source§impl Default for OffsetRounding
impl Default for OffsetRounding
Source§fn default() -> OffsetRounding
fn default() -> OffsetRounding
Returns the “default value” for a type. Read more
impl Eq for OffsetRounding
Source§impl PartialEq for OffsetRounding
impl PartialEq for OffsetRounding
impl StructuralPartialEq for OffsetRounding
Auto Trait Implementations§
impl Freeze for OffsetRounding
impl RefUnwindSafe for OffsetRounding
impl Send for OffsetRounding
impl Sync for OffsetRounding
impl Unpin for OffsetRounding
impl UnsafeUnpin for OffsetRounding
impl UnwindSafe for OffsetRounding
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