MCPcopy
hub / github.com/jesseduffield/lazygit / NewTcellResizeEventWrapper

Function NewTcellResizeEventWrapper

pkg/gocui/tcell_driver.go:255–263  ·  view source on GitHub ↗
(event *tcell.EventResize, timestamp int64)

Source from the content-addressed store, hash-verified

253}
254
255func NewTcellResizeEventWrapper(event *tcell.EventResize, timestamp int64) *TcellResizeEventWrapper {
256 w, h := event.Size()
257
258 return &TcellResizeEventWrapper{
259 Timestamp: timestamp,
260 Width: w,
261 Height: h,
262 }
263}
264
265func (wrapper TcellResizeEventWrapper) toTcellEvent() tcell.Event {
266 return tcell.NewEventResize(wrapper.Width, wrapper.Height)

Callers

nothing calls this directly

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected