Skip to content

Commit

Permalink
Merge pull request #14 from vabenil/fix_member_types
Browse files Browse the repository at this point in the history
Fix nk_hash and nk_scroll types
  • Loading branch information
Timu5 authored Feb 24, 2023
2 parents 98d3786 + 7f99eaf commit 95db39b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/bindbc/nuklear/types.d
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ alias nk_uint = uint;
alias nk_size = size_t;
alias nk_ptr = size_t;

alias nk_hash = ulong;
alias nk_hash = uint;
alias nk_flags = uint;
alias nk_rune = uint;
alias nk_float = float;
Expand All @@ -67,7 +67,7 @@ union nk_handle { void *ptr; int id; }
struct nk_image { nk_handle handle; short w,h; ushort[4] region; }
struct nk_nine_slice { nk_image img; ushort l, t, r, b;};
struct nk_cursor { nk_image img; nk_vec2 size, offset; }
struct nk_scroll { ushort x, y; }
struct nk_scroll { uint x, y; }

enum nk_heading { NK_UP, NK_RIGHT, NK_DOWN, NK_LEFT };
enum nk_button_behavior { NK_BUTTON_DEFAULT, NK_BUTTON_REPEATER };
Expand Down Expand Up @@ -1988,4 +1988,4 @@ version(NK_INCLUDE_VERTEX_BUFFER_OUTPUT)
enum NK_FORMAT_RGBA32 = nk_draw_vertex_layout_format.NK_FORMAT_RGBA32;
enum NK_FORMAT_COLOR_END = nk_draw_vertex_layout_format.NK_FORMAT_COLOR_END;
enum NK_FORMAT_COUNT = nk_draw_vertex_layout_format.NK_FORMAT_COUNT;
}
}

0 comments on commit 95db39b

Please # to comment.