Example #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;
 }
Example #2
0
 internal static Size Scale(Size size, float flScale)
 {
     Size size2 = size;
     size2.Scale(flScale);
     return size2;
 }
Example #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));
 }
Example #4
0
 public static Size Subtract(Size left, Size right)
 {
     return (left - right);
 }
Example #5
0
 public static Size Add(Size left, Size right)
 {
     return (left + right);
 }
Example #6
0
 static Size()
 {
     Empty = Zero;
     EmptyObject = new Size();
     Zero = new Size(0, 0);
 }
Example #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);
 }
Example #8
0
 internal Point(Size size)
 {
     this.m_x = size.Width;
     this.m_y = size.Height;
 }
Example #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;
 }
Example #10
0
 public Size Clamp(Size size)
 {
     return new Size();
 }
Example #11
0
 public Constraint(Size sizeMax, Size sizeMin, Rectangle rcView)
 {
 }
Example #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;
 }
Example #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)
 {
 }
Example #14
0
 static Constraint()
 {
     UndefinedSize = new Size(0, 0);
 }
Example #15
0
 //private Rectangle m_rectangle;
 //private string m_stId;
 public AreaOfInterest(Size size, string id)
 {
 }