X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbackend%2FTWindowBackend.java;h=f644b76ba4bf3d9e1642502ae330fc97146d1a5d;hb=03ae544a1639c127ebec9a46635f2ad465713908;hp=3c1f832cfefdb8ba6cc2a0c10204abc2fec92306;hpb=a52cb9df56f75f02b4509000ac63952a48c30f0b;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(); + } + }