mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 09:18:01 +01:00
added View2
This commit is contained in:
@@ -100,7 +100,7 @@ namespace Terminal.Gui {
|
||||
/// frames for the vies that use <see cref="LayoutStyle.Computed"/>.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public partial class View : Responder, ISupportInitializeNotification {
|
||||
public class View : Responder, ISupportInitializeNotification {
|
||||
|
||||
internal enum Direction {
|
||||
Forward,
|
||||
|
||||
27
Terminal.Gui/Core/View2.cs
Normal file
27
Terminal.Gui/Core/View2.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using NStack;
|
||||
|
||||
namespace Terminal.Gui {
|
||||
|
||||
public class View2 : View, ISupportInitializeNotification {
|
||||
public Thickness Margin { get; set; }
|
||||
|
||||
void DrawThickness (Thickness thickness)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void Redraw (Rect bounds)
|
||||
{
|
||||
base.Redraw (bounds);
|
||||
|
||||
DrawThickness (Margin);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user