示例#1
0
    private static Gdk.Rectangle GetRect(Gdk.Window window)
    {
        Gdk.Rectangle rect = Gdk.Rectangle.Zero;
        int           vx, vy;

        window.GetPosition(out vx, out vy);
        rect.X = vx;
        rect.Y = vy;
        window.GetSize(out vx, out vy);
        rect.Width  = vx;
        rect.Height = vy;
        return(rect);
    }