Esempio n. 1
0
        public static bool Window(string name, string title, RectangleF rect, nk_panel_flags flags, Action action)
        {
            var result = true;

            unsafe
            {
                if (Nuklear.nk_begin_titled(_nuklearContext, name, title, rect, (uint)flags) != 0)
                    action?.Invoke();
                else
                    result = false;

                Nuklear.nk_end(_nuklearContext);
            }

            return result;
        }