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