@@ -1140,7 +1140,7 @@ NK_API void nk_input_end(struct nk_context*);
11401140 * hardware directly. Therefore it is possible to just define
11411141 * `NK_INCLUDE_VERTEX_BUFFER_OUTPUT` which includes optional vertex output.
11421142 * To access the vertex output you first have to convert all draw commands into
1143- * vertexes by calling `nk_convert` which takes in your preferred vertex format.
1143+ * vertices by calling `nk_convert` which takes in your preferred vertex format.
11441144 * After successfully converting all draw commands just iterate over and execute all
11451145 * vertex draw commands:
11461146 *
@@ -1271,7 +1271,7 @@ NK_API const struct nk_command* nk__next(struct nk_context*, const struct nk_com
12711271
12721272/**
12731273 * \brief Converts all internal draw commands into vertex draw commands and fills
1274- * three buffers with vertexes , vertex draw commands and vertex indices.
1274+ * three buffers with vertices , vertex draw commands and vertex indices.
12751275 *
12761276 * \details
12771277 * The vertex format as well as some other configuration values have to be
@@ -1390,7 +1390,7 @@ NK_API const struct nk_draw_command* nk__draw_next(const struct nk_draw_command*
13901390 * order. The topmost window thereby is the currently active window.<br /><br />
13911391 *
13921392 * To change window position inside the stack occurs either automatically by
1393- * user input by being clicked on or programmatically by calling `nk_window_focus `.
1393+ * user input by being clicked on or programmatically by calling `nk_window_set_focus `.
13941394 * Windows by default are visible unless explicitly being defined with flag
13951395 * `NK_WINDOW_HIDDEN`, the user clicked the close button on windows with flag
13961396 * `NK_WINDOW_CLOSABLE` or if a window was explicitly hidden by calling
@@ -3733,8 +3733,11 @@ enum nk_edit_events {
37333733 NK_EDIT_INACTIVE = NK_FLAG(1), /**!< edit widget is not active and is not being modified */
37343734 NK_EDIT_ACTIVATED = NK_FLAG(2), /**!< edit widget went from state inactive to state active */
37353735 NK_EDIT_DEACTIVATED = NK_FLAG(3), /**!< edit widget went from state active to state inactive */
3736- NK_EDIT_COMMITED = NK_FLAG(4) /**!< edit widget has received an enter and lost focus */
3736+ NK_EDIT_COMMITTED = NK_FLAG(4) /**!< edit widget has received an enter and lost focus */
37373737};
3738+
3739+ #define NK_EDIT_COMMITED NK_EDIT_COMMITTED
3740+
37383741NK_API nk_flags nk_edit_string(struct nk_context*, nk_flags, char *buffer, int *len, int max, nk_plugin_filter);
37393742NK_API nk_flags nk_edit_string_zero_terminated(struct nk_context*, nk_flags, char *buffer, int max, nk_plugin_filter);
37403743NK_API nk_flags nk_edit_buffer(struct nk_context*, nk_flags, struct nk_text_edit*, nk_plugin_filter);
@@ -4964,7 +4967,7 @@ NK_API nk_bool nk_input_is_key_down(const struct nk_input*, enum nk_keys);
49644967 * \page "Draw List"
49654968 * The optional vertex buffer draw list provides a 2D drawing context
49664969 * with antialiasing functionality which takes basic filled or outlined shapes
4967- * or a path and outputs vertexes , elements and draw commands.
4970+ * or a path and outputs vertices , elements and draw commands.
49684971 * The actual draw list API is not required to be used directly while using this
49694972 * library since converting the default library draw command output is done by
49704973 * just calling `nk_convert` but I decided to still make this library accessible
@@ -10029,7 +10032,7 @@ nk_draw_list_alloc_vertices(struct nk_draw_list *list, nk_size count)
1002910032 /* This assert triggers because your are drawing a lot of stuff and nuklear
1003010033 * defined `nk_draw_index` as `nk_ushort` to safe space be default.
1003110034 *
10032- * So you reached the maximum number of indices or rather vertexes .
10035+ * So you reached the maximum number of indices or rather vertices .
1003310036 * To solve this issue please change typedef `nk_draw_index` to `nk_uint`
1003410037 * and don't forget to specify the new element size in your drawing
1003510038 * backend (OpenGL, DirectX, ...). For example in OpenGL for `glDrawElements`
@@ -28156,7 +28159,7 @@ nk_do_edit(nk_flags *state, struct nk_command_buffer *out,
2815628159 if (flags & NK_EDIT_CTRL_ENTER_NEWLINE && shift_mod)
2815728160 nk_textedit_text(edit, "\n", 1);
2815828161 else if (flags & NK_EDIT_SIG_ENTER)
28159- ret |= NK_EDIT_COMMITED ;
28162+ ret |= NK_EDIT_COMMITTED ;
2816028163 else nk_textedit_text(edit, "\n", 1);
2816128164 }
2816228165
0 commit comments