Пример #1
0
        public void pathWinding(uiPathWinding winding)
        {
            if (this._paths.Count == 0)
            {
                return;
            }

            var path = this._paths[this._paths.Count - 1];

            path.winding = winding;
            this._paths[this._paths.Count - 1] = path;
        }
Пример #2
0
        public static uiPathPath create(int first   = 0, int count = 0, bool closed = false, int ifill = 0, int nfill = 0,
                                        int istroke = 0,
                                        int nstroke = 0, uiPathWinding winding = uiPathWinding.counterClockwise, bool convex = false)
        {
            uiPathPath newPath = new uiPathPath();

            newPath.first   = first;
            newPath.count   = count;
            newPath.closed  = closed;
            newPath.ifill   = ifill;
            newPath.nfill   = nfill;
            newPath.istroke = istroke;
            newPath.nstroke = nstroke;
            newPath.winding = winding;
            newPath.convex  = convex;

            return(newPath);
        }