public static interface VirtualScreen.FrameRenderer
Modifier and Type | Method and Description |
---|---|
void |
drawFrame(TextGraphics graphics,
TerminalSize realSize,
TerminalSize virtualSize,
TerminalPosition virtualScrollPosition)
Drawn the 'frame', meaning anything that is outside the viewport (title, scrollbar, etc)
|
TerminalPosition |
getViewportOffset()
Where in the virtual screen should the top-left position of the viewport be? To draw the viewport from the
top-left position of the screen, return 0x0 (or TerminalPosition.TOP_LEFT_CORNER) here.
|
TerminalSize |
getViewportSize(TerminalSize realSize,
TerminalSize virtualSize)
Given the size of the real terminal and the current size of the virtual screen, how large should the viewport
where the screen content is drawn be?
|
TerminalSize getViewportSize(TerminalSize realSize, TerminalSize virtualSize)
realSize
- Size of the real terminalvirtualSize
- Size of the virtual screenTerminalPosition getViewportOffset()
void drawFrame(TextGraphics graphics, TerminalSize realSize, TerminalSize virtualSize, TerminalPosition virtualScrollPosition)
graphics
- Graphics to use to text drawing operationsrealSize
- Size of the real terminalvirtualSize
- Size of the virtual screenvirtualScrollPosition
- If the virtual screen is larger than the real terminal, this is the current
scroll offset the VirtualScreen is usingCopyright © 2016. All rights reserved.