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 panel in Tags tab.
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.
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: usizeThe 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
impl Clone for DetailAreas
impl Copy for DetailAreas
Auto Trait Implementations§
impl Freeze for DetailAreas
impl RefUnwindSafe for DetailAreas
impl Send for DetailAreas
impl Sync for DetailAreas
impl Unpin for DetailAreas
impl UnsafeUnpin for DetailAreas
impl UnwindSafe for DetailAreas
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
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)
fn as_any(&self) -> &(dyn Any + 'static)
&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)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&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
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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