public ScreenScaleDip(ScreenSize source, Screen screen)
 {
     using (this.Suspend())
     {
         Screen = screen;
         Source = source;
     }
     this.SubscribeNotifier();
 }
Esempio n. 2
0
 public ScreenScale(ScreenSize source, ScreenRatio ratio)
 {
     using (this.Suspend())
     {
         Source = source;
         Ratio  = ratio;
     }
     this.SubscribeNotifier();
 }
Esempio n. 3
0
 public static ScreenSize Scale(this ScreenSize source, ScreenRatio ratio) => new ScreenScale(source, ratio);
Esempio n. 4
0
 public ScreenSizeWpf(ScreenSize source)
 {
     Source = source;
     this.SubscribeNotifier();
 }
Esempio n. 5
0
 public ScreenTranslate(ScreenSize source, Vector?translation = null)
 {
     Source      = source;
     Translation = translation ?? new Vector();
     this.SubscribeNotifier();
 }
Esempio n. 6
0
 public static ScreenSize Translate(this ScreenSize source, Vector translation) => new ScreenTranslate(source, translation);
Esempio n. 7
0
 public ScreenRotate(ScreenSize source, int rotation = 0)
 {
     Source    = source;
     _rotation = rotation;
     this.SubscribeNotifier();
 }
Esempio n. 8
0
 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);
Esempio n. 10
0
 public ScreenLocate(ScreenSize source, Point?point = null)
 {
     Source   = source;
     Location = point ?? new Point();
     this.SubscribeNotifier();
 }
Esempio n. 11
0
 public static ScreenSize Locate(this ScreenSize source, Point?point = null) => new ScreenLocate(source, point);