C# 클래스 com.codename1.impl.WindowsAsyncView

파일 보기 프로젝트 열기: Pmovil/CN1WindowsPort 1 사용 예제들

공개 메소드들

메소드 설명
WindowsAsyncView ( CanvasControl screen ) : System

비공개 메소드들

메소드 설명
OnDraw ( CanvasControl sender, CanvasDrawEventArgs args ) : void
flushGraphics ( ) : void
flushGraphics ( com.codename1.ui.geom.Rectangle rect ) : void

int counter = 0; while (renderingOperations.Count() > 0) { try { global::System.Threading.Tasks.Task.Run(() => global::System.Threading.Tasks.Task.Delay(global::System.TimeSpan.FromMilliseconds(5))).ConfigureAwait(false).GetAwaiter().GetResult(); // don't let the EDT die here counter++; if (counter > 10) { Debug.WriteLine("Flush graphics timed out!!!"); return; } } catch (System.Exception e) { global::System.Diagnostics.Debug.WriteLine(e); } }

getGraphics ( ) : NativeGraphics

메소드 상세

WindowsAsyncView() 공개 메소드

public WindowsAsyncView ( CanvasControl screen ) : System
screen CanvasControl
리턴 System