X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Ftterminal%2FDisplayListener.java;h=d0c9e2d73f769658a0c7dcdd89ac2e51be3d7f85;hb=505be508ae7d3fb48122be548b310a238cfb91eb;hp=fcd8854797f344720bf09117f666a325795a7453;hpb=be72cb5ccbd42fe304c0acafc380c5636f0d03a2;p=fanfix.git diff --git a/src/jexer/tterminal/DisplayListener.java b/src/jexer/tterminal/DisplayListener.java index fcd8854..d0c9e2d 100644 --- a/src/jexer/tterminal/DisplayListener.java +++ b/src/jexer/tterminal/DisplayListener.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2017 Kevin Lamonte + * Copyright (C) 2019 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -39,4 +39,18 @@ public interface DisplayListener { */ public void displayChanged(); + /** + * Function to call to obtain the display width. + * + * @return the number of columns in the display + */ + public int getDisplayWidth(); + + /** + * Function to call to obtain the display height. + * + * @return the number of rows in the display + */ + public int getDisplayHeight(); + }