pub struct SelectionBand {
pub baseline_y: f32,
pub x0: f32,
pub x1: f32,
}Expand description
One selection highlight rectangle, in run-local coords.
Selection spanning several lines yields one band per line rather than one merged span, so the painter can place each on its own baseline.
Fields§
§baseline_y: f32Baseline of the line this band sits on, measured from the first line’s baseline. Zero for the first line.
x0: f32Visual left edge from the run origin.
x1: f32Visual right edge from the run origin.
Trait Implementations§
Source§impl Clone for SelectionBand
impl Clone for SelectionBand
Source§fn clone(&self) -> SelectionBand
fn clone(&self) -> SelectionBand
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 moreSource§impl Debug for SelectionBand
impl Debug for SelectionBand
Source§impl PartialEq for SelectionBand
impl PartialEq for SelectionBand
Source§fn eq(&self, other: &SelectionBand) -> bool
fn eq(&self, other: &SelectionBand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SelectionBand
impl StructuralPartialEq for SelectionBand
Auto Trait Implementations§
impl Freeze for SelectionBand
impl RefUnwindSafe for SelectionBand
impl Send for SelectionBand
impl Sync for SelectionBand
impl Unpin for SelectionBand
impl UnsafeUnpin for SelectionBand
impl UnwindSafe for SelectionBand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.