X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbackend%2FTWindowBackend.java;h=f644b76ba4bf3d9e1642502ae330fc97146d1a5d;hb=505be508ae7d3fb48122be548b310a238cfb91eb;hp=3c1f832cfefdb8ba6cc2a0c10204abc2fec92306;hpb=63bb94784f03cd743b18ca9a98d460708f69994d;p=fanfix.git diff --git a/src/jexer/backend/TWindowBackend.java b/src/jexer/backend/TWindowBackend.java index 3c1f832..f644b76 100644 --- a/src/jexer/backend/TWindowBackend.java +++ b/src/jexer/backend/TWindowBackend.java @@ -112,6 +112,26 @@ public class TWindowBackend extends TWindow implements Backend { window.setHeight(getHeight() + 2); } + /** + * Get the width of a character cell in pixels. + * + * @return the width in pixels of a character cell + */ + @Override + public int getTextWidth() { + return window.getScreen().getTextWidth(); + } + + /** + * Get the height of a character cell in pixels. + * + * @return the height in pixels of a character cell + */ + @Override + public int getTextHeight() { + return window.getScreen().getTextHeight(); + } + }