public ScreenBase(TouchScreenType tsType, double size, int[] pixels)
        {
            if (((int)tsType >= 0) && ((int)tsType <= 2))
            {
                this.TouchScreenType = tsType;
            }
            else
            {
                this.TouchScreenType = (TouchScreenType)1;
            }

            this.Size = size > 2 ? size : 4.5;

            if ((pixels.Length == 2) && pixels[0] > 100 && pixels[1] > 100)
            {
                this.Pixels = pixels;
            }
            else
            {
                Pixels = DefaultPixels;
            }
        }
예제 #2
0
 public Display(DisplayType displayType, double inches, TouchScreenType screenType, int colors)
     : this(displayType, inches, colors)
 {
     this.TouchScreenType = screenType;
     this.screenTypeSet = true;
 }
 public MonochromeScreen(TouchScreenType tsType, double size, int[] pixels) : base(tsType, size, pixels)
 {
 }
예제 #4
0
 public RetinaScreen(TouchScreenType tsType, double size, int[] pixels) : base(tsType, size, pixels)
 {
 }
 public ColorfulScreen(TouchScreenType tsType, double size, int[] pixels) : base(tsType, size, pixels)
 {
 }
예제 #6
0
 public Display(DisplayType displayType, double inches, TouchScreenType screenType, int colors)
     : this(displayType, inches, colors)
 {
     this.TouchScreenType = screenType;
     this.screenTypeSet   = true;
 }
예제 #7
0
        public TouchScreen(ITouchManager iTouchManager, double height, double width, uint pixelsH, uint pixelsW, TouchScreenType touchScreenType) : base(height, width, pixelsH, pixelsW)
        {
            this.iTouchManager           = iTouchManager;
            iTouchManager.OnAddTouch    += AddTouch;
            iTouchManager.OnRemoveTouch += RemoveTouch;

            SetTouchHandler();
        }