|
|
@ -35,13 +35,12 @@ namespace Perspex.Gtk |
|
|
public WindowImpl(Gtk.WindowType type) |
|
|
public WindowImpl(Gtk.WindowType type) |
|
|
: base(type) |
|
|
: base(type) |
|
|
{ |
|
|
{ |
|
|
this.DefaultSize = new Gdk.Size(640, 480); |
|
|
|
|
|
this.Events = Gdk.EventMask.PointerMotionMask | |
|
|
this.Events = Gdk.EventMask.PointerMotionMask | |
|
|
Gdk.EventMask.ButtonPressMask | |
|
|
Gdk.EventMask.ButtonPressMask | |
|
|
Gdk.EventMask.ButtonReleaseMask; |
|
|
Gdk.EventMask.ButtonReleaseMask; |
|
|
this.windowHandle = new PlatformHandle(this.Handle, "GtkWindow"); |
|
|
this.windowHandle = new PlatformHandle(this.Handle, "GtkWindow"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public Size ClientSize |
|
|
public Size ClientSize |
|
|
{ |
|
|
{ |
|
|
get; |
|
|
get; |
|
|
@ -79,8 +78,10 @@ namespace Perspex.Gtk |
|
|
|
|
|
|
|
|
public Point PointToScreen(Point point) |
|
|
public Point PointToScreen(Point point) |
|
|
{ |
|
|
{ |
|
|
// TODO: Implement.
|
|
|
int x, y; |
|
|
return new Point(); |
|
|
this.GdkWindow.GetDeskrelativeOrigin(out x, out y); |
|
|
|
|
|
|
|
|
|
|
|
return new Point(point.X + x, point.Y + y); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void SetOwner(TopLevel owner) |
|
|
public void SetOwner(TopLevel owner) |
|
|
|