Browse Source
- Added PopupImpl support in Perspex.Gtk - Added ShowDialog support to WindowImpl in Perspex.Gtk - Fixed resize issues in Perspex.Gtk - Renamed Centered to Center to match WPF in Cairo - Removed old Serilog references breaking compilepull/58/head
6 changed files with 54 additions and 11 deletions
@ -0,0 +1,29 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace Perspex.Gtk |
||||
|
{ |
||||
|
using System; |
||||
|
using Perspex.Platform; |
||||
|
using global::Gtk; |
||||
|
|
||||
|
public class PopupImpl : WindowImpl, IPopupImpl |
||||
|
{ |
||||
|
public PopupImpl() |
||||
|
: base(WindowType.Popup) |
||||
|
{ |
||||
|
this.DefaultSize = new Gdk.Size(640, 480); |
||||
|
this.Events = Gdk.EventMask.PointerMotionMask | |
||||
|
Gdk.EventMask.ButtonPressMask | |
||||
|
Gdk.EventMask.ButtonReleaseMask; |
||||
|
} |
||||
|
|
||||
|
public void SetPosition(Point p) |
||||
|
{ |
||||
|
this.Move((int)p.X, (int)p.Y); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue