예제 #1
0
 public ScreenScaleDip(ScreenSize source, Screen screen)
 {
     using (this.Suspend())
     {
         Screen = screen;
         Source = source;
     }
     this.SubscribeNotifier();
 }
예제 #2
0
 public ScreenScale(ScreenSize source, ScreenRatio ratio)
 {
     using (this.Suspend())
     {
         Source = source;
         Ratio  = ratio;
     }
     this.SubscribeNotifier();
 }
예제 #3
0
 public static ScreenSize Scale(this ScreenSize source, ScreenRatio ratio) => new ScreenScale(source, ratio);
예제 #4
0
 public ScreenSizeWpf(ScreenSize source)
 {
     Source = source;
     this.SubscribeNotifier();
 }
예제 #5
0
 public ScreenTranslate(ScreenSize source, Vector?translation = null)
 {
     Source      = source;
     Translation = translation ?? new Vector();
     this.SubscribeNotifier();
 }
예제 #6
0
 public static ScreenSize Translate(this ScreenSize source, Vector translation) => new ScreenTranslate(source, translation);
예제 #7
0
 public ScreenRotate(ScreenSize source, int rotation = 0)
 {
     Source    = source;
     _rotation = rotation;
     this.SubscribeNotifier();
 }
예제 #8
0
 public static ScreenRotate Rotate(this ScreenSize source, int rotation) => new ScreenRotate(source, rotation);
예제 #9
0
 public static ScreenSize ScaleDip(this ScreenSize source, Screen screen) => new ScreenScaleDip(source, screen);
예제 #10
0
 public ScreenLocate(ScreenSize source, Point?point = null)
 {
     Source   = source;
     Location = point ?? new Point();
     this.SubscribeNotifier();
 }
예제 #11
0
 public static ScreenSize Locate(this ScreenSize source, Point?point = null) => new ScreenLocate(source, point);