pub struct Pane {
pub doc: DocumentId,
pub sels: SelectionSet,
pub view_top: usize,
pub hscroll: DisplayColumn,
pub desired_column: Option<DisplayColumn>,
}Expand description
One pane: the document it shows plus its own view state.
Fields§
§doc: DocumentId§sels: SelectionSet§view_top: usize§hscroll: DisplayColumnHorizontal display-cell origin (0031 R6): glyphs, overlays and every caret project through this; fixed left margins never do.
desired_column: Option<DisplayColumn>Desired cell retained while vertical motions cross short/wide rows.
Implementations§
Source§impl Pane
impl Pane
Sourcepub fn reveal_column(&mut self, column: DisplayColumn, width: usize)
pub fn reveal_column(&mut self, column: DisplayColumn, width: usize)
Minimal horizontal scrolling: preserve the origin unless the
caret leaves it. width is CONTENT width — every fixed left
margin (sidebar, blame, number gutter) is excluded.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pane
impl<'de> Deserialize<'de> for Pane
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Pane
impl StructuralPartialEq for Pane
Auto Trait Implementations§
impl Freeze for Pane
impl RefUnwindSafe for Pane
impl Send for Pane
impl Sync for Pane
impl Unpin for Pane
impl UnsafeUnpin for Pane
impl UnwindSafe for Pane
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.