Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 public MouseEventArgs(MouseButton B, Distance X, Distance Y)
 {
     this.btn = B;
     this.x = X;
     this.y = Y;
 }
Exemplo n.º 5
0
 public Rectangle(Distance W, Distance H)
 {
     base.W = W;
     base.H = H;
 }
Exemplo n.º 6
0
 public Dash(Color C, Distance Size)
     : base(C)
 {
     this.size = Size;
 }
Exemplo n.º 7
0
 public override bool StealChildMouse(Control child, Distance X, Distance Y)
 {
     return true;
 }
Exemplo n.º 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;
        }
Exemplo n.º 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);
 }
Exemplo n.º 10
0
 public RoundedRectangle(Distance W, Distance H, Distance R)
     : this(W, H, R, R)
 {
 }
Exemplo n.º 11
0
 public RoundedRectangle(Distance W, Distance H, Distance RT, Distance RB)
     : this(W, H, RT, RT, RB, RB)
 {
 }
Exemplo n.º 12
0
 public virtual bool StealChildMouse(Control child, Distance X, Distance Y)
 {
     return false;
 }