void test() { tlog.Fatal(tag, $"test start"); win = NUIApplication.GetDefaultWindow(); win.TouchEvent += WinTouchEvent; view = new View(); view.Size = new Size(100, 100); view.BackgroundColor = Color.Blue; view.Focusable = true; view.KeyEvent += View_KeyEvent; win.Add(view); cb = testCallback; win.AddFrameRenderedCallback(cb, 0); win.AddFramePresentedCallback(cb, 0); Timer timer = new Timer(5000); timer.Tick += testOnTick; timer.Start(); tl = new TextLabel("frameId"); tl.Size = new Size(500, 200); tl.Position = new Position(10, 200); tl.BackgroundColor = Color.White; win.Add(tl); FocusManager.Instance.SetCurrentFocusView(view); }
private void WinTouchEvent(object sender, Window.TouchEventArgs e) { win.AddFrameRenderedCallback(cb, cnt++); Console.WriteLine($"testOnTick() AddFrameRenderedCallback() send id={cnt}"); win.AddFramePresentedCallback(cb, cnt++); Console.WriteLine($"testOnTick() AddFramePresentedCallback() send id={cnt}"); }
public void WindowAddFramePresentedCallback() { tlog.Debug(tag, $"WindowAddFramePresentedCallback START"); try { FrameCallbackType f1 = null; win.AddFramePresentedCallback(f1, 1); } catch (ArgumentNullException e) { tlog.Debug(tag, e.Message.ToString()); tlog.Debug(tag, $"WindowAddFramePresentedCallback END (OK)"); Assert.Pass("Caught ArgumentNullException : Passed!"); } }
public void WindowAddFramePresentedCallback() { tlog.Debug(tag, $"WindowAddFramePresentedCallback START"); try { FrameCallbackType f1 = null; myWin.AddFramePresentedCallback(f1, 1); } catch (Exception e) { Tizen.Log.Error(tag, "Caught Exception" + e.ToString()); Assert.Fail("Caught Exception" + e.ToString()); } tlog.Debug(tag, $"WindowAddFramePresentedCallback END (OK)"); Assert.Pass("WindowAddFramePresentedCallback"); }