예제 #1
0
 public Margin(Control C, Distance L, Distance T, Distance R, Distance B)
 {
     this.control = C;
     this.l = L;
     this.t = T;
     this.r = R;
     this.b = B;
 }
예제 #2
0
 public Padding(Control C, Distance L, Distance T, Distance R, Distance B)
 {
     this.control = C;
     this.l = L;
     this.t = T;
     this.r = R;
     this.b = B;
 }
예제 #3
0
 public RoundedRectangle(Distance W, Distance H, Distance RTL, Distance RTR, Distance RBL, Distance RBR)
 {
     base.W = W;
     base.H = H;
     this.rtl = RTL;
     this.rtr = RTR;
     this.rbl = RBL;
     this.rbr = RBR;
 }
예제 #4
0
 public MouseEventArgs(MouseButton B, Distance X, Distance Y)
 {
     this.btn = B;
     this.x = X;
     this.y = Y;
 }
예제 #5
0
 public Rectangle(Distance W, Distance H)
 {
     base.W = W;
     base.H = H;
 }
예제 #6
0
 public Dash(Color C, Distance Size)
     : base(C)
 {
     this.size = Size;
 }
예제 #7
0
 public override bool StealChildMouse(Control child, Distance X, Distance Y)
 {
     return true;
 }
예제 #8
0
        /// <summary>
        /// Offsets the location by a given amount
        /// </summary>
        /// <param name="X">The distance to offset the location horizontally</param>
        /// <param name="Y">The distance to offset the location vertically</param>
        public void Offset(Distance X, Distance Y)
        {
            if (l != null)
                l += X;
            else if (r != null)
                r -= X;

            if (t != null)
                t += Y;
            else if (b != null)
                b -= Y;
        }
예제 #9
0
 /// <summary>
 /// Detects if a point is inside this path
 /// </summary>
 /// <param name="X">The X co-ordinate of the point</param>
 /// <param name="Y">The Y co-ordinate of the point</param>
 /// <returns>True if the path contains the point, otherwise false</returns>
 public virtual bool Contains(Distance X, Distance Y)
 {
     return (X >= 0) & (Y >= 0) & (X <= W) & (Y <= H);
 }
예제 #10
0
 public RoundedRectangle(Distance W, Distance H, Distance R)
     : this(W, H, R, R)
 {
 }
예제 #11
0
 public RoundedRectangle(Distance W, Distance H, Distance RT, Distance RB)
     : this(W, H, RT, RT, RB, RB)
 {
 }
예제 #12
0
 public virtual bool StealChildMouse(Control child, Distance X, Distance Y)
 {
     return false;
 }