Esempio n. 1
0
 public MajorMinor(Size size, Orientation o)
 {
     switch (o)
     {
         case Orientation.Horizontal:
             this.major = size.Width;
             this.minor = size.Height;
             return;
     }
     this.major = size.Height;
     this.minor = size.Width;
 }
Esempio n. 2
0
 internal static Size Scale(Size size, float flScale)
 {
     Size size2 = size;
     size2.Scale(flScale);
     return size2;
 }
Esempio n. 3
0
 internal static Size Min(Size sz1, Size sz2)
 {
     return new Size(Math.Min(sz1.Width, sz2.Width), Math.Min(sz1.Height, sz2.Height));
 }
Esempio n. 4
0
 public static Size Subtract(Size left, Size right)
 {
     return (left - right);
 }
Esempio n. 5
0
 public static Size Add(Size left, Size right)
 {
     return (left + right);
 }
Esempio n. 6
0
 static Size()
 {
     Empty = Zero;
     EmptyObject = new Size();
     Zero = new Size(0, 0);
 }
Esempio n. 7
0
 void ILayout.Layout(ILayoutParentAgent laSubject, Constraint constraint, out Size sizeUsed)
 {
     sizeUsed = new Size();
     //object[] mParam = new object[] { laSubject, constraint, sizeUsed };
     //this._flowLayout.GetType().InvokeMember("Layout", BindingFlags.InvokeMethod, null, this._flowLayout, mParam);
 }
Esempio n. 8
0
 internal Point(Size size)
 {
     this.m_x = size.Width;
     this.m_y = size.Height;
 }
Esempio n. 9
0
 public Constraint(Size sizeMax, Size sizeMin, Rectangle rcView, Rectangle rcViewPeripheral, float flPageStep)
 {
     //this.m_sizeMax = sizeMax;
     //this.m_sizeMin = sizeMin;
     //this.m_rcView = rcView;
     //this.m_rcPeripheralView = rcViewPeripheral;
     //this.m_flPageStep = flPageStep;
     //this.m_fView = true;
 }
Esempio n. 10
0
 public Size Clamp(Size size)
 {
     return new Size();
 }
Esempio n. 11
0
 public Constraint(Size sizeMax, Size sizeMin, Rectangle rcView)
 {
 }
Esempio n. 12
0
 public Constraint(Size sizeMax, Size sizeMin)
 {
     //this.m_sizeMax = sizeMax;
     //this.m_sizeMin = sizeMin;
     //this.m_fView = false;
     //this.m_rcView = this.m_rcPeripheralView = Rectangle.Empty;
     //this.m_flPageStep = 0f;
 }
Esempio n. 13
0
 //private Size m_sizeMax;
 //private Size m_sizeMin;
 //private Rectangle m_rcView;
 //private Rectangle m_rcPeripheralView;
 //private float m_flPageStep;
 //private bool m_fView;
 public Constraint(Size sizeMax)
 {
 }
Esempio n. 14
0
 static Constraint()
 {
     UndefinedSize = new Size(0, 0);
 }
Esempio n. 15
0
 //private Rectangle m_rectangle;
 //private string m_stId;
 public AreaOfInterest(Size size, string id)
 {
 }