예제 #1
0
        internal Rectangle getClient()
        {
            Insets insets = getInsets();

            return(new Rectangle(insets.left, insets.top, width - insets.right - insets.left, height
                                 - insets.top - insets.bottom));
        }
예제 #2
0
        protected internal Dimension addInsets(Dimension size)
        {
            Insets insets = getInsets();

            size.width  += insets.left + insets.right;
            size.height += insets.top + insets.bottom;

            return(size);
        }
예제 #3
0
파일: Insets.cs 프로젝트: bastie/NetVampire
 public override bool Equals(Object o)
 {
     if (o == this)
     {
         return(true);
     }
     if (o is Insets)
     {
         Insets i = (Insets)o;
         return((i.left == left) && (i.bottom == bottom) &&
                (i.right == right) && (i.top == top));
     }
     return(false);
 }