You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Global so it can be accessed by both functions */charbuffer[256];
/* This function should be called before GuiMain() in case we wanted to * initialize the buffer with some value. */voidGuiInit() {
strcpy(buffer, "This is some content");
}
voidGuiMain() {
if (nk_begin(...)) {
nk_flagsevent=nk_edit_string_zero_terminated(
ctx,
NK_EDIT_BOX | NK_EDIT_AUTO_SELECT, /* Auto-select for focusing the text on click */buffer, sizeof(buffer), nk_filter_ascii/* nk_filter_ascii: text type */
);
}
nk_end(ctx);
}