public SetGeometryHints ( Gdk.Screen screen, int x, int y ) : void | ||
screen | Gdk.Screen | |
x | int | |
y | int | |
Результат | void |
private static void AttachToStatusIcon(Notification notify, Gtk.StatusIcon status_icon) { Gdk.Screen screen; Gdk.Rectangle rect; Orientation orientation; int x, y; if (!status_icon.GetGeometry (out screen, out rect, out orientation)) { return; } x = rect.X + rect.Width / 2; y = rect.Y + rect.Height / 2; notify.SetGeometryHints (screen, x, y); }
public void Notify(Notification note, Screen screen, int x, int y) { LibNotify.Notification notify = ToNotify(note); notify.SetGeometryHints(screen, x, y); notify.Show(); }