|
|
|
@ -29,8 +29,6 @@ namespace Avalonia.Gtk |
|
|
|
private uint _lastKeyEventTimestamp; |
|
|
|
|
|
|
|
private static readonly Gdk.Cursor DefaultCursor = new Gdk.Cursor(CursorType.LeftPtr); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected WindowImplBase(Gtk.Widget window) |
|
|
|
{ |
|
|
|
@ -113,10 +111,6 @@ namespace Avalonia.Gtk |
|
|
|
|
|
|
|
public double Scaling => 1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Action Activated { get; set; } |
|
|
|
|
|
|
|
public Action Closed { get; set; } |
|
|
|
@ -155,7 +149,6 @@ namespace Avalonia.Gtk |
|
|
|
{ |
|
|
|
int x, y; |
|
|
|
_window.GdkWindow.GetDeskrelativeOrigin(out x, out y); |
|
|
|
|
|
|
|
return new Point(point.X + x, point.Y + y); |
|
|
|
} |
|
|
|
|
|
|
|
@ -182,7 +175,6 @@ namespace Avalonia.Gtk |
|
|
|
public abstract void BeginResizeDrag(WindowEdge edge); |
|
|
|
public abstract Point Position { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
void ITopLevelImpl.Activate() |
|
|
|
{ |
|
|
|
_window.Activate(); |
|
|
|
@ -251,8 +243,6 @@ namespace Avalonia.Gtk |
|
|
|
Input(e); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void OnDestroyed(object sender, EventArgs eventArgs) |
|
|
|
{ |
|
|
|
Closed(); |
|
|
|
@ -278,7 +268,6 @@ namespace Avalonia.Gtk |
|
|
|
ProcessKeyEvent(args.Event); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void OnKeyReleaseEvent(object o, Gtk.KeyReleaseEventArgs args) |
|
|
|
{ |
|
|
|
args.RetVal = true; |
|
|
|
@ -313,8 +302,6 @@ namespace Avalonia.Gtk |
|
|
|
args.RetVal = true; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void Dispose() |
|
|
|
{ |
|
|
|
_window.Dispose(); |
|
|
|
|