Skip to main content

DetailAreas

Struct DetailAreas 

Source
pub struct DetailAreas {
Show 60 fields pub commits: Option<Rect>, pub bottom_left: Option<Rect>, pub staged_sub: Option<Rect>, pub unstaged_sub: Option<Rect>, pub conflicts_sub: Option<Rect>, pub bottom_right: Option<Rect>, pub commit_details: Option<Rect>, pub local_branches: Option<Rect>, pub remote_branches: Option<Rect>, pub local_tags: Option<Rect>, pub remote_tags: Option<Rect>, pub tab_bar: Option<Rect>, pub files: Option<Rect>, pub file_content: Option<Rect>, pub remotes: Option<Rect>, pub stashes: Option<Rect>, pub stashed_files: Option<Rect>, pub worktrees: Option<Rect>, pub inspect_horizontal_splitter: Option<Rect>, pub inspect_vertical_splitter: Option<Rect>, pub workspace_main_splitter: Option<Rect>, pub forge_issues: Option<Rect>, pub forge_issue_details: Option<Rect>, pub forge_vertical_splitter: Option<Rect>, pub forge_prs: Option<Rect>, pub forge_pr_details: Option<Rect>, pub forge_pr_vertical_splitter: Option<Rect>, pub files_horizontal_splitter: Option<Rect>, pub branches_horizontal_splitter: Option<Rect>, pub stashes_horizontal_splitter: Option<Rect>, pub stashes_vertical_splitter: Option<Rect>, pub overview_horizontal_splitter: Option<Rect>, pub overview: Option<Rect>, pub stats: Option<Rect>, pub graph: Option<Rect>, pub graph_inner: Option<Rect>, pub commits_inner: Option<Rect>, pub staged_sub_inner: Option<Rect>, pub unstaged_sub_inner: Option<Rect>, pub conflicts_sub_inner: Option<Rect>, pub changed_files_inner: Option<Rect>, pub local_branches_inner: Option<Rect>, pub remote_branches_inner: Option<Rect>, pub local_tags_inner: Option<Rect>, pub remotes_inner: Option<Rect>, pub stashes_inner: Option<Rect>, pub stashed_files_inner: Option<Rect>, pub files_inner: Option<Rect>, pub worktrees_inner: Option<Rect>, pub submodules: Option<Rect>, pub submodules_inner: Option<Rect>, pub reflog: Option<Rect>, pub reflog_inner: Option<Rect>, pub worktrees_offset: usize, pub submodules_offset: usize, pub reflog_offset: usize, pub forge_issues_offset: usize, pub forge_prs_offset: usize, pub commit_popup: Option<Rect>, pub commit_popup_parent: Option<Rect>,
}
Expand description

Bounding boxes of the interactive panels in the detail view. Recorded each frame so the mouse handler can do hit-testing without duplicating the layout logic.

Fields§

§commits: Option<Rect>

Commits table (top panel).

§bottom_left: Option<Rect>

Left side of the bottom panel. In the uncommitted view this is the outer Staging Area block; for a real commit it is the Changed Files block.

§staged_sub: Option<Rect>

Staged sub-panel (only in the uncommitted / staging view).

§unstaged_sub: Option<Rect>

Unstaged sub-panel (only in the uncommitted / staging view).

§conflicts_sub: Option<Rect>

Conflicts sub-panel (only in the uncommitted / staging view).

§bottom_right: Option<Rect>

Diff / Staging Details panel (right side of the bottom panel).

§commit_details: Option<Rect>

Commit details panel (bottom-left bottom-half panel).

§local_branches: Option<Rect>

Local branches panel in Branches tab.

§remote_branches: Option<Rect>

Remote branches panel in Branches tab.

§local_tags: Option<Rect>

Local tags panel in Tags tab.

§remote_tags: Option<Rect>

Remote tags panel in Tags tab.

§tab_bar: Option<Rect>

Bounding box of the tab bar itself.

§files: Option<Rect>

Bounding box of the files list.

§file_content: Option<Rect>

Bounding box of the file content preview.

§remotes: Option<Rect>

Bounding box of the remotes panel.

§stashes: Option<Rect>

Bounding box of the stashes panel.

§stashed_files: Option<Rect>

Bounding box of the stashed files panel.

§worktrees: Option<Rect>

Bounding box of the worktrees panel.

§inspect_horizontal_splitter: Option<Rect>

Bounding box of the horizontal splitter in inspect view.

§inspect_vertical_splitter: Option<Rect>

Bounding box of the vertical splitter in left panel of inspect view.

§workspace_main_splitter: Option<Rect>

Bounding box of the main vertical splitter in workspace tab.

§forge_issues: Option<Rect>§forge_issue_details: Option<Rect>§forge_vertical_splitter: Option<Rect>§forge_prs: Option<Rect>§forge_pr_details: Option<Rect>§forge_pr_vertical_splitter: Option<Rect>§files_horizontal_splitter: Option<Rect>

Bounding box of the horizontal splitter in files tab.

§branches_horizontal_splitter: Option<Rect>

Bounding box of the horizontal splitter in branches tab.

§stashes_horizontal_splitter: Option<Rect>

Bounding box of the horizontal splitter in stashes tab.

§stashes_vertical_splitter: Option<Rect>

Bounding box of the vertical splitter in left panel of stashes tab.

§overview_horizontal_splitter: Option<Rect>

Bounding box of the horizontal splitter in overview tab.

§overview: Option<Rect>

Bounding box of the overview panel in Overview mode.

§stats: Option<Rect>

Bounding box of the stats panel in Overview mode.

§graph: Option<Rect>

Bounding box of the graph panel.

§graph_inner: Option<Rect>

Inner area of the graph list.

§commits_inner: Option<Rect>

Inner area of commits list.

§staged_sub_inner: Option<Rect>

Inner area of staged files list.

§unstaged_sub_inner: Option<Rect>

Inner area of unstaged files list.

§conflicts_sub_inner: Option<Rect>

Inner area of conflicts files list.

§changed_files_inner: Option<Rect>

Inner area of changed files list.

§local_branches_inner: Option<Rect>

Inner area of local branches list.

§remote_branches_inner: Option<Rect>

Inner area of remote branches list.

§local_tags_inner: Option<Rect>

Inner area of local tags list.

§remotes_inner: Option<Rect>

Inner area of remotes list.

§stashes_inner: Option<Rect>

Inner area of stashes list.

§stashed_files_inner: Option<Rect>

Inner area of stashed files list.

§files_inner: Option<Rect>

Inner area of files list in Files tab.

§worktrees_inner: Option<Rect>

Inner area of worktrees list.

§submodules: Option<Rect>

Bounding box of submodules list.

§submodules_inner: Option<Rect>

Inner area of submodules list.

§reflog: Option<Rect>

Bounding box of the reflog list.

§reflog_inner: Option<Rect>

Inner area of the reflog list.

§worktrees_offset: usize

The first row each of these lists drew (its scroll offset), recorded after drawing so a mouse click maps to the row it hit, not to the row at that height in an unscrolled list.

§submodules_offset: usize§reflog_offset: usize§forge_issues_offset: usize§forge_prs_offset: usize§commit_popup: Option<Rect>

Bounding box of the commit message popup.

§commit_popup_parent: Option<Rect>

Bounding box of the parent area the commit popup was centered inside.

Trait Implementations§

Source§

impl Clone for DetailAreas

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for DetailAreas

Source§

impl Default for DetailAreas

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

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>

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)

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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send> ⓘ

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.