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
NK_ZERO_COMMAND_MEMORY | Defining this will zero out memory for each drawing command added to a drawing queue (inside nk_command_buffer_push). Zeroing command memory is very useful for fast checking (using memcmp) if command buffers are equal and avoid drawing frames when nothing on screen has changed since previous frame.
110
110
NK_UINT_DRAW_INDEX | Defining this will set the size of vertex index elements when using NK_VERTEX_BUFFER_OUTPUT to 32bit instead of the default of 16bit
111
111
NK_KEYSTATE_BASED_INPUT | Define this if your backend uses key state for each frame rather than key press/release events
112
+
NK_IS_WORD_BOUNDARY(c) | Define this to a function macro that takes a single nk_rune (nk_uint) and returns true if it's a word separator. If not defined, uses the default definition (see nk_is_word_boundary())
112
113
113
114
!!! WARNING
114
115
The following flags will pull in the standard C library:
@@ -27054,34 +27055,44 @@ nk_is_word_boundary( struct nk_text_edit *state, int idx)
27054
27055
{
27055
27056
int len;
27056
27057
nk_rune c;
27057
-
if (idx <= 0) return 1;
27058
+
if (idx < 0) return 1;
27058
27059
if (!nk_str_at_rune(&state->string, idx, &c, &len)) return 1;
27059
-
return (c == ' ' || c == '\t' ||c == 0x3000 || c == ',' || c == ';' ||
27060
-
c == '(' || c == ')' || c == '{' || c == '}' || c == '[' || c == ']' ||
27061
-
c == '|');
27060
+
#ifndef NK_IS_WORD_BOUNDARY
27061
+
return (c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '\f' ||
NK_ZERO_COMMAND_MEMORY | Defining this will zero out memory for each drawing command added to a drawing queue (inside nk_command_buffer_push). Zeroing command memory is very useful for fast checking (using memcmp) if command buffers are equal and avoid drawing frames when nothing on screen has changed since previous frame.
109
109
NK_UINT_DRAW_INDEX | Defining this will set the size of vertex index elements when using NK_VERTEX_BUFFER_OUTPUT to 32bit instead of the default of 16bit
110
110
NK_KEYSTATE_BASED_INPUT | Define this if your backend uses key state for each frame rather than key press/release events
111
+
NK_IS_WORD_BOUNDARY(c) | Define this to a function macro that takes a single nk_rune (nk_uint) and returns true if it's a word separator. If not defined, uses the default definition (see nk_is_word_boundary())
111
112
112
113
!!! WARNING
113
114
The following flags will pull in the standard C library:
0 commit comments