diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-03-30 18:17:50 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-06-23 11:54:21 +0200 |
commit | 44160ef8448239e397c7bddbbd78bc9cd38327a3 (patch) | |
tree | cfba440a269fa079f6d2eeb83f601bd9079ebe87 /pkg/gui/types | |
parent | dd2bffc278dc3879e112caa3effd9c9c426489af (diff) |
Only render visible portion of the screen for commits view
Diffstat (limited to 'pkg/gui/types')
-rw-r--r-- | pkg/gui/types/context.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/gui/types/context.go b/pkg/gui/types/context.go index b0e312c97..29b53b9eb 100644 --- a/pkg/gui/types/context.go +++ b/pkg/gui/types/context.go @@ -63,6 +63,9 @@ type IBaseContext interface { // true if the view needs to be rerendered when its width changes NeedsRerenderOnWidthChange() bool + // true if the view needs to be rerendered when its height changes + NeedsRerenderOnHeightChange() bool + // returns the desired title for the view upon activation. If there is no desired title (returns empty string), then // no title will be set Title() string @@ -172,6 +175,8 @@ type IViewTrait interface { SetRangeSelectStart(yIdx int) CancelRangeSelect() SetViewPortContent(content string) + SetViewPortContentAndClearEverythingElse(content string) + SetContentLineCount(lineCount int) SetContent(content string) SetFooter(value string) SetOriginX(value int) |