123456789101112131415161718192021222324252627282930313233 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using CommonUI.Gemo;
- namespace CommonUI.Display
- {
- // ------------------------------------------------------------------------------------------
- // -by zhangyifei
- // ------------------------------------------------------------------------------------------
- public abstract class Canvas
- {
- public readonly Point2D Pointer = new Point2D();
- public abstract void onUpdate();
- public abstract void onPaint(Graphics g);
- virtual public bool onPointerPressed(float x, float y) { return false; }
- virtual public bool onPointerReleased(float x, float y) { return false; }
- virtual public bool onPointerDragged(float x, float y) { return false; }
- virtual public bool IsHandlelByStage(float x,float y){return false;}
-
- abstract public void onResumeApp();
- abstract public void onPauseApp();
- }
- }
|