Exemplo n.º 1
0
        public static void nk_free_window(nk_context ctx, nk_window win)
        {
            nk_table it = win.tables;

            if (win.popup.win != null)
            {
                nk_free_window(ctx, win.popup.win);
                win.popup.win = null;
            }

            win.next = null;
            win.prev = null;
            while (it != null)
            {
                var n = it.next;
                nk_remove_table(win, it);
                if (it == win.tables)
                {
                    win.tables = n;
                }
                it = n;
            }
        }
Exemplo n.º 2
0
        public static void nk_free_window(NkContext ctx, NkWindow win)
        {
            nk_table it = win.Tables;

            if (win.Popup.win != null)
            {
                nk_free_window(ctx, win.Popup.win);
                win.Popup.win = null;
            }

            win.Next = null;
            win.Prev = null;
            while (it != null)
            {
                var n = it.next;
                nk_remove_table(win, it);
                if (it == win.Tables)
                {
                    win.Tables = n;
                }
                it = n;
            }
        }
Exemplo n.º 3
0
        public static nk_table nk_create_table(nk_context ctx)
        {
            var result = new nk_table();

            return(result);
        }