|
@@ -540,7 +540,7 @@ namespace Terminal.Gui {
|
|
/// <param name="paddingBottom">Number of rows to pad on the bottom (if 0 the border will not appear on the bottom).</param>
|
|
/// <param name="paddingBottom">Number of rows to pad on the bottom (if 0 the border will not appear on the bottom).</param>
|
|
/// <param name="textAlignment">Not yet immplemented.</param>
|
|
/// <param name="textAlignment">Not yet immplemented.</param>
|
|
/// <remarks></remarks>
|
|
/// <remarks></remarks>
|
|
- public void DrawWindowTitle (Rect region, ustring title, int paddingLeft, int paddingTop, int paddingRight, int paddingBottom, TextAlignment textAlignment = TextAlignment.Left)
|
|
|
|
|
|
+ public virtual void DrawWindowTitle (Rect region, ustring title, int paddingLeft, int paddingTop, int paddingRight, int paddingBottom, TextAlignment textAlignment = TextAlignment.Left)
|
|
{
|
|
{
|
|
var width = region.Width - (paddingLeft + 2) * 2;
|
|
var width = region.Width - (paddingLeft + 2) * 2;
|
|
if (!ustring.IsNullOrEmpty(title) && width > 4 && region.Y + paddingTop <= region.Y + paddingBottom) {
|
|
if (!ustring.IsNullOrEmpty(title) && width > 4 && region.Y + paddingTop <= region.Y + paddingBottom) {
|
|
@@ -562,7 +562,7 @@ namespace Terminal.Gui {
|
|
/// <param name="paddingBottom">Number of rows to pad on the bottom (if 0 the border will not appear on the bottom).</param>
|
|
/// <param name="paddingBottom">Number of rows to pad on the bottom (if 0 the border will not appear on the bottom).</param>
|
|
/// <param name="border">If set to <c>true</c> and any padding dimension is > 0 the border will be drawn.</param>
|
|
/// <param name="border">If set to <c>true</c> and any padding dimension is > 0 the border will be drawn.</param>
|
|
/// <param name="fill">If set to <c>true</c> it will clear the content area (the area inside the padding) with the current color, otherwise the content area will be left untouched.</param>
|
|
/// <param name="fill">If set to <c>true</c> it will clear the content area (the area inside the padding) with the current color, otherwise the content area will be left untouched.</param>
|
|
- public void DrawWindowFrame (Rect region, int paddingLeft = 0, int paddingTop = 0, int paddingRight = 0, int paddingBottom = 0, bool border = true, bool fill = false)
|
|
|
|
|
|
+ public virtual void DrawWindowFrame (Rect region, int paddingLeft = 0, int paddingTop = 0, int paddingRight = 0, int paddingBottom = 0, bool border = true, bool fill = false)
|
|
{
|
|
{
|
|
void AddRuneAt (int col, int row, Rune ch)
|
|
void AddRuneAt (int col, int row, Rune ch)
|
|
{
|
|
{
|