Esempio n. 1
0
        public DataColumn(string header, Action <ImGui, TData> build, SimpleDropDown.Builder menuBuilder, float width, float minWidth = 0f, float maxWidth = 0f)
        {
            this.build       = build;
            this.menuBuilder = menuBuilder;

            this.header   = header;
            this.width    = width;
            this.minWidth = minWidth == 0f ? width : minWidth;
            this.maxWidth = maxWidth == 0f ? width : maxWidth;
            isFixedSize   = minWidth == maxWidth;
        }
Esempio n. 2
0
 public static void ShowDropDown(this ImGui gui, SimpleDropDown.Builder builder, float width = 20f) => gui.window?.ShowDropDown(gui, gui.lastRect, builder, new Padding(1f), width);
Esempio n. 3
0
 public static void ShowDropDown(this ImGui gui, Rect rect, SimpleDropDown.Builder builder, Padding padding, float width = 20f) => gui.window?.ShowDropDown(gui, rect, builder, padding, width);