コード例 #1
0
ファイル: Margin.cs プロジェクト: jmjacintos/tesseract
 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
ファイル: Padding.cs プロジェクト: jmjacintos/tesseract
 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
ファイル: Rectangle.cs プロジェクト: jmjacintos/tesseract
 public Rectangle(Distance W, Distance H)
 {
     base.W = W;
     base.H = H;
 }
コード例 #6
0
ファイル: Dash.cs プロジェクト: jmjacintos/tesseract
 public Dash(Color C, Distance Size)
     : base(C)
 {
     this.size = Size;
 }
コード例 #7
0
ファイル: Button.cs プロジェクト: jmjacintos/tesseract
 public override bool StealChildMouse(Control child, Distance X, Distance Y)
 {
     return true;
 }
コード例 #8
0
ファイル: Location.cs プロジェクト: jmjacintos/tesseract
        /// <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
ファイル: Path.cs プロジェクト: jmjacintos/tesseract
 /// <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
ファイル: Control.cs プロジェクト: jmjacintos/tesseract
 public virtual bool StealChildMouse(Control child, Distance X, Distance Y)
 {
     return false;
 }