//
// Authors:
// Miguel de Icaza (miguel@gnome.org)
//
// NOTE: Window is functionally identical to FrameView with the following exceptions.
// - Window is a Toplevel
// - FrameView Does not support padding (but should)
// - FrameView Does not support mouse dragging
// - FrameView Does not support IEnumerable
// Any updates done here should probably be done in FrameView as well; TODO: Merge these classes
using System;
using NStack;
namespace Terminal.Gui {
///
/// Event arguments for Title change events.
///
public class TitleEventArgs : EventArgs {
///
/// The new Window Title.
///
public ustring NewTitle { get; set; }
///
/// The old Window Title.
///
public ustring OldTitle { get; set; }
///
/// Flag which allows canceling the Title change.
///
public bool Cancel { get; set; }
///
/// Initializes a new instance of
///
/// The that is/has been replaced.
/// The new to be replaced.
public TitleEventArgs (ustring oldTitle, ustring newTitle)
{
OldTitle = oldTitle;
NewTitle = newTitle;
}
}
}