Function
NewTcellResizeEventWrapper
(event *tcell.EventResize, timestamp int64)
Source from the content-addressed store, hash-verified
| 253 | } |
| 254 | |
| 255 | func 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 | |
| 265 | func (wrapper TcellResizeEventWrapper) toTcellEvent() tcell.Event { |
| 266 | return tcell.NewEventResize(wrapper.Width, wrapper.Height) |
Callers
nothing calls this directly
Tested by
no test coverage detected