public ScreenScaleDip(ScreenSize source, Screen screen) { using (this.Suspend()) { Screen = screen; Source = source; } this.SubscribeNotifier(); }
public ScreenScale(ScreenSize source, ScreenRatio ratio) { using (this.Suspend()) { Source = source; Ratio = ratio; } this.SubscribeNotifier(); }
public static ScreenSize Scale(this ScreenSize source, ScreenRatio ratio) => new ScreenScale(source, ratio);
public ScreenSizeWpf(ScreenSize source) { Source = source; this.SubscribeNotifier(); }
public ScreenTranslate(ScreenSize source, Vector?translation = null) { Source = source; Translation = translation ?? new Vector(); this.SubscribeNotifier(); }
public static ScreenSize Translate(this ScreenSize source, Vector translation) => new ScreenTranslate(source, translation);
public ScreenRotate(ScreenSize source, int rotation = 0) { Source = source; _rotation = rotation; this.SubscribeNotifier(); }
public static ScreenRotate Rotate(this ScreenSize source, int rotation) => new ScreenRotate(source, rotation);
public static ScreenSize ScaleDip(this ScreenSize source, Screen screen) => new ScreenScaleDip(source, screen);
public ScreenLocate(ScreenSize source, Point?point = null) { Source = source; Location = point ?? new Point(); this.SubscribeNotifier(); }
public static ScreenSize Locate(this ScreenSize source, Point?point = null) => new ScreenLocate(source, point);