コード例 #1
0
ファイル: SpriteViewport.cs プロジェクト: dmoonfire/wordplay
        /// <summary>
        /// Fires a queue draw, if there is one. If the invalidated
        /// region is empty, there are no updated and the queue is not
        /// called.
        /// </summary>
        public void FireQueueDraw(Widget widget)
        {
            Rectangle r = GetInvalidatedRegion();

            if (!r.IsEmpty)
            {
                widget.QueueDrawArea(r.X, r.Y, r.Width, r.Height);
            }
        }
コード例 #2
0
ファイル: GtkBackendHelper.cs プロジェクト: git-thinh/limada
 public static void VidgetBackendInvalidate(this Widget widget, Xwt.Rectangle rect)
 {
     widget.QueueDrawArea((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height);
 }