예제 #1
0
        public static UIPadding instanceByMM(float top, float right, float bottom, float left)
        {
            UIPadding padding = new UIPadding();

            padding.top    = top;
            padding.right  = right;
            padding.bottom = bottom;
            padding.left   = left;
            return(padding);
        }
예제 #2
0
        public static UIPadding instanceByPx(int top, int right, int bottom, int left)
        {
            UIPadding padding = new UIPadding();

            padding.top_px    = top;
            padding.right_px  = right;
            padding.bottom_px = bottom;
            padding.left_px   = left;
            return(padding);
        }