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