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; } }
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) { }
public RetinaScreen(TouchScreenType tsType, double size, int[] pixels) : base(tsType, size, pixels) { }
public ColorfulScreen(TouchScreenType tsType, double size, int[] pixels) : base(tsType, size, pixels) { }
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(); }