Package org.lwjgl.nuklear
@NullMarked
package org.lwjgl.nuklear
Bindings to the Nuklear library.
A minimal state immediate mode graphical user interface single header toolkit written in ANSI C and licensed under public domain. It was designed as a simple embeddable user interface for application and does not have any dependencies, a default renderbackend or OS window and input handling but instead provides a very modular library approach by using simple input state for input and draw commands describing primitive shapes as output. So instead of providing a layered library that tries to abstract over a number of platform and render backends it only focuses on the actual UI.
Resources
-
ClassDescription
struct nk_allocator {nk_handleuserdata;nk_plugin_allocalloc;nk_plugin_freemfree; }An array ofNkAllocatorstructs.struct nk_baked_font { float height; float ascent; float descent; nk_rune glyph_offset; nk_rune glyph_count; nk_rune const * ranges; }An array ofNkBakedFontstructs.struct nk_buffer {struct nk_buffer_markermarker[2];struct nk_allocatorpool; enum nk_allocation_type type;struct nk_memorymemory; float grow_factor; nk_size allocated; nk_size needed; nk_size calls; nk_size size; }An array ofNkBufferstructs.struct nk_buffer_marker { nk_bool active; nk_size offset; }An array ofNkBufferMarkerstructs.struct nk_chart { int slot; float x; float y; float w; float h;struct nk_chart_slotslots[NK_CHART_MAX_SLOT]; }An array ofNkChartstructs.struct nk_chart_slot { enum nk_chart_type type;struct nk_colorcolor;struct nk_colorhighlight; float min; float max; float range; int count;struct nk_vec2last; int index; nk_bool show_markers; }An array ofNkChartSlotstructs.struct nk_clipboard {nk_handleuserdata;nk_plugin_pastepaste;nk_plugin_copycopy; }An array ofNkClipboardstructs.struct nk_color { nk_byte r; nk_byte g; nk_byte b; nk_byte a; }An array ofNkColorstructs.struct nk_colorf { float r; float g; float b; float a; }An array ofNkColorfstructs.struct nk_command { enum nk_command_type type; nk_size next;nk_handleuserdata; }An array ofNkCommandstructs.struct nk_command_buffer {struct nk_buffer* base;struct nk_rectclip; int use_clipping;nk_handleuserdata; nk_size begin; nk_size end; nk_size last; }An array ofNkCommandBufferstructs.Callback function:nk_command_custom_callbackCallback function:nk_command_custom_callbackstruct nk_context {struct nk_inputinput;struct nk_stylestyle;struct nk_buffermemory;struct nk_clipboardclip; nk_flags last_widget_state; enum nk_button_behavior button_behavior;struct nk_configuration_stacksstacks; float delta_time_seconds;struct nk_draw_listdraw_list;nk_handleuserdata;struct nk_text_edittext_edit;struct nk_command_bufferoverlay; int build; int use_pool;struct nk_poolpool; nk_window * begin; nk_window * end; nk_window * active; nk_window * current; struct nk_page_element * freelist; unsigned int count; unsigned int seq; }struct nk_convert_config { float global_alpha; enum nk_anti_aliasing line_AA; enum nk_anti_aliasing shape_AA; unsigned int circle_segment_count; unsigned int arc_segment_count; unsigned int curve_segment_count;struct nk_draw_null_texturetex_null;struct nk_draw_vertex_layout_element* vertex_layout; nk_size vertex_size; nk_size vertex_alignment; }An array ofNkConvertConfigstructs.struct nk_cursor {struct nk_imageimg;struct nk_vec2size;struct nk_vec2offset; }An array ofNkCursorstructs.Callback function:nk_draw_beginCallback function:nk_draw_beginstruct nk_draw_command { unsigned int elem_count;struct nk_rectclip_rect;nk_handletexture;nk_handleuserdata; }An array ofNkDrawCommandstructs.Callback function:nk_draw_endCallback function:nk_draw_endstruct nk_draw_list {struct nk_rectclip_rect;struct nk_vec2circle_vtx[12];struct nk_convert_configconfig;struct nk_buffer* buffer;struct nk_buffer* vertices;struct nk_buffer* elements; unsigned int element_count; unsigned int vertex_count; unsigned int cmd_count; nk_size cmd_offset; unsigned int path_count; unsigned int path_offset; enum nk_anti_aliasing line_AA; enum nk_anti_aliasing shape_AA;nk_handleuserdata; }An array ofNkDrawListstructs.struct nk_draw_null_texture {nk_handletexture;struct nk_vec2uv; }An array ofNkDrawNullTexturestructs.struct nk_draw_vertex_layout_element { enum nk_draw_vertex_layout_attribute attribute; enum nk_draw_vertex_layout_format format; nk_size offset; }An array ofNkDrawVertexLayoutElementstructs.struct nk_edit_state { nk_hash name; unsigned int seq; unsigned int old; int active; int prev; int cursor; int sel_start; int sel_end;struct nk_scrollscrollbar; unsigned char mode; bool single_line; }An array ofNkEditStatestructs.struct nk_font {struct nk_font* next;struct nk_user_fonthandle;struct nk_baked_fontinfo; float scale;struct nk_font_glyph* glyphs;struct nk_font_glyphconst * fallback; nk_rune fallback_codepoint;nk_handletexture;struct nk_font_config* config; }An array ofNkFontstructs.struct nk_font_atlas { void * pixel; int tex_width; int tex_height;struct nk_allocatorpermanent;struct nk_allocatortemporary;struct nk_recticustom;struct nk_cursorcursors[7]; int glyph_count;struct nk_font_glyph* glyphs;struct nk_font* default_font;struct nk_font* fonts;struct nk_font_config* config; int font_num; }An array ofNkFontAtlasstructs.struct nk_font_config {struct nk_font_config* next; void * ttf_blob; nk_size ttf_size; unsigned char ttf_data_owned_by_atlas; unsigned char merge_mode; unsigned char pixel_snap; unsigned char oversample_v; unsigned char oversample_h; unsigned char padding[3]; float size; enum nk_font_coord_type coord_type;struct nk_vec2spacing; nk_rune const * range;struct nk_baked_font* font; nk_rune fallback_glyph;struct nk_font_config* n;struct nk_font_config* p; }An array ofNkFontConfigstructs.struct nk_font_glyph { nk_rune codepoint; float xadvance; float x0; float y0; float x1; float y1; float w; float h; float u0; float v0; float u1; float v1; }An array ofNkFontGlyphstructs.union nk_handle { void * ptr; int id; }An array ofNkHandlestructs.struct nk_image {nk_handlehandle; nk_ushort w; nk_ushort h; nk_ushort region[4]; }An array ofNkImagestructs.struct nk_input {struct nk_keyboardkeyboard;struct nk_mousemouse; }An array ofNkInputstructs.Callback function:nk_item_getterCallback function:nk_item_getterstruct nk_key { nk_bool down; unsigned int clicked; }An array ofNkKeystructs.struct nk_keyboard {struct nk_keykeys[NK_KEY_MAX]; char text[NK_INPUT_MAX]; int text_len; }An array ofNkKeyboardstructs.struct nk_list_view { int begin; int end; int count; int total_height;struct nk_context* ctx; nk_uint * scroll_pointer; nk_uint scroll_value; }An array ofNkListViewstructs.struct nk_memory { void * ptr; nk_size size; }An array ofNkMemorystructs.struct nk_memory_status { void * memory; unsigned int type; nk_size size; nk_size allocated; nk_size needed; nk_size calls; }An array ofNkMemoryStatusstructs.struct nk_menu_state { float x; float y; float w; float h;struct nk_scrolloffset; }An array ofNkMenuStatestructs.struct nk_mouse {struct nk_mouse_buttonbuttons[NK_BUTTON_MAX];struct nk_vec2pos;struct nk_vec2down_pos;struct nk_vec2prev;struct nk_vec2delta;struct nk_vec2scroll_delta; bool grab; bool grabbed; bool ungrab; }An array ofNkMousestructs.struct nk_mouse_button { nk_bool down; unsigned int clicked;struct nk_vec2clicked_pos; }An array ofNkMouseButtonstructs.struct nk_nine_slice {struct nk_imageimg; nk_ushort l; nk_ushort t; nk_ushort r; nk_ushort b; }An array ofNkNineSlicestructs.struct nk_panel { enum nk_panel_type type; nk_flags flags;struct nk_rectbounds; nk_uint * offset_x; nk_uint * offset_y; float at_x; float at_y; float max_x; float footer_height; float header_height; float border; unsigned int has_scrolling;struct nk_rectclip;struct nk_menu_statemenu;struct nk_row_layoutrow;struct nk_chartchart;struct nk_command_buffer* buffer;struct nk_panel* parent; }An array ofNkPanelstructs.Callback function:nk_plugin_allocCallback function:nk_plugin_allocCallback function:nk_plugin_copyCallback function:nk_plugin_copyCallback function:nk_plugin_filterCallback function:nk_plugin_filterCallback function:nk_plugin_freeCallback function:nk_plugin_freeCallback function:nk_plugin_pasteCallback function:nk_plugin_pastestruct nk_popup_buffer { nk_size begin; nk_size parent; nk_size last; nk_size end; nk_bool active; }An array ofNkPopupBufferstructs.struct nk_popup_state {struct nk_window* win; enum nk_panel_type type;struct nk_popup_bufferbuf; nk_hash name; nk_bool active; unsigned combo_count; unsigned con_count; unsigned con_old; unsigned active_con;struct nk_rectheader; }An array ofNkPopupStatestructs.struct nk_property_state { int active; int prev; char buffer[NK_MAX_NUMBER_BUFFER]; int length; int cursor; int select_start; int select_end; nk_hash name; unsigned int seq; unsigned int old; int state; }An array ofNkPropertyStatestructs.Callback function:nk_query_font_glyph_fCallback function:nk_query_font_glyph_fstruct nk_rect { float x; float y; float w; float h; }An array ofNkRectstructs.struct nk_recti { short x; short y; short w; short h; }An array ofNkRectistructs.struct nk_row_layout { enum nk_panel_row_layout_type type; int index; float height; float min_height; int columns; float const * ratio; float item_width; float item_height; float item_offset; float filled;struct nk_rectitem; int tree_depth; float templates[16]; }An array ofNkRowLayoutstructs.struct nk_scroll { nk_uint x; nk_uint y; }An array ofNkScrollstructs.struct nk_str {struct nk_bufferbuffer; int len; }An array ofNkStrstructs.struct nk_style {struct nk_user_font* font;struct nk_cursor* cursors[NK_CURSOR_COUNT];struct nk_cursor* cursor_active;struct nk_cursor* cursor_last; int cursor_visible;struct nk_style_texttext;struct nk_style_buttonbutton;struct nk_style_buttoncontextual_button;struct nk_style_buttonmenu_button;struct nk_style_toggleoption;struct nk_style_togglecheckbox;struct nk_style_selectableselectable;struct nk_style_sliderslider;struct nk_style_knobknob;struct nk_style_progressprogress;struct nk_style_propertyproperty;struct nk_style_editedit;struct nk_style_chartchart;struct nk_style_scrollbarscrollh;struct nk_style_scrollbarscrollv;struct nk_style_tabtab;struct nk_style_combocombo;struct nk_style_windowwindow; }An array ofNkStylestructs.struct nk_style_button {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_colorborder_color; float color_factor_background;struct nk_colortext_background;struct nk_colortext_normal;struct nk_colortext_hover;struct nk_colortext_active; nk_flags text_alignment; float color_factor_text; float border; float rounding;struct nk_vec2padding;struct nk_vec2image_padding;struct nk_vec2touch_padding; float disabled_factor;nk_handleuserdata;nk_draw_begindraw_begin;nk_draw_enddraw_end; }An array ofNkStyleButtonstructs.struct nk_style_chart {struct nk_style_itembackground;struct nk_colorborder_color;struct nk_colorselected_color;struct nk_colorcolor; float border; float rounding;struct nk_vec2padding; float color_factor; float disabled_factor; nk_bool show_markers; }An array ofNkStyleChartstructs.struct nk_style_combo {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_colorborder_color;struct nk_colorlabel_normal;struct nk_colorlabel_hover;struct nk_colorlabel_active;struct nk_colorsymbol_normal;struct nk_colorsymbol_hover;struct nk_colorsymbol_active;struct nk_style_buttonbutton; enum nk_symbol_type sym_normal; enum nk_symbol_type sym_hover; enum nk_symbol_type sym_active; float border; float rounding;struct nk_vec2content_padding;struct nk_vec2button_padding;struct nk_vec2spacing; float color_factor; float disabled_factor; }An array ofNkStyleCombostructs.struct nk_style_edit {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_colorborder_color;struct nk_style_scrollbarscrollbar;struct nk_colorcursor_normal;struct nk_colorcursor_hover;struct nk_colorcursor_text_normal;struct nk_colorcursor_text_hover;struct nk_colortext_normal;struct nk_colortext_hover;struct nk_colortext_active;struct nk_colorselected_normal;struct nk_colorselected_hover;struct nk_colorselected_text_normal;struct nk_colorselected_text_hover; float border; float rounding; float cursor_size;struct nk_vec2scrollbar_size;struct nk_vec2padding; float row_padding; float color_factor; float disabled_factor; }An array ofNkStyleEditstructs.struct nk_style_item { enum nk_style_item_type type;union nk_style_item_datadata; }An array ofNkStyleItemstructs.union nk_style_item_data {struct nk_colorcolor;struct nk_imageimage;struct nk_nine_sliceslice; }An array ofNkStyleItemDatastructs.struct nk_style_knob {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_colorborder_color;struct nk_colorknob_normal;struct nk_colorknob_hover;struct nk_colorknob_active;struct nk_colorknob_border_color;struct nk_colorcursor_normal;struct nk_colorcursor_hover;struct nk_colorcursor_active; float border; float knob_border;struct nk_vec2padding;struct nk_vec2spacing; float cursor_width; float color_factor; float disabled_factor;nk_handleuserdata;nk_draw_begindraw_begin;nk_draw_enddraw_end; }An array ofNkStyleKnobstructs.struct nk_style_progress {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_colorborder_color;struct nk_style_itemcursor_normal;struct nk_style_itemcursor_hover;struct nk_style_itemcursor_active;struct nk_colorcursor_border_color; float rounding; float border; float cursor_border; float cursor_rounding;struct nk_vec2padding; float color_factor; float disabled_factor;nk_handleuserdata;nk_draw_begindraw_begin;nk_draw_enddraw_end; }An array ofNkStyleProgressstructs.struct nk_style_property {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_colorborder_color;struct nk_colorlabel_normal;struct nk_colorlabel_hover;struct nk_colorlabel_active; enum nk_symbol_type sym_left; enum nk_symbol_type sym_right; float border; float rounding;struct nk_vec2padding; float color_factor; float disabled_factor;struct nk_style_editedit;struct nk_style_buttoninc_button;struct nk_style_buttondec_button;nk_handleuserdata;nk_draw_begindraw_begin;nk_draw_enddraw_end; }An array ofNkStylePropertystructs.struct nk_style_scrollbar {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_colorborder_color;struct nk_style_itemcursor_normal;struct nk_style_itemcursor_hover;struct nk_style_itemcursor_active;struct nk_colorcursor_border_color; float border; float rounding; float border_cursor; float rounding_cursor;struct nk_vec2padding; float color_factor; float disabled_factor; int show_buttons;struct nk_style_buttoninc_button;struct nk_style_buttondec_button; enum nk_symbol_type inc_symbol; enum nk_symbol_type dec_symbol;nk_handleuserdata;nk_draw_begindraw_begin;nk_draw_enddraw_end; }An array ofNkStyleScrollbarstructs.struct nk_style_selectable {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itempressed;struct nk_style_itemnormal_active;struct nk_style_itemhover_active;struct nk_style_itempressed_active;struct nk_colortext_normal;struct nk_colortext_hover;struct nk_colortext_pressed;struct nk_colortext_normal_active;struct nk_colortext_hover_active;struct nk_colortext_pressed_active;struct nk_colortext_background; nk_flags text_alignment; float rounding;struct nk_vec2padding;struct nk_vec2touch_padding;struct nk_vec2image_padding; float color_factor; float disabled_factor;nk_handleuserdata;nk_draw_begindraw_begin;nk_draw_enddraw_end; }An array ofNkStyleSelectablestructs.struct nk_style_slider {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_colorborder_color;struct nk_colorbar_normal;struct nk_colorbar_hover;struct nk_colorbar_active;struct nk_colorbar_filled;struct nk_style_itemcursor_normal;struct nk_style_itemcursor_hover;struct nk_style_itemcursor_active; float border; float rounding; float bar_height;struct nk_vec2padding;struct nk_vec2spacing;struct nk_vec2cursor_size; float color_factor; float disabled_factor; int show_buttons;struct nk_style_buttoninc_button;struct nk_style_buttondec_button; enum nk_symbol_type inc_symbol; enum nk_symbol_type dec_symbol;nk_handleuserdata;nk_draw_begindraw_begin;nk_draw_enddraw_end; }An array ofNkStyleSliderstructs.struct nk_style_tab {struct nk_style_itembackground;struct nk_colorborder_color;struct nk_colortext;struct nk_style_buttontab_maximize_button;struct nk_style_buttontab_minimize_button;struct nk_style_buttonnode_maximize_button;struct nk_style_buttonnode_minimize_button; enum nk_symbol_type sym_minimize; enum nk_symbol_type sym_maximize; float border; float rounding; float indent;struct nk_vec2padding;struct nk_vec2spacing; float color_factor; float disabled_factor; }An array ofNkStyleTabstructs.struct nk_style_text {struct nk_colorcolor;struct nk_vec2padding; float color_factor; float disabled_factor; }An array ofNkStyleTextstructs.struct nk_style_toggle {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_colorborder_color;struct nk_style_itemcursor_normal;struct nk_style_itemcursor_hover;struct nk_colortext_normal;struct nk_colortext_hover;struct nk_colortext_active;struct nk_colortext_background; nk_flags text_alignment;struct nk_vec2padding;struct nk_vec2touch_padding; float spacing; float border; float color_factor; float disabled_factor;nk_handleuserdata;nk_draw_begindraw_begin;nk_draw_enddraw_end; }An array ofNkStyleTogglestructs.struct nk_style_window {struct nk_style_window_headerheader;struct nk_style_itemfixed_background;struct nk_colorbackground;struct nk_colorborder_color;struct nk_colorpopup_border_color;struct nk_colorcombo_border_color;struct nk_colorcontextual_border_color;struct nk_colormenu_border_color;struct nk_colorgroup_border_color;struct nk_colortooltip_border_color;struct nk_style_itemscaler; float border; float combo_border; float contextual_border; float menu_border; float group_border; float tooltip_border; float popup_border; float min_row_height_padding; float rounding;struct nk_vec2spacing;struct nk_vec2scrollbar_size;struct nk_vec2min_size;struct nk_vec2padding;struct nk_vec2group_padding;struct nk_vec2popup_padding;struct nk_vec2combo_padding;struct nk_vec2contextual_padding;struct nk_vec2menu_padding;struct nk_vec2tooltip_padding; }An array ofNkStyleWindowstructs.struct nk_style_window_header {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_style_buttonclose_button;struct nk_style_buttonminimize_button; enum nk_symbol_type close_symbol; enum nk_symbol_type minimize_symbol; enum nk_symbol_type maximize_symbol;struct nk_colorlabel_normal;struct nk_colorlabel_hover;struct nk_colorlabel_active; enum nk_style_header_align align;struct nk_vec2padding;struct nk_vec2label_padding;struct nk_vec2spacing; }An array ofNkStyleWindowHeaderstructs.struct nk_text_edit {struct nk_clipboardclip;struct nk_strstring;nk_plugin_filterfilter;struct nk_vec2scrollbar; int cursor; int select_start; int select_end; unsigned char mode; bool cursor_at_end_of_line; bool initialized; bool has_preferred_x; bool single_line; bool active; char[1]; float preferred_x;struct nk_text_undo_stateundo; }An array ofNkTextEditstructs.struct nk_text_undo_record { int where; short insert_length; short delete_length; short char_storage; }An array ofNkTextUndoRecordstructs.struct nk_text_undo_state {struct nk_text_undo_recordundo_rec[99]; nk_rune undo_char[999]; short undo_point; short redo_point; short undo_char_point; short redo_char_point; }An array ofNkTextUndoStatestructs.Callback function:nk_text_width_fCallback function:nk_text_width_fstruct nk_user_font {nk_handleuserdata; float height;nk_text_width_fwidth;nk_query_font_glyph_fquery;nk_handletexture; }An array ofNkUserFontstructs.struct nk_user_font_glyph {struct nk_vec2uv[2];struct nk_vec2offset; float width; float height; float xadvance; }An array ofNkUserFontGlyphstructs.Callback function:nk_value_getterCallback function:nk_value_getterstruct nk_vec2 { float x; float y; }An array ofNkVec2structs.struct nk_window { unsigned int seq; nk_hash name; char name_string[NK_WINDOW_MAX_NAME]; nk_flags flags;struct nk_rectbounds;struct nk_scrollscrollbar;struct nk_command_bufferbuffer;struct nk_panel* layout; float scrollbar_hiding_timer;struct nk_property_stateproperty;struct nk_popup_statepopup;struct nk_edit_stateedit; unsigned int scrolled; nk_bool widgets_disabled; struct nk_table * tables; unsigned int table_count;struct nk_window* next;struct nk_window* prev;struct nk_window* parent; }An array ofNkWindowstructs.