Top Description Fields Constructors Methods
org.lwjgl.nuklear

public Class Nuklear

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

This is 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.

VALUES

FEATURES

FONT

Font handling in this library was designed to be quite customizable and lets you decide what you want to use and what you want to provide. There are three different ways to use the font atlas. The first two will use your font handling scheme and only requires essential data to run nuklear. The next slightly more advanced features is font handling with vertex buffer output.

  1. Using your own implementation without vertex buffer output
    So first of the easiest way to do font handling is by just providing a NkUserFont struct which only requires the height in pixel of the used font and a callback to calculate the width of a string. This way of handling fonts is best fitted for using the normal draw shape command API where you do all the text drawing yourself and the library does not require any kind of deeper knowledge about which font handling mechanism you use.

    Important Note

    the NkUserFont pointer provided to nuklear has to persist over the complete life time! I know this sucks but it is currently the only way to switch between fonts.

    
    float your_text_width_calculation(nk_handle handle, float height, const char *text, int len)
    {
        your_font_type *type = handle.ptr;
        float text_width = ...;
        return text_width;
    }
    
    struct nk_user_font font;
    font.userdata.ptr = &your_font_class_or_struct;
    font.height = your_font_height;
    font.width = your_text_width_calculation;
    
    struct nk_context ctx;
    nk_init_default(&ctx, &font);
  2. Using your own implementation with vertex buffer output
    While the first approach works fine if you don't want to use the optional vertex buffer output it is not enough if you do. To get font handling working for these cases you have to provide two additional parameters inside the `nk_user_font`. First a texture atlas handle used to draw text as subimages of a bigger font atlas texture and a callback to query a character's glyph information (offset, size, ...). So it is still possible to provide your own font and use the vertex buffer output.
    
    float your_text_width_calculation(nk_handle handle, float height, const char *text, int len)
    {
        your_font_type *type = handle.ptr;
        float text_width = ...;
        return text_width;
    }
    void query_your_font_glyph(nk_handle handle, float font_height, struct nk_user_font_glyph *glyph, nk_rune codepoint, nk_rune next_codepoint)
    {
        your_font_type *type = handle.ptr;
        glyph.width = ...;
        glyph.height = ...;
        glyph.xadvance = ...;
        glyph.uv[0].x = ...;
        glyph.uv[0].y = ...;
        glyph.uv[1].x = ...;
        glyph.uv[1].y = ...;
        glyph.offset.x = ...;
        glyph.offset.y = ...;
    }
    
    struct nk_user_font font;
    font.userdata.ptr = &your_font_class_or_struct;
    font.height = your_font_height;
    font.width = your_text_width_calculation;
    font.query = query_your_font_glyph;
    font.texture.id = your_font_texture;
    
    struct nk_context ctx;
    nk_init_default(&ctx, &font);

MEMORY BUFFER

A basic (double)-buffer with linear allocation and resetting as only freeing policy. The buffer's main purpose is to control all memory management inside the GUI toolkit and still leave memory control as much as possible in the hand of the user while also making sure the library is easy to use if not as much control is needed. In general all memory inside this library can be provided from the user in three different ways.

The first way and the one providing most control is by just passing a fixed size memory block. In this case all control lies in the hand of the user since he can exactly control where the memory comes from and how much memory the library should consume. Of course using the fixed size API removes the ability to automatically resize a buffer if not enough memory is provided so you have to take over the resizing. While being a fixed sized buffer sounds quite limiting, it is very effective in this library since the actual memory consumption is quite stable and has a fixed upper bound for a lot of cases.

If you don't want to think about how much memory the library should allocate at all time or have a very dynamic UI with unpredictable memory consumption habits but still want control over memory allocation you can use the dynamic allocator based API. The allocator consists of two callbacks for allocating and freeing memory and optional userdata so you can plugin your own allocator.

TEXT EDITOR

Editing text in this library is handled by either edit_string or edit_buffer. But like almost everything in this library there are multiple ways of doing it and a balance between control and ease of use with memory as well as functionality controlled by flags.

This library generally allows three different levels of memory control: First of is the most basic way of just providing a simple char array with string length. This method is probably the easiest way of handling simple user text input. Main upside is complete control over memory while the biggest downside in comparsion with the other two approaches is missing undo/redo.

For UIs that require undo/redo the second way was created. It is based on a fixed size NkTextEdit struct, which has an internal undo/redo stack. This is mainly useful if you want something more like a text editor but don't want to have a dynamically growing buffer.

The final way is using a dynamically growing nk_text_edit struct, which has both a default version if you don't care where memory comes from and an allocator version if you do. While the text editor is quite powerful for its complexity I would not recommend editing gigabytes of data with it. It is rather designed for uses cases which make sense for a GUI library not for an full blown text editor.

DRAWING

This library was designed to be render backend agnostic so it does not draw anything to screen. Instead all drawn shapes, widgets are made of, are buffered into memory and make up a command queue. Each frame therefore fills the command buffer with draw commands that then need to be executed by the user and his own render backend. After that the command buffer needs to be cleared and a new frame can be started. It is probably important to note that the command buffer is the main drawing API and the optional vertex buffer API only takes this format and converts it into a hardware accessible format.

To use the command queue to draw your own widgets you can access the command buffer of each window by calling window_get_canvas after previously having called begin:


void draw_red_rectangle_widget(struct nk_context *ctx)
{
    struct nk_command_buffer *canvas;
    struct nk_input *input = &ctx->input;
    canvas = nk_window_get_canvas(ctx);

    struct nk_rect space;
    enum nk_widget_layout_states state;
    state = nk_widget(&space, ctx);
    if (!state) return;

    if (state != NK_WIDGET_ROM)
        update_your_widget_by_user_input(...);
    nk_fill_rect(canvas, space, 0, nk_rgb(255,0,0));
}

if (nk_begin(...)) {
    nk_layout_row_dynamic(ctx, 25, 1);
    draw_red_rectangle_widget(ctx);
}
nk_end(..)

Important to know if you want to create your own widgets is the widget call. It allocates space on the panel reserved for this widget to be used, but also returns the state of the widget space. If your widget is not seen and does not have to be updated it is '0' and you can just return. If it only has to be drawn the state will be WIDGET_ROM otherwise you can do both update and draw your widget. The reason for separating is to only draw and update what is actually neccessary which is crucial for performance.

STACK

The style modifier stack can be used to temporarily change a property inside `nk_style`. For example if you want a special red button you can temporarily push the old button color onto a stack draw the button with a red color and then you just pop the old color back from the stack:


nk_style_push_style_item(ctx, &ctx->style.button.normal, nk_style_item_color(nk_rgb(255,0,0)));
nk_style_push_style_item(ctx, &ctx->style.button.hover, nk_style_item_color(nk_rgb(255,0,0)));
nk_style_push_style_item(ctx, &ctx->style.button.active, nk_style_item_color(nk_rgb(255,0,0)));
nk_style_push_vec2(ctx, &cx->style.button.padding, nk_vec2(2,2));

nk_button(...);

nk_style_pop_style_item(ctx);
nk_style_pop_style_item(ctx);
nk_style_pop_style_item(ctx);
nk_style_pop_vec2(ctx);

Nuklear has a stack for style_items, float properties, vector properties, flags, colors, fonts and for button_behavior. Each has it's own fixed size stack which can be changed in compile time.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
NK_BUFFER_BACK

nk_buffer_allocation_type Enum values:

public static final int
NK_BUFFER_DYNAMIC

nk_allocation_type Enum values:

public static final int
NK_BUFFER_FIXED

nk_allocation_type Enum values:

public static final int
NK_BUFFER_FRONT

nk_buffer_allocation_type Enum values:

public static final int
NK_BUFFER_MAX

nk_buffer_allocation_type Enum values:

public static final int
NK_BUTTON_BEHAVIOR_STACK_SIZE

Implementation limits.

public static final int
NK_BUTTON_DEFAULT

nk_button_behavior Enum values:

public static final int
public static final int
public static final int
public static final int
public static final int
NK_BUTTON_REPEATER

nk_button_behavior Enum values:

public static final int
public static final int
NK_CHART_CLICKED

nk_chart_event Enum values:

public static final int
public static final int
NK_CHART_HOVERING

nk_chart_event Enum values:

public static final int
public static final int
NK_CHART_MAX

nk_chart_type Enum values:

public static final int
NK_CHART_MAX_SLOT

Implementation limits.

public static final int
NK_CLIPPING_OFF

nk_command_clipping Enum values:

public static final int
NK_CLIPPING_ON

nk_command_clipping Enum values:

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
NK_COLOR_STACK_SIZE

Implementation limits.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
NK_CONVERT_COMMAND_BUFFER_FULL

nk_convert_result Enum values:

public static final int
NK_CONVERT_ELEMENT_BUFFER_FULL

nk_convert_result Enum values:

public static final int
NK_CONVERT_INVALID_PARAM

nk_convert_result Enum values:

public static final int
NK_CONVERT_SUCCESS

nk_convert_result Enum values:

public static final int
NK_CONVERT_VERTEX_BUFFER_FULL

nk_convert_result Enum values:

public static final int
NK_COORD_PIXEL

enum nk_font_coord_type Enum values:

public static final int
NK_COORD_UV

enum nk_font_coord_type Enum values:

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
NK_DOWN

nk_heading Enum values:

public static final int
NK_DYNAMIC

nk_layout_format Enum values:

public static final int
NK_EDIT_ACTIVATED

nk_edit_events Enum values:

public static final int
NK_EDIT_ACTIVE

nk_edit_events Enum values:

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
NK_EDIT_COMMITED

nk_edit_events Enum values:

public static final int
public static final int
NK_EDIT_DEACTIVATED

nk_edit_events Enum values:

public static final int
public static final int
public static final int
public static final int
public static final int
NK_EDIT_INACTIVE

nk_edit_events Enum values:

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
nk_false

Boolean values.

public static final int
NK_FIXED

nk_modify Enum values:

public static final int
NK_FLAGS_STACK_SIZE

Implementation limits.

public static final int
NK_FLOAT_STACK_SIZE

Implementation limits.

public static final int
NK_FONT_ATLAS_ALPHA8

nk_font_atlas_format Enum values:

public static final int
NK_FONT_ATLAS_RGBA32

nk_font_atlas_format Enum values:

public static final int
NK_FONT_STACK_SIZE

Implementation limits.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
NK_HEADER_LEFT

nk_style_header_align Enum values:

public static final int
NK_HEADER_RIGHT

nk_style_header_align Enum values:

public static final int
NK_HIDDEN

nk_show_states Enum values:

public static final int
NK_HORIZONTAL

nk_orientation Enum values:

public static final int
NK_INPUT_MAX

Constants.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
NK_LEFT

nk_heading Enum values:

public static final int
NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS

Implementation limits.

public static final int
public static final int
NK_MAXIMIZED

nk_collapse_states Enum values:

public static final int
NK_MINIMIZED

nk_collapse_states Enum values:

public static final int
NK_MODIFIABLE

nk_modify Enum values:

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
NK_POPUP_DYNAMIC

nk_popup_type Enum values:

public static final int
NK_POPUP_STATIC

nk_popup_type Enum values:

public static final int
NK_RGB

nk_color_format Enum values:

public static final int
NK_RGBA

nk_color_format Enum values:

public static final int
NK_RIGHT

nk_heading Enum values:

public static final float
public static final int
NK_SHOWN

nk_show_states Enum values:

public static final int
NK_STATIC

nk_layout_format Enum values:

public static final int
NK_STROKE_CLOSED

nk_draw_list_stroke Enum values:

  • STROKE_OPEN - build up path has no connection back to the beginning
  • STROKE_CLOSED - build up path has a connection back to the beginning
public static final int
NK_STROKE_OPEN

nk_draw_list_stroke Enum values:

  • STROKE_OPEN - build up path has no connection back to the beginning
  • STROKE_CLOSED - build up path has a connection back to the beginning
public static final int
public static final int
public static final int
public static final int
NK_STYLE_ITEM_STACK_SIZE

Implementation limits.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
NK_TEXT_CENTERED

nk_text_alignment Enum values:

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
NK_TEXT_LEFT

nk_text_alignment Enum values:

public static final int
NK_TEXT_RIGHT

nk_text_alignment Enum values:

public static final int
NK_TEXTEDIT_UNDOCHARCOUNT

Implementation limits.

public static final int
NK_TEXTEDIT_UNDOSTATECOUNT

Implementation limits.

public static final int
NK_TREE_NODE

nk_tree_type Enum values:

public static final int
NK_TREE_TAB

nk_tree_type Enum values:

public static final int
nk_true

Boolean values.

public static final float
NK_UNDEFINED

Constants.

public static final int
NK_UP

nk_heading Enum values:

public static final int
NK_UTF_INVALID

Constants.

public static final int
NK_UTF_SIZE

Constants.

public static final int
NK_VECTOR_STACK_SIZE

Implementation limits.

public static final int
public static final int
public static final int
public static final int
public static final int
NK_VERTICAL

nk_orientation Enum values:

public static final int
NK_WIDGET_INVALID

nk_widget_layout_states Enum values:

  • WIDGET_INVALID - The widget cannot be seen and is completely out of view
  • WIDGET_VALID - The widget is completely inside the window and can be updated and drawn
  • WIDGET_ROM - The widget is partially visible and cannot be updated
public static final int
NK_WIDGET_ROM

nk_widget_layout_states Enum values:

  • WIDGET_INVALID - The widget cannot be seen and is completely out of view
  • WIDGET_VALID - The widget is completely inside the window and can be updated and drawn
  • WIDGET_ROM - The widget is partially visible and cannot be updated
public static final int
NK_WIDGET_STATE_ACTIVE

nk_widget_states Enum values:

public static final int
NK_WIDGET_STATE_ACTIVED

nk_widget_states Enum values:

public static final int
NK_WIDGET_STATE_ENTERED

nk_widget_states Enum values:

public static final int
NK_WIDGET_STATE_HOVER

nk_widget_states Enum values:

public static final int
NK_WIDGET_STATE_HOVERED

nk_widget_states Enum values:

public static final int
NK_WIDGET_STATE_INACTIVE

nk_widget_states Enum values:

public static final int
NK_WIDGET_STATE_LEFT

nk_widget_states Enum values:

public static final int
NK_WIDGET_STATE_MODIFIED

nk_widget_states Enum values:

public static final int
NK_WIDGET_VALID

nk_widget_layout_states Enum values:

  • WIDGET_INVALID - The widget cannot be seen and is completely out of view
  • WIDGET_VALID - The widget is completely inside the window and can be updated and drawn
  • WIDGET_ROM - The widget is partially visible and cannot be updated
public static final int
NK_WINDOW_BACKGROUND

nk_panel_flags Enum values:

  • WINDOW_BORDER - Draws a border around the window to visually separate the window from the background
  • WINDOW_MOVABLE - The movable flag indicates that a window can be moved by user input or by dragging the window header
  • WINDOW_SCALABLE - The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window
  • WINDOW_CLOSABLE - adds a closable icon into the header
  • WINDOW_MINIMIZABLE - adds a minimize icon into the header
  • WINDOW_NO_SCROLLBAR - Removes the scrollbar from the window
  • WINDOW_TITLE - Forces a header at the top at the window showing the title
  • WINDOW_SCROLL_AUTO_HIDE - Automatically hides the window scrollbar if no user interaction: also requires delta time in nk_context to be set each frame
  • WINDOW_BACKGROUND - Always keep window in the background
  • WINDOW_SCALE_LEFT - Puts window scaler in the left-bottom corner instead right-bottom
  • WINDOW_NO_INPUT - Prevents window of scaling, moving or getting focus
public static final int
NK_WINDOW_BORDER

nk_panel_flags Enum values:

  • WINDOW_BORDER - Draws a border around the window to visually separate the window from the background
  • WINDOW_MOVABLE - The movable flag indicates that a window can be moved by user input or by dragging the window header
  • WINDOW_SCALABLE - The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window
  • WINDOW_CLOSABLE - adds a closable icon into the header
  • WINDOW_MINIMIZABLE - adds a minimize icon into the header
  • WINDOW_NO_SCROLLBAR - Removes the scrollbar from the window
  • WINDOW_TITLE - Forces a header at the top at the window showing the title
  • WINDOW_SCROLL_AUTO_HIDE - Automatically hides the window scrollbar if no user interaction: also requires delta time in nk_context to be set each frame
  • WINDOW_BACKGROUND - Always keep window in the background
  • WINDOW_SCALE_LEFT - Puts window scaler in the left-bottom corner instead right-bottom
  • WINDOW_NO_INPUT - Prevents window of scaling, moving or getting focus
public static final int
NK_WINDOW_CLOSABLE

nk_panel_flags Enum values:

  • WINDOW_BORDER - Draws a border around the window to visually separate the window from the background
  • WINDOW_MOVABLE - The movable flag indicates that a window can be moved by user input or by dragging the window header
  • WINDOW_SCALABLE - The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window
  • WINDOW_CLOSABLE - adds a closable icon into the header
  • WINDOW_MINIMIZABLE - adds a minimize icon into the header
  • WINDOW_NO_SCROLLBAR - Removes the scrollbar from the window
  • WINDOW_TITLE - Forces a header at the top at the window showing the title
  • WINDOW_SCROLL_AUTO_HIDE - Automatically hides the window scrollbar if no user interaction: also requires delta time in nk_context to be set each frame
  • WINDOW_BACKGROUND - Always keep window in the background
  • WINDOW_SCALE_LEFT - Puts window scaler in the left-bottom corner instead right-bottom
  • WINDOW_NO_INPUT - Prevents window of scaling, moving or getting focus
public static final int
NK_WINDOW_CLOSED

nk_window_flags Enum values:

  • WINDOW_PRIVATE
  • WINDOW_DYNAMIC - special window type growing up in height while being filled to a certain maximum height
  • WINDOW_ROM - sets the window into a read only mode and does not allow input changes
  • WINDOW_HIDDEN - Hides the window and stops any window interaction and drawing can be set by user input or by closing the window
  • WINDOW_CLOSED - Directly closes and frees the window at the end of the frame
  • WINDOW_MINIMIZED - marks the window as minimized
  • WINDOW_REMOVE_ROM - Removes the read only mode at the end of the window
public static final int
NK_WINDOW_DYNAMIC

nk_window_flags Enum values:

  • WINDOW_PRIVATE
  • WINDOW_DYNAMIC - special window type growing up in height while being filled to a certain maximum height
  • WINDOW_ROM - sets the window into a read only mode and does not allow input changes
  • WINDOW_HIDDEN - Hides the window and stops any window interaction and drawing can be set by user input or by closing the window
  • WINDOW_CLOSED - Directly closes and frees the window at the end of the frame
  • WINDOW_MINIMIZED - marks the window as minimized
  • WINDOW_REMOVE_ROM - Removes the read only mode at the end of the window
public static final int
NK_WINDOW_HIDDEN

nk_window_flags Enum values:

  • WINDOW_PRIVATE
  • WINDOW_DYNAMIC - special window type growing up in height while being filled to a certain maximum height
  • WINDOW_ROM - sets the window into a read only mode and does not allow input changes
  • WINDOW_HIDDEN - Hides the window and stops any window interaction and drawing can be set by user input or by closing the window
  • WINDOW_CLOSED - Directly closes and frees the window at the end of the frame
  • WINDOW_MINIMIZED - marks the window as minimized
  • WINDOW_REMOVE_ROM - Removes the read only mode at the end of the window
public static final int
NK_WINDOW_MAX_NAME

Implementation limits.

public static final int
NK_WINDOW_MINIMIZABLE

nk_panel_flags Enum values:

  • WINDOW_BORDER - Draws a border around the window to visually separate the window from the background
  • WINDOW_MOVABLE - The movable flag indicates that a window can be moved by user input or by dragging the window header
  • WINDOW_SCALABLE - The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window
  • WINDOW_CLOSABLE - adds a closable icon into the header
  • WINDOW_MINIMIZABLE - adds a minimize icon into the header
  • WINDOW_NO_SCROLLBAR - Removes the scrollbar from the window
  • WINDOW_TITLE - Forces a header at the top at the window showing the title
  • WINDOW_SCROLL_AUTO_HIDE - Automatically hides the window scrollbar if no user interaction: also requires delta time in nk_context to be set each frame
  • WINDOW_BACKGROUND - Always keep window in the background
  • WINDOW_SCALE_LEFT - Puts window scaler in the left-bottom corner instead right-bottom
  • WINDOW_NO_INPUT - Prevents window of scaling, moving or getting focus
public static final int
NK_WINDOW_MINIMIZED

nk_window_flags Enum values:

  • WINDOW_PRIVATE
  • WINDOW_DYNAMIC - special window type growing up in height while being filled to a certain maximum height
  • WINDOW_ROM - sets the window into a read only mode and does not allow input changes
  • WINDOW_HIDDEN - Hides the window and stops any window interaction and drawing can be set by user input or by closing the window
  • WINDOW_CLOSED - Directly closes and frees the window at the end of the frame
  • WINDOW_MINIMIZED - marks the window as minimized
  • WINDOW_REMOVE_ROM - Removes the read only mode at the end of the window
public static final int
NK_WINDOW_MOVABLE

nk_panel_flags Enum values:

  • WINDOW_BORDER - Draws a border around the window to visually separate the window from the background
  • WINDOW_MOVABLE - The movable flag indicates that a window can be moved by user input or by dragging the window header
  • WINDOW_SCALABLE - The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window
  • WINDOW_CLOSABLE - adds a closable icon into the header
  • WINDOW_MINIMIZABLE - adds a minimize icon into the header
  • WINDOW_NO_SCROLLBAR - Removes the scrollbar from the window
  • WINDOW_TITLE - Forces a header at the top at the window showing the title
  • WINDOW_SCROLL_AUTO_HIDE - Automatically hides the window scrollbar if no user interaction: also requires delta time in nk_context to be set each frame
  • WINDOW_BACKGROUND - Always keep window in the background
  • WINDOW_SCALE_LEFT - Puts window scaler in the left-bottom corner instead right-bottom
  • WINDOW_NO_INPUT - Prevents window of scaling, moving or getting focus
public static final int
NK_WINDOW_NO_INPUT

nk_panel_flags Enum values:

  • WINDOW_BORDER - Draws a border around the window to visually separate the window from the background
  • WINDOW_MOVABLE - The movable flag indicates that a window can be moved by user input or by dragging the window header
  • WINDOW_SCALABLE - The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window
  • WINDOW_CLOSABLE - adds a closable icon into the header
  • WINDOW_MINIMIZABLE - adds a minimize icon into the header
  • WINDOW_NO_SCROLLBAR - Removes the scrollbar from the window
  • WINDOW_TITLE - Forces a header at the top at the window showing the title
  • WINDOW_SCROLL_AUTO_HIDE - Automatically hides the window scrollbar if no user interaction: also requires delta time in nk_context to be set each frame
  • WINDOW_BACKGROUND - Always keep window in the background
  • WINDOW_SCALE_LEFT - Puts window scaler in the left-bottom corner instead right-bottom
  • WINDOW_NO_INPUT - Prevents window of scaling, moving or getting focus
public static final int
NK_WINDOW_NO_SCROLLBAR

nk_panel_flags Enum values:

  • WINDOW_BORDER - Draws a border around the window to visually separate the window from the background
  • WINDOW_MOVABLE - The movable flag indicates that a window can be moved by user input or by dragging the window header
  • WINDOW_SCALABLE - The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window
  • WINDOW_CLOSABLE - adds a closable icon into the header
  • WINDOW_MINIMIZABLE - adds a minimize icon into the header
  • WINDOW_NO_SCROLLBAR - Removes the scrollbar from the window
  • WINDOW_TITLE - Forces a header at the top at the window showing the title
  • WINDOW_SCROLL_AUTO_HIDE - Automatically hides the window scrollbar if no user interaction: also requires delta time in nk_context to be set each frame
  • WINDOW_BACKGROUND - Always keep window in the background
  • WINDOW_SCALE_LEFT - Puts window scaler in the left-bottom corner instead right-bottom
  • WINDOW_NO_INPUT - Prevents window of scaling, moving or getting focus
public static final int
NK_WINDOW_PRIVATE

nk_window_flags Enum values:

  • WINDOW_PRIVATE
  • WINDOW_DYNAMIC - special window type growing up in height while being filled to a certain maximum height
  • WINDOW_ROM - sets the window into a read only mode and does not allow input changes
  • WINDOW_HIDDEN - Hides the window and stops any window interaction and drawing can be set by user input or by closing the window
  • WINDOW_CLOSED - Directly closes and frees the window at the end of the frame
  • WINDOW_MINIMIZED - marks the window as minimized
  • WINDOW_REMOVE_ROM - Removes the read only mode at the end of the window
public static final int
NK_WINDOW_REMOVE_ROM

nk_window_flags Enum values:

  • WINDOW_PRIVATE
  • WINDOW_DYNAMIC - special window type growing up in height while being filled to a certain maximum height
  • WINDOW_ROM - sets the window into a read only mode and does not allow input changes
  • WINDOW_HIDDEN - Hides the window and stops any window interaction and drawing can be set by user input or by closing the window
  • WINDOW_CLOSED - Directly closes and frees the window at the end of the frame
  • WINDOW_MINIMIZED - marks the window as minimized
  • WINDOW_REMOVE_ROM - Removes the read only mode at the end of the window
public static final int
NK_WINDOW_ROM

nk_window_flags Enum values:

  • WINDOW_PRIVATE
  • WINDOW_DYNAMIC - special window type growing up in height while being filled to a certain maximum height
  • WINDOW_ROM - sets the window into a read only mode and does not allow input changes
  • WINDOW_HIDDEN - Hides the window and stops any window interaction and drawing can be set by user input or by closing the window
  • WINDOW_CLOSED - Directly closes and frees the window at the end of the frame
  • WINDOW_MINIMIZED - marks the window as minimized
  • WINDOW_REMOVE_ROM - Removes the read only mode at the end of the window
public static final int
NK_WINDOW_SCALABLE

nk_panel_flags Enum values:

  • WINDOW_BORDER - Draws a border around the window to visually separate the window from the background
  • WINDOW_MOVABLE - The movable flag indicates that a window can be moved by user input or by dragging the window header
  • WINDOW_SCALABLE - The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window
  • WINDOW_CLOSABLE - adds a closable icon into the header
  • WINDOW_MINIMIZABLE - adds a minimize icon into the header
  • WINDOW_NO_SCROLLBAR - Removes the scrollbar from the window
  • WINDOW_TITLE - Forces a header at the top at the window showing the title
  • WINDOW_SCROLL_AUTO_HIDE - Automatically hides the window scrollbar if no user interaction: also requires delta time in nk_context to be set each frame
  • WINDOW_BACKGROUND - Always keep window in the background
  • WINDOW_SCALE_LEFT - Puts window scaler in the left-bottom corner instead right-bottom
  • WINDOW_NO_INPUT - Prevents window of scaling, moving or getting focus
public static final int
NK_WINDOW_SCALE_LEFT

nk_panel_flags Enum values:

  • WINDOW_BORDER - Draws a border around the window to visually separate the window from the background
  • WINDOW_MOVABLE - The movable flag indicates that a window can be moved by user input or by dragging the window header
  • WINDOW_SCALABLE - The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window
  • WINDOW_CLOSABLE - adds a closable icon into the header
  • WINDOW_MINIMIZABLE - adds a minimize icon into the header
  • WINDOW_NO_SCROLLBAR - Removes the scrollbar from the window
  • WINDOW_TITLE - Forces a header at the top at the window showing the title
  • WINDOW_SCROLL_AUTO_HIDE - Automatically hides the window scrollbar if no user interaction: also requires delta time in nk_context to be set each frame
  • WINDOW_BACKGROUND - Always keep window in the background
  • WINDOW_SCALE_LEFT - Puts window scaler in the left-bottom corner instead right-bottom
  • WINDOW_NO_INPUT - Prevents window of scaling, moving or getting focus
public static final int
NK_WINDOW_SCROLL_AUTO_HIDE

nk_panel_flags Enum values:

  • WINDOW_BORDER - Draws a border around the window to visually separate the window from the background
  • WINDOW_MOVABLE - The movable flag indicates that a window can be moved by user input or by dragging the window header
  • WINDOW_SCALABLE - The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window
  • WINDOW_CLOSABLE - adds a closable icon into the header
  • WINDOW_MINIMIZABLE - adds a minimize icon into the header
  • WINDOW_NO_SCROLLBAR - Removes the scrollbar from the window
  • WINDOW_TITLE - Forces a header at the top at the window showing the title
  • WINDOW_SCROLL_AUTO_HIDE - Automatically hides the window scrollbar if no user interaction: also requires delta time in nk_context to be set each frame
  • WINDOW_BACKGROUND - Always keep window in the background
  • WINDOW_SCALE_LEFT - Puts window scaler in the left-bottom corner instead right-bottom
  • WINDOW_NO_INPUT - Prevents window of scaling, moving or getting focus
public static final int
NK_WINDOW_TITLE

nk_panel_flags Enum values:

  • WINDOW_BORDER - Draws a border around the window to visually separate the window from the background
  • WINDOW_MOVABLE - The movable flag indicates that a window can be moved by user input or by dragging the window header
  • WINDOW_SCALABLE - The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window
  • WINDOW_CLOSABLE - adds a closable icon into the header
  • WINDOW_MINIMIZABLE - adds a minimize icon into the header
  • WINDOW_NO_SCROLLBAR - Removes the scrollbar from the window
  • WINDOW_TITLE - Forces a header at the top at the window showing the title
  • WINDOW_SCROLL_AUTO_HIDE - Automatically hides the window scrollbar if no user interaction: also requires delta time in nk_context to be set each frame
  • WINDOW_BACKGROUND - Always keep window in the background
  • WINDOW_SCALE_LEFT - Puts window scaler in the left-bottom corner instead right-bottom
  • WINDOW_NO_INPUT - Prevents window of scaling, moving or getting focus

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static NkCommand
nk__begin(NkContext
the nuklear context
ctx
)

Returns draw command pointer pointing to the next command inside the draw command list.

public static NkDrawCommand
nk__draw_begin(NkContext
the nuklear context
ctx
,
NkBuffer buffer)

Returns a draw vertex command buffer iterator to iterate over the vertex draw command buffer.

public static NkDrawCommand
nk__draw_end(NkContext
the nuklear context
ctx
,
NkBuffer buffer)

Returns the end of the vertex draw list.

public static NkDrawCommand
public static NkDrawCommand
public static NkDrawCommand
nk__draw_next(NkDrawCommand cmd, NkBuffer buffer, NkContext
the nuklear context
ctx
)

Increments the vertex command iterator to the next command inside the context vertex command list.

public static NkCommand
nk__next(NkContext
the nuklear context
ctx
,
NkCommand cmd)

Increments the draw command iterator to the next command inside the context draw command list.

public static boolean
nk_begin(NkContext
the nuklear context
ctx
,
ByteBuffer title, NkRect bounds, int flags)

Starts a new window; needs to be called every frame for every window (unless hidden) or otherwise the window gets removed.

public static boolean
nk_begin(NkContext
the nuklear context
ctx
,
CharSequence title, NkRect bounds, int flags)

Starts a new window; needs to be called every frame for every window (unless hidden) or otherwise the window gets removed.

public static boolean
nk_begin_titled(NkContext
the nuklear context
ctx
,
ByteBuffer name, ByteBuffer title, NkRect bounds, int flags)

Extended window start with separated title and identifier to allow multiple windows with same title but not name.

public static boolean
nk_begin_titled(NkContext
the nuklear context
ctx
,
CharSequence name, CharSequence title, NkRect bounds, int flags)

Extended window start with separated title and identifier to allow multiple windows with same title but not name.

public static void
public static void
public static void
public static void
nk_buffer_init(NkBuffer buffer, NkAllocator allocator, long size)

public static void
public static void
public static long
public static long
public static void
nk_buffer_push(NkBuffer buffer, int type, ByteBuffer memory, long align)

public static void
public static long
public static boolean
nk_button_color(NkContext
the nuklear context
ctx
,
NkColor color)

public static boolean
nk_button_image(NkContext
the nuklear context
ctx
,
NkImage img)

public static boolean
nk_button_image_label(NkContext
the nuklear context
ctx
,
NkImage img, ByteBuffer text, int text_alignment)

public static boolean
nk_button_image_label(NkContext
the nuklear context
ctx
,
NkImage img, CharSequence text, int text_alignment)

public static boolean
nk_button_image_label_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, NkImage img, ByteBuffer title, int text_alignment)

public static boolean
nk_button_image_label_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, NkImage img, CharSequence title, int text_alignment)

public static boolean
nk_button_image_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, NkImage img)

public static boolean
nk_button_image_text(NkContext
the nuklear context
ctx
,
NkImage img, ByteBuffer text, int alignment)

public static boolean
nk_button_image_text(NkContext
the nuklear context
ctx
,
NkImage img, CharSequence text, int alignment)

public static boolean
nk_button_image_text_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, NkImage img, ByteBuffer title, int len, int alignment)

public static boolean
nk_button_image_text_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, NkImage img, CharSequence title, int len, int alignment)

public static boolean
nk_button_label(NkContext
the nuklear context
ctx
,
ByteBuffer title)

public static boolean
nk_button_label(NkContext
the nuklear context
ctx
,
CharSequence title)

public static boolean
nk_button_label_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, ByteBuffer title)

public static boolean
nk_button_label_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, CharSequence title)

public static boolean
nk_button_pop_behavior(NkContext
the nuklear context
ctx
)

public static boolean
nk_button_push_behavior(NkContext
the nuklear context
ctx
,
int behavior)

public static void
nk_button_set_behavior(NkContext
the nuklear context
ctx
,
int behavior)

public static boolean
public static boolean
public static boolean
public static boolean
nk_button_symbol_label_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, int symbol, ByteBuffer title, int text_alignment)

public static boolean
nk_button_symbol_label_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, int symbol, CharSequence title, int text_alignment)

public static boolean
nk_button_symbol_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, int symbol)

public static boolean
public static boolean
public static boolean
nk_button_symbol_text_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, int symbol, ByteBuffer title, int len, int alignment)

public static boolean
nk_button_symbol_text_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, int symbol, CharSequence title, int len, int alignment)

public static boolean
nk_button_text(NkContext
the nuklear context
ctx
,
ByteBuffer title)

public static boolean
nk_button_text(NkContext
the nuklear context
ctx
,
CharSequence title)

public static boolean
nk_button_text_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, ByteBuffer title, int len)

public static boolean
nk_button_text_styled(NkContext
the nuklear context
ctx
,
NkStyleButton style, CharSequence title, int len)

public static void
nk_chart_add_slot(NkContext
the nuklear context
ctx
,
int type, int count, float min_value, float max_value)

public static void
nk_chart_add_slot_colored(NkContext
the nuklear context
ctx
,
int type, NkColor color, NkColor active, int count, float min_value, float max_value)

public static boolean
nk_chart_begin(NkContext
the nuklear context
ctx
,
int type, int num, float min, float max)

public static boolean
nk_chart_begin_colored(NkContext
the nuklear context
ctx
,
int type, NkColor color, NkColor active, int num, float min, float max)

public static void
nk_chart_end(NkContext
the nuklear context
ctx
)

public static int
nk_chart_push(NkContext
the nuklear context
ctx
,
float value)

public static int
nk_chart_push_slot(NkContext
the nuklear context
ctx
,
float value, int slot)

public static int
nk_check_flags_label(NkContext
the nuklear context
ctx
,
ByteBuffer str, int flags, int value)

public static int
nk_check_flags_label(NkContext
the nuklear context
ctx
,
CharSequence str, int flags, int value)

public static int
nk_check_flags_text(NkContext
the nuklear context
ctx
,
ByteBuffer str, int flags, int value)

public static int
nk_check_flags_text(NkContext
the nuklear context
ctx
,
CharSequence str, int flags, int value)

public static boolean
nk_check_label(NkContext
the nuklear context
ctx
,
ByteBuffer str, boolean active)

public static boolean
nk_check_label(NkContext
the nuklear context
ctx
,
CharSequence str, boolean active)

public static boolean
nk_check_text(NkContext
the nuklear context
ctx
,
ByteBuffer str, boolean active)

public static boolean
nk_check_text(NkContext
the nuklear context
ctx
,
CharSequence str, boolean active)

public static boolean
nk_checkbox_flags_label(NkContext
the nuklear context
ctx
,
ByteBuffer str, IntBuffer flags, int value)

public static boolean
nk_checkbox_flags_label(NkContext
the nuklear context
ctx
,
CharSequence str, IntBuffer flags, int value)

public static boolean
nk_checkbox_flags_label(NkContext ctx, ByteBuffer str, int[] flags, int value)

Array version of: checkbox_flags_label

public static boolean
nk_checkbox_flags_label(NkContext ctx, CharSequence str, int[] flags, int value)

Array version of: checkbox_flags_label

public static boolean
nk_checkbox_flags_text(NkContext
the nuklear context
ctx
,
ByteBuffer str, IntBuffer flags, int value)

public static boolean
nk_checkbox_flags_text(NkContext
the nuklear context
ctx
,
CharSequence str, IntBuffer flags, int value)

public static boolean
nk_checkbox_flags_text(NkContext ctx, ByteBuffer str, int[] flags, int value)

Array version of: checkbox_flags_text

public static boolean
nk_checkbox_flags_text(NkContext ctx, CharSequence str, int[] flags, int value)

Array version of: checkbox_flags_text

public static boolean
nk_checkbox_label(NkContext
the nuklear context
ctx
,
ByteBuffer str, ByteBuffer active)

public static boolean
nk_checkbox_label(NkContext
the nuklear context
ctx
,
CharSequence str, ByteBuffer active)

public static boolean
nk_checkbox_text(NkContext
the nuklear context
ctx
,
ByteBuffer str, ByteBuffer active)

public static boolean
nk_checkbox_text(NkContext
the nuklear context
ctx
,
CharSequence str, ByteBuffer active)

public static void
nk_clear(NkContext
the nuklear context
ctx
)

Called at the end of the frame to reset and prepare the context for the next frame.

public static NkColorf
nk_color_cf(NkColor color, NkColorf __result)

public static void
public static void
nk_color_d(double[] r, double[] g, double[] b, double[] a, NkColor color)

Array version of: color_d

public static void
nk_color_dv(DoubleBuffer rgba_out, NkColor color)

public static void
nk_color_dv(double[] rgba_out, NkColor color)

Array version of: color_dv

public static void
public static void
nk_color_f(float[] r, float[] g, float[] b, float[] a, NkColor color)

Array version of: color_f

public static void
nk_color_fv(FloatBuffer rgba_out, NkColor color)

public static void
nk_color_fv(float[] rgba_out, NkColor color)

Array version of: color_fv

public static void
public static void
public static void
public static void
public static void
public static void
nk_color_hsv_f(float[] out_h, float[] out_s, float[] out_v, NkColor color)

Array version of: color_hsv_f

public static void
public static void
nk_color_hsv_fv(float[] hsv_out, NkColor color)

Array version of: color_hsv_fv

public static void
nk_color_hsv_i(IntBuffer out_h, IntBuffer out_s, IntBuffer out_v, NkColor color)

public static void
nk_color_hsv_i(int[] out_h, int[] out_s, int[] out_v, NkColor color)

Array version of: color_hsv_i

public static void
public static void
nk_color_hsv_iv(int[] hsv_out, NkColor color)

Array version of: color_hsv_iv

public static void
public static void
public static void
public static void
nk_color_hsva_f(float[] out_h, float[] out_s, float[] out_v, float[] out_a, NkColor color)

Array version of: color_hsva_f

public static void
public static void
nk_color_hsva_fv(float[] hsva_out, NkColor color)

Array version of: color_hsva_fv

public static void
public static void
nk_color_hsva_i(int[] h, int[] s, int[] v, int[] a, NkColor color)

Array version of: color_hsva_i

public static void
public static void
nk_color_hsva_iv(int[] hsva_out, NkColor color)

Array version of: color_hsva_iv

public static boolean
nk_color_pick(NkContext
the nuklear context
ctx
,
NkColorf color, int
one of:
RGBRGBA
fmt
)

public static NkColorf
nk_color_picker(NkContext
the nuklear context
ctx
,
NkColorf color, int
one of:
RGBRGBA
fmt
)

public static int
public static void
public static void
nk_colorf_hsva_f(float[] out_h, float[] out_s, float[] out_v, float[] out_a, NkColorf in)

Array version of: colorf_hsva_f

public static void
public static void
nk_colorf_hsva_fv(float[] hsva, NkColorf in)

Array version of: colorf_hsva_fv

public static int
nk_combo(NkContext
the nuklear context
ctx
,
PointerBuffer items, int selected, int item_height, NkVec2 size)

public static boolean
nk_combo_begin_color(NkContext
the nuklear context
ctx
,
NkColor color, NkVec2 size)

public static boolean
nk_combo_begin_image(NkContext
the nuklear context
ctx
,
NkImage img, NkVec2 size)

public static boolean
nk_combo_begin_image_label(NkContext
the nuklear context
ctx
,
ByteBuffer selected, NkImage img, NkVec2 size)

public static boolean
nk_combo_begin_image_label(NkContext
the nuklear context
ctx
,
CharSequence selected, NkImage img, NkVec2 size)

public static boolean
nk_combo_begin_image_text(NkContext
the nuklear context
ctx
,
ByteBuffer selected, NkImage img, NkVec2 size)

public static boolean
nk_combo_begin_image_text(NkContext
the nuklear context
ctx
,
CharSequence selected, NkImage img, NkVec2 size)

public static boolean
nk_combo_begin_label(NkContext
the nuklear context
ctx
,
ByteBuffer selected, NkVec2 size)

public static boolean
nk_combo_begin_label(NkContext
the nuklear context
ctx
,
CharSequence selected, NkVec2 size)

public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
nk_combo_begin_text(NkContext
the nuklear context
ctx
,
ByteBuffer selected, NkVec2 size)

public static boolean
nk_combo_begin_text(NkContext
the nuklear context
ctx
,
CharSequence selected, NkVec2 size)

public static int
nk_combo_callback(NkContext
the nuklear context
ctx
,
NkItemGetterI item_getter, long userdata, int selected, int count, int item_height, NkVec2 size)

public static void
nk_combo_close(NkContext
the nuklear context
ctx
)

public static void
nk_combo_end(NkContext
the nuklear context
ctx
)

public static boolean
nk_combo_item_image_label(NkContext
the nuklear context
ctx
,
NkImage img, ByteBuffer text, int alignment)

public static boolean
nk_combo_item_image_label(NkContext
the nuklear context
ctx
,
NkImage img, CharSequence text, int alignment)

public static boolean
nk_combo_item_image_text(NkContext
the nuklear context
ctx
,
NkImage img, ByteBuffer text, int alignment)

public static boolean
nk_combo_item_image_text(NkContext
the nuklear context
ctx
,
NkImage img, CharSequence text, int alignment)

public static boolean
nk_combo_item_label(NkContext
the nuklear context
ctx
,
ByteBuffer text, int alignment)

public static boolean
nk_combo_item_label(NkContext
the nuklear context
ctx
,
CharSequence text, int alignment)

public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
nk_combo_item_text(NkContext
the nuklear context
ctx
,
ByteBuffer text, int alignment)

public static boolean
nk_combo_item_text(NkContext
the nuklear context
ctx
,
CharSequence text, int alignment)

public static int
nk_combo_separator(NkContext
the nuklear context
ctx
,
ByteBuffer items_separated_by_separator, int separator, int selected, int count, int item_height, NkVec2 size)

public static int
nk_combo_separator(NkContext
the nuklear context
ctx
,
CharSequence items_separated_by_separator, int separator, int selected, int count, int item_height, NkVec2 size)

public static int
nk_combo_string(NkContext
the nuklear context
ctx
,
ByteBuffer items_separated_by_zeros, int selected, int count, int item_height, NkVec2 size)

public static int
nk_combo_string(NkContext
the nuklear context
ctx
,
CharSequence items_separated_by_zeros, int selected, int count, int item_height, NkVec2 size)

public static void
nk_combobox(NkContext
the nuklear context
ctx
,
PointerBuffer items, IntBuffer selected, int item_height, NkVec2 size)

public static void
nk_combobox(NkContext ctx, PointerBuffer items, int[] selected, int item_height, NkVec2 size)

Array version of: combobox

public static void
nk_combobox_callback(NkContext
the nuklear context
ctx
,
NkItemGetterI item_getter, long userdata, IntBuffer selected, int count, int item_height, NkVec2 size)

public static void
nk_combobox_callback(NkContext ctx, NkItemGetterI item_getter, long userdata, int[] selected, int count, int item_height, NkVec2 size)

Array version of: combobox_callback

public static void
nk_combobox_separator(NkContext
the nuklear context
ctx
,
ByteBuffer items_separated_by_separator, int separator, IntBuffer selected, int count, int item_height, NkVec2 size)

public static void
nk_combobox_separator(NkContext
the nuklear context
ctx
,
CharSequence items_separated_by_separator, int separator, IntBuffer selected, int count, int item_height, NkVec2 size)

public static void
nk_combobox_separator(NkContext ctx, ByteBuffer items_separated_by_separator, int separator, int[] selected, int count, int item_height, NkVec2 size)

Array version of: combobox_separator

public static void
nk_combobox_separator(NkContext ctx, CharSequence items_separated_by_separator, int separator, int[] selected, int count, int item_height, NkVec2 size)

Array version of: combobox_separator

public static void
nk_combobox_string(NkContext
the nuklear context
ctx
,
ByteBuffer items_separated_by_zeros, IntBuffer selected, int count, int item_height, NkVec2 size)

public static void
nk_combobox_string(NkContext
the nuklear context
ctx
,
CharSequence items_separated_by_zeros, IntBuffer selected, int count, int item_height, NkVec2 size)

public static void
nk_combobox_string(NkContext ctx, ByteBuffer items_separated_by_zeros, int[] selected, int count, int item_height, NkVec2 size)

Array version of: combobox_string

public static void
nk_combobox_string(NkContext ctx, CharSequence items_separated_by_zeros, int[] selected, int count, int item_height, NkVec2 size)

Array version of: combobox_string

public static boolean
public static void
nk_contextual_close(NkContext
the nuklear context
ctx
)

public static void
nk_contextual_end(NkContext
the nuklear context
ctx
)

public static boolean
nk_contextual_item_image_label(NkContext
the nuklear context
ctx
,
NkImage img, ByteBuffer text, int alignment)

public static boolean
nk_contextual_item_image_label(NkContext
the nuklear context
ctx
,
NkImage img, CharSequence text, int alignment)

public static boolean
nk_contextual_item_image_text(NkContext
the nuklear context
ctx
,
NkImage img, ByteBuffer text, int alignment)

public static boolean
nk_contextual_item_image_text(NkContext
the nuklear context
ctx
,
NkImage img, CharSequence text, int alignment)

public static boolean
nk_contextual_item_label(NkContext
the nuklear context
ctx
,
ByteBuffer text, int align)

public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
nk_contextual_item_text(NkContext
the nuklear context
ctx
,
ByteBuffer text, int align)

public static boolean
nk_contextual_item_text(NkContext
the nuklear context
ctx
,
CharSequence text, int align)

public static int
nk_convert(NkContext
the nuklear context
ctx
,
NkBuffer cmds, NkBuffer vertices, NkBuffer elements, NkConvertConfig config)

Converts from the abstract draw commands list into a hardware accessable vertex format.

public static void
public static void
public static void
nk_draw_list_add_text(NkDrawList list, NkUserFont font, NkRect rect, ByteBuffer text, float font_height, NkColor color)

public static void
nk_draw_list_add_text(NkDrawList list, NkUserFont font, NkRect rect, CharSequence text, float font_height, NkColor color)

public static void
nk_draw_list_fill_circle(NkDrawList list, NkVec2 center, float radius, NkColor col, int segs)

public static void
public static void
nk_draw_list_fill_rect(NkDrawList list, NkRect rect, NkColor color, float rounding)

public static void
public static void
public static void
public static void
nk_draw_list_path_arc_to(NkDrawList list, NkVec2 center, float radius, float a_min, float a_max, int segments)

public static void
nk_draw_list_path_arc_to_fast(NkDrawList list, NkVec2 center, float radius, int a_min, int a_max)

public static void
public static void
nk_draw_list_path_curve_to(NkDrawList list, NkVec2 p2, NkVec2 p3, NkVec2 p4, int num_segments)

public static void
public static void
public static void
nk_draw_list_path_rect_to(NkDrawList list, NkVec2 a, NkVec2 b, float rounding)

public static void
nk_draw_list_path_stroke(NkDrawList list, NkColor color, int closed, float thickness)

public static void
public static void
nk_draw_list_setup(NkDrawList canvas, NkConvertConfig config, NkBuffer cmds, NkBuffer vertices, NkBuffer elements, int line_aa, int shape_aa)

public static void
nk_draw_list_stroke_circle(NkDrawList list, NkVec2 center, float radius, NkColor color, int segs, float thickness)

public static void
nk_draw_list_stroke_curve(NkDrawList list, NkVec2 p0, NkVec2 cp0, NkVec2 cp1, NkVec2 p1, NkColor color, int segments, float thickness)

public static void
nk_draw_list_stroke_line(NkDrawList list, NkVec2 a, NkVec2 b, NkColor color, float thickness)

public static void
nk_draw_list_stroke_poly_line(NkDrawList list, NkVec2 pnts, int cnt, NkColor color, int closed, float thickness, int aliasing)

public static void
nk_draw_list_stroke_rect(NkDrawList list, NkRect rect, NkColor color, float rounding, float thickness)

public static void
nk_draw_list_stroke_triangle(NkDrawList list, NkVec2 a, NkVec2 b, NkVec2 c, NkColor color, float thickness)

public static void
public static void
public static void
public static int
public static void
public static int
public static int
public static int
nk_edit_string(NkContext ctx, int flags, ByteBuffer memory, int[] len, int max, NkPluginFilterI filter)

Array version of: edit_string

public static int
nk_edit_string(NkContext ctx, int flags, CharSequence memory, int[] len, int max, NkPluginFilterI filter)

Array version of: edit_string

public static int
public static int
public static void
nk_edit_unfocus(NkContext
the nuklear context
ctx
)

public static void
nk_end(NkContext
the nuklear context
ctx
)

Needs to be called at the end of the window building process to process scaling, scrollbars and general cleanup.

public static void
nk_fill_arc(NkCommandBuffer b, float cx, float cy, float radius, float a_min, float a_max, NkColor color)

public static void
public static void
public static void
nk_fill_polygon(NkCommandBuffer b, float[] points, NkColor color)

Array version of: fill_polygon

public static void
nk_fill_rect(NkCommandBuffer b, NkRect rect, float rounding, NkColor color)

public static void
public static void
nk_fill_triangle(NkCommandBuffer b, float x0, float y0, float x1, float y1, float x2, float y2, NkColor color)

public static boolean
nk_filter_ascii(NkTextEdit edit, int unicode)

public static boolean
nk_filter_binary(NkTextEdit edit, int unicode)

public static boolean
nk_filter_decimal(NkTextEdit edit, int unicode)

public static boolean
nk_filter_default(NkTextEdit edit, int unicode)

public static boolean
nk_filter_float(NkTextEdit edit, int unicode)

public static boolean
nk_filter_hex(NkTextEdit edit, int unicode)

public static boolean
nk_filter_oct(NkTextEdit edit, int unicode)

public static NkFont
public static NkFont
nk_font_atlas_add_compressed(NkFontAtlas atlas, ByteBuffer memory, float height, NkFontConfig config)

public static NkFont
public static NkFont
public static NkFont
nk_font_atlas_add_default(NkFontAtlas atlas, float height, NkFontConfig config)

public static NkFont
nk_font_atlas_add_from_file(NkFontAtlas atlas, ByteBuffer file_path, float height, NkFontConfig config)

public static NkFont
nk_font_atlas_add_from_file(NkFontAtlas atlas, CharSequence file_path, float height, NkFontConfig config)

public static NkFont
public static ByteBuffer
nk_font_atlas_bake(NkFontAtlas atlas, IntBuffer width, IntBuffer height, int fmt)

public static ByteBuffer
nk_font_atlas_bake(NkFontAtlas atlas, int[] width, int[] height, int fmt)

Array version of: font_atlas_bake

public static void
public static void
public static void
public static void
public static void
public static void
public static IntBuffer
public static IntBuffer
public static NkFontConfig
nk_font_config(float pixel_height, NkFontConfig __result)

public static IntBuffer
public static IntBuffer
public static IntBuffer
public static IntBuffer
public static NkFontGlyph
nk_font_find_glyph(NkFont font, int unicode)

public static IntBuffer
public static IntBuffer
public static void
nk_free(NkContext
the nuklear context
ctx
)

Shutdown and free all memory allocated inside the context.

public static NkRect
public static boolean
nk_group_begin(NkContext
the nuklear context
ctx
,
ByteBuffer title, int flags)

Start a new group with internal scrollbar handling.

public static boolean
nk_group_begin(NkContext
the nuklear context
ctx
,
CharSequence title, int flags)

Start a new group with internal scrollbar handling.

public static boolean

Returns:

true if visible and fillable with widgets or false otherwise
nk_group_begin_titled
(NkContext
the nuklear context
ctx
,
ByteBuffer
must be an unique identifier for this group
name
,
ByteBuffer
group header title
title
,
int
window flags defined in the nk_panel_flags section with a number of different group behaviors. One or more of:
WINDOW_PRIVATEWINDOW_DYNAMICWINDOW_ROMWINDOW_HIDDENWINDOW_CLOSED
WINDOW_MINIMIZEDWINDOW_REMOVE_ROM
flags
)

Start a new group with separated name and title and internal scrollbar handling.

public static boolean

Returns:

true if visible and fillable with widgets or false otherwise
nk_group_begin_titled
(NkContext
the nuklear context
ctx
,
CharSequence
must be an unique identifier for this group
name
,
CharSequence
group header title
title
,
int
window flags defined in the nk_panel_flags section with a number of different group behaviors. One or more of:
WINDOW_PRIVATEWINDOW_DYNAMICWINDOW_ROMWINDOW_HIDDENWINDOW_CLOSED
WINDOW_MINIMIZEDWINDOW_REMOVE_ROM
flags
)

Start a new group with separated name and title and internal scrollbar handling.

public static void
nk_group_end(NkContext
the nuklear context
ctx
)

Ends a group.

public static void
nk_group_get_scroll(NkContext
the nuklear context
ctx
,
ByteBuffer
the id of the group to get the scroll position of
id
,
IntBuffer
a pointer to the x offset output (or NULL to ignore)
x_offset
,
IntBuffer
a pointer to the y offset output (or NULL to ignore)
y_offset
)

Gets the scroll offset for the given group.

public static void
nk_group_get_scroll(NkContext
the nuklear context
ctx
,
CharSequence
the id of the group to get the scroll position of
id
,
IntBuffer
a pointer to the x offset output (or NULL to ignore)
x_offset
,
IntBuffer
a pointer to the y offset output (or NULL to ignore)
y_offset
)

Gets the scroll offset for the given group.

public static void
nk_group_get_scroll(NkContext ctx, ByteBuffer id, int[] x_offset, int[] y_offset)

Array version of: group_get_scroll

public static void
nk_group_get_scroll(NkContext ctx, CharSequence id, int[] x_offset, int[] y_offset)

Array version of: group_get_scroll

public static boolean
nk_group_scrolled_begin(NkContext
the nuklear context
ctx
,
NkScroll scroll, ByteBuffer title, int flags)

Start a new group with manual scrollbar handling.

public static boolean
nk_group_scrolled_begin(NkContext
the nuklear context
ctx
,
NkScroll scroll, CharSequence title, int flags)

Start a new group with manual scrollbar handling.

public static void
nk_group_scrolled_end(NkContext
the nuklear context
ctx
)

Ends a group with manual scrollbar handling.

public static boolean
nk_group_scrolled_offset_begin(NkContext
the nuklear context
ctx
,
IntBuffer x_offset, IntBuffer y_offset, ByteBuffer title, int flags)

Start a new group with manual separated handling of scrollbar x- and y-offset.

public static boolean
nk_group_scrolled_offset_begin(NkContext
the nuklear context
ctx
,
IntBuffer x_offset, IntBuffer y_offset, CharSequence title, int flags)

Start a new group with manual separated handling of scrollbar x- and y-offset.

public static boolean
nk_group_scrolled_offset_begin(NkContext ctx, int[] x_offset, int[] y_offset, ByteBuffer title, int flags)

Array version of: group_scrolled_offset_begin

public static boolean
nk_group_scrolled_offset_begin(NkContext ctx, int[] x_offset, int[] y_offset, CharSequence title, int flags)

Array version of: group_scrolled_offset_begin

public static void
nk_group_set_scroll(NkContext
the nuklear context
ctx
,
ByteBuffer
the id of the group to scroll
id
,
int
the x offset to scroll to
x_offset
,
int
the y offset to scroll to
y_offset
)

Sets the scroll offset for the given group.

public static void
nk_group_set_scroll(NkContext
the nuklear context
ctx
,
CharSequence
the id of the group to scroll
id
,
int
the x offset to scroll to
x_offset
,
int
the y offset to scroll to
y_offset
)

Sets the scroll offset for the given group.

public static NkHandle
nk_handle_id(int id, NkHandle __result)

public static NkHandle
nk_handle_ptr(long ptr, NkHandle __result)

public static NkColor
nk_hsv(int h, int s, int v, NkColor __result)

public static NkColor
nk_hsv_bv(ByteBuffer hsv, NkColor __result)

public static NkColor
nk_hsv_f(float h, float s, float v, NkColor __result)

public static NkColor
nk_hsv_fv(FloatBuffer hsv, NkColor __result)

public static NkColor
nk_hsv_fv(float[] hsv, NkColor __result)

Array version of: hsv_fv

public static NkColor
nk_hsv_iv(IntBuffer hsv, NkColor __result)

public static NkColor
nk_hsv_iv(int[] hsv, NkColor __result)

Array version of: hsv_iv

public static NkColor
nk_hsva(int h, int s, int v, int a, NkColor __result)

public static NkColor
nk_hsva_bv(ByteBuffer hsva, NkColor __result)

public static NkColorf
nk_hsva_colorf(float h, float s, float v, float a, NkColorf __result)

public static NkColorf
public static NkColorf
nk_hsva_colorfv(float[] c, NkColorf __result)

Array version of: hsva_colorfv

public static NkColor
nk_hsva_f(float h, float s, float v, float a, NkColor __result)

public static NkColor
nk_hsva_fv(FloatBuffer hsva, NkColor __result)

public static NkColor
nk_hsva_fv(float[] hsva, NkColor __result)

Array version of: hsva_fv

public static NkColor
nk_hsva_iv(IntBuffer hsva, NkColor __result)

public static NkColor
nk_hsva_iv(int[] hsva, NkColor __result)

Array version of: hsva_iv

public static void
nk_image(NkContext
the nuklear context
ctx
,
NkImage img)

public static void
nk_image_color(NkContext
the nuklear context
ctx
,
NkImage img, NkColor color)

public static NkImage
nk_image_handle(NkHandle handle, NkImage __result)

public static NkImage
nk_image_id(int id, NkImage __result)

public static boolean
public static NkImage
nk_image_ptr(long ptr, NkImage __result)

public static boolean
nk_init(NkContext
the nuklear context
ctx
,
NkAllocator
must point to a previously allocated memory allocator
allocator
,
NkUserFont
must point to a previously initialized font handle
font
)

Initializes context with memory allocator callbacks for alloc and free.

public static boolean
nk_init_custom(NkContext
the nuklear context
ctx
,
NkBuffer
must point to a previously initialized memory buffer either fixed or dynamic to store draw commands into
cmds
,
NkBuffer
must point to a previously initialized memory buffer either fixed or dynamic to store windows, panels and tables
pool
,
NkUserFont
must point to a previously initialized font handle
font
)

Initializes context from two buffers.

public static boolean
nk_init_fixed(NkContext
the nuklear context
ctx
,
ByteBuffer
must point to a previously allocated memory block
memory
,
NkUserFont
must point to a previously initialized font handle
font
)

Initializes context from single fixed size memory block.

public static boolean
public static void
nk_input_begin(NkContext
the nuklear context
ctx
)

Begins the input mirroring process by resetting text, scroll, mouse, previous mouse position and movement as well as key state transitions.

public static void
nk_input_button(NkContext
the nuklear context
ctx
,
int id, int x, int y, boolean down)

Mirrors the state of a specific mouse button to nuklear.

public static void
nk_input_char(NkContext
the nuklear context
ctx
,
byte c)

Adds a single ASCII text character into an internal text buffer.

public static void
nk_input_end(NkContext
the nuklear context
ctx
)

Ends the input mirroring process by calculating state changes.

public static void
nk_input_glyph(NkContext
the nuklear context
ctx
,
ByteBuffer glyph)

Adds a single multi-byte UTF-8 character into an internal text buffer.

public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static void
public static void
nk_input_motion(NkContext
the nuklear context
ctx
,
int x, int y)

Mirrors current mouse position to nuklear.

public static boolean
public static void
nk_input_scroll(NkContext
the nuklear context
ctx
,
NkVec2
vector with both X- as well as Y-scroll value
val
)

Copies the last mouse scroll value to nuklear.

public static void
nk_input_unicode(NkContext
the nuklear context
ctx
,
int unicode)

Adds a single unicode rune into an internal text buffer.

public static boolean
nk_item_is_any_active(NkContext
the nuklear context
ctx
)

Returns if any window or widgets is currently hovered or active.

public static void
nk_label(NkContext
the nuklear context
ctx
,
ByteBuffer str, int align)

public static void
nk_label(NkContext
the nuklear context
ctx
,
CharSequence str, int align)

public static void
nk_label_colored(NkContext
the nuklear context
ctx
,
ByteBuffer str, int align, NkColor color)

public static void
nk_label_colored(NkContext
the nuklear context
ctx
,
CharSequence str, int align, NkColor color)

public static void
nk_label_colored_wrap(NkContext
the nuklear context
ctx
,
ByteBuffer str, NkColor color)

public static void
nk_label_colored_wrap(NkContext
the nuklear context
ctx
,
CharSequence str, NkColor color)

public static void
nk_label_wrap(NkContext
the nuklear context
ctx
,
ByteBuffer str)

public static void
nk_label_wrap(NkContext
the nuklear context
ctx
,
CharSequence str)

public static float
nk_layout_ratio_from_pixel(NkContext
the nuklear context
ctx
,
float
pixel width to convert to window ratio
pixel_width
)

Utility function to calculate window ratio from pixel size.

public static void
nk_layout_reset_min_row_height(NkContext
the nuklear context
ctx
)

Resets the currently used minimum row height back to font height + text padding + additional padding (style_window.min_row_height_padding).

public static void
nk_layout_row(NkContext
the nuklear context
ctx
,
int
either DYNAMIC for window ratio or STATIC for fixed size columns. One of:
DYNAMICSTATIC
fmt
,
float
holds height of each widget in row or zero for auto layouting
height
,
FloatBuffer ratio)

Specifies row columns in array as either window ratio or size.

public static void
nk_layout_row(NkContext ctx, int fmt, float height, float[] ratio)

Array version of: layout_row

public static void
nk_layout_row_begin(NkContext
the nuklear context
ctx
,
int
either DYNAMIC for window ratio or STATIC for fixed size columns. One of:
DYNAMICSTATIC
fmt
,
float
holds height of each widget in row or zero for auto layouting
row_height
,
int
number of widgets inside row
cols
)

Starts a new dynamic or fixed row with given height and columns.

public static void
nk_layout_row_dynamic(NkContext
the nuklear context
ctx
,
float
holds height of each widget in row or zero for auto layouting
height
,
int
number of widgets inside row
cols
)

Sets current row layout to share horizontal space between cols number of widgets evenly.

public static void
nk_layout_row_end(NkContext
the nuklear context
ctx
)

Finishes previously started row

public static void
nk_layout_row_push(NkContext
the nuklear context
ctx
,
float
either a window ratio or fixed width depending on fmt in previous layout_row_begin call
value
)

Specifies either window ratio or width of a single column.

public static void
nk_layout_row_static(NkContext
the nuklear context
ctx
,
float
holds row height to allocate from panel for widget height
height
,
int
holds width of each widget in row
item_width
,
int
number of widgets inside row
cols
)

Sets current row layout to fill cols number of widgets in row with same item_width horizontal size.

public static void
nk_layout_row_template_begin(NkContext
the nuklear context
ctx
,
float
holds height of each widget in row or zero for auto layouting
height
)

Begins the row template declaration.

public static void
nk_layout_row_template_end(NkContext
the nuklear context
ctx
)

Marks the end of the row template.

public static void
nk_layout_row_template_push_dynamic(NkContext
the nuklear context
ctx
)

Adds a dynamic column that dynamically grows and can go to zero if not enough space.

public static void
nk_layout_row_template_push_static(NkContext
the nuklear context
ctx
,
float
holds the absolute pixel width value the next column must be
width
)

Adds a static column that does not grow and will always have the same size.

public static void
nk_layout_row_template_push_variable(NkContext
the nuklear context
ctx
,
float
holds the minimum pixel width the next column must be
min_width
)

Adds a variable column that dynamically grows but does not shrink below specified pixel width.

public static void
nk_layout_set_min_row_height(NkContext
the nuklear context
ctx
,
float
new minimum row height to be used for auto generating the row height
height
)

Sets the currently used minimum row height.

public static void
nk_layout_space_begin(NkContext
the nuklear context
ctx
,
int
either DYNAMIC for window ratio or STATIC for fixed size columns. One of:
DYNAMICSTATIC
fmt
,
float
holds height of each widget in row or zero for auto layouting
height
,
int
number of widgets inside row
widget_count
)

Begins a new layouting space that allows to specify each widgets position and size.

public static NkRect
nk_layout_space_bounds(NkContext
the nuklear context
ctx
,
NkRect __result)

Returns total space allocated for nk_layout_space.

public static void
nk_layout_space_end(NkContext
the nuklear context
ctx
)

Marks the end of the layout space.

public static void
nk_layout_space_push(NkContext
the nuklear context
ctx
,
NkRect
position and size in layout space local coordinates
rect
)

Pushes position and size of the next widget in own coordiante space either as pixel or ratio.

public static NkRect
nk_layout_space_rect_to_local(NkContext
the nuklear context
ctx
,
NkRect
rectangle to convert from screen space into layout space
ret
)

Converts rectangle from layout space into screen space.

public static NkRect
nk_layout_space_rect_to_screen(NkContext
the nuklear context
ctx
,
NkRect
rectangle to convert from layout space into screen space
ret
)

Converts rectangle from screen space into layout space.

public static NkVec2
nk_layout_space_to_local(NkContext
the nuklear context
ctx
,
NkVec2
position to convert from screen space into layout coordinate space
ret
)

Converts vector from layout space into screen space.

public static NkVec2
nk_layout_space_to_screen(NkContext
the nuklear context
ctx
,
NkVec2
position to convert from layout space into screen coordinate space
ret
)

Converts vector from nk_layout_space coordinate space into screen space.

public static NkRect
nk_layout_widget_bounds(NkContext
the nuklear context
ctx
,
NkRect __result)

Returns the width of the next row allocate by one of the layouting functions.

public static boolean
nk_list_view_begin(NkContext
the nuklear context
ctx
,
NkListView view, ByteBuffer title, int flags, int row_height, int row_count)

public static boolean
nk_list_view_begin(NkContext
the nuklear context
ctx
,
NkListView view, CharSequence title, int flags, int row_height, int row_count)

public static void
public static boolean
nk_menu_begin_image(NkContext
the nuklear context
ctx
,
ByteBuffer text, NkImage img, NkVec2 size)

public static boolean
nk_menu_begin_image(NkContext
the nuklear context
ctx
,
CharSequence text, NkImage img, NkVec2 size)

public static boolean
nk_menu_begin_image_label(NkContext
the nuklear context
ctx
,
ByteBuffer text, int align, NkImage img, NkVec2 size)

public static boolean
nk_menu_begin_image_label(NkContext
the nuklear context
ctx
,
CharSequence text, int align, NkImage img, NkVec2 size)

public static boolean
nk_menu_begin_image_text(NkContext
the nuklear context
ctx
,
ByteBuffer text, int align, NkImage img, NkVec2 size)

public static boolean
nk_menu_begin_image_text(NkContext
the nuklear context
ctx
,
CharSequence text, int align, NkImage img, NkVec2 size)

public static boolean
nk_menu_begin_label(NkContext
the nuklear context
ctx
,
ByteBuffer text, int align, NkVec2 size)

public static boolean
nk_menu_begin_label(NkContext
the nuklear context
ctx
,
CharSequence text, int align, NkVec2 size)

public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
nk_menu_begin_text(NkContext
the nuklear context
ctx
,
ByteBuffer text, int align, NkVec2 size)

public static boolean
nk_menu_begin_text(NkContext
the nuklear context
ctx
,
CharSequence text, int align, NkVec2 size)

public static void
nk_menu_close(NkContext
the nuklear context
ctx
)

public static void
nk_menu_end(NkContext
the nuklear context
ctx
)

public static boolean
nk_menu_item_image_label(NkContext
the nuklear context
ctx
,
NkImage img, ByteBuffer text, int alignment)

public static boolean
nk_menu_item_image_label(NkContext
the nuklear context
ctx
,
NkImage img, CharSequence text, int alignment)

public static boolean
nk_menu_item_image_text(NkContext
the nuklear context
ctx
,
NkImage img, ByteBuffer text, int alignment)

public static boolean
nk_menu_item_image_text(NkContext
the nuklear context
ctx
,
NkImage img, CharSequence text, int alignment)

public static boolean
nk_menu_item_label(NkContext
the nuklear context
ctx
,
ByteBuffer text, int alignment)

public static boolean
nk_menu_item_label(NkContext
the nuklear context
ctx
,
CharSequence text, int alignment)

public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
nk_menu_item_text(NkContext
the nuklear context
ctx
,
ByteBuffer text, int align)

public static boolean
nk_menu_item_text(NkContext
the nuklear context
ctx
,
CharSequence text, int align)

public static void
nk_menubar_begin(NkContext
the nuklear context
ctx
)

public static void
nk_menubar_end(NkContext
the nuklear context
ctx
)

public static int
nk_murmur_hash(ByteBuffer key, int seed)

public static NkNineSlice
nk_nine_slice_handle(NkHandle handle, short l, short t, short r, short b, NkNineSlice __result)

public static NkNineSlice
nk_nine_slice_id(int id, short l, short t, short r, short b, NkNineSlice __result)

public static boolean
public static NkNineSlice
nk_nine_slice_ptr(long ptr, short l, short t, short r, short b, NkNineSlice __result)

public static boolean
nk_option_label(NkContext
the nuklear context
ctx
,
ByteBuffer str, boolean active)

public static boolean
nk_option_label(NkContext
the nuklear context
ctx
,
CharSequence str, boolean active)

public static boolean
nk_option_text(NkContext
the nuklear context
ctx
,
ByteBuffer str, boolean active)

public static boolean
nk_option_text(NkContext
the nuklear context
ctx
,
CharSequence str, boolean active)

public static void
nk_plot(NkContext
the nuklear context
ctx
,
int type, FloatBuffer values, int count, int offset)

public static void
nk_plot(NkContext ctx, int type, float[] values, int count, int offset)

Array version of: plot

public static void
nk_plot_function(NkContext
the nuklear context
ctx
,
int type, long userdata, NkValueGetterI value_getter, int count, int offset)

public static boolean
public static boolean
public static void
nk_popup_close(NkContext
the nuklear context
ctx
)

public static void
nk_popup_end(NkContext
the nuklear context
ctx
)

public static void
nk_popup_get_scroll(NkContext
the nuklear context
ctx
,
IntBuffer offset_x, IntBuffer offset_y)

public static void
nk_popup_get_scroll(NkContext ctx, int[] offset_x, int[] offset_y)

Array version of: popup_get_scroll

public static void
nk_popup_set_scroll(NkContext
the nuklear context
ctx
,
int offset_x, int offset_y)

public static long
nk_prog(NkContext
the nuklear context
ctx
,
long cur, long max, boolean modifyable)

public static boolean
nk_progress(NkContext
the nuklear context
ctx
,
PointerBuffer cur, long max, boolean modifyable)

public static void
nk_property_double(NkContext
the nuklear context
ctx
,
ByteBuffer name, double min, DoubleBuffer val, double max, double step, float inc_per_pixel)

Double property directly modifying a passed in value.

public static void
nk_property_double(NkContext
the nuklear context
ctx
,
CharSequence name, double min, DoubleBuffer val, double max, double step, float inc_per_pixel)

Double property directly modifying a passed in value.

public static void
nk_property_double(NkContext ctx, ByteBuffer name, double min, double[] val, double max, double step, float inc_per_pixel)

Array version of: property_double

public static void
nk_property_double(NkContext ctx, CharSequence name, double min, double[] val, double max, double step, float inc_per_pixel)

Array version of: property_double

public static void
nk_property_float(NkContext
the nuklear context
ctx
,
ByteBuffer name, float min, FloatBuffer val, float max, float step, float inc_per_pixel)

Float property directly modifying a passed in value.

public static void
nk_property_float(NkContext
the nuklear context
ctx
,
CharSequence name, float min, FloatBuffer val, float max, float step, float inc_per_pixel)

Float property directly modifying a passed in value.

public static void
nk_property_float(NkContext ctx, ByteBuffer name, float min, float[] val, float max, float step, float inc_per_pixel)

Array version of: property_float

public static void
nk_property_float(NkContext ctx, CharSequence name, float min, float[] val, float max, float step, float inc_per_pixel)

Array version of: property_float

public static void
nk_property_int(NkContext
the nuklear context
ctx
,
ByteBuffer name, int min, IntBuffer val, int max, int step, float inc_per_pixel)

Integer property directly modifying a passed in value.

public static void
nk_property_int(NkContext
the nuklear context
ctx
,
CharSequence name, int min, IntBuffer val, int max, int step, float inc_per_pixel)

Integer property directly modifying a passed in value.

public static void
nk_property_int(NkContext ctx, ByteBuffer name, int min, int[] val, int max, int step, float inc_per_pixel)

Array version of: property_int

public static void
nk_property_int(NkContext ctx, CharSequence name, int min, int[] val, int max, int step, float inc_per_pixel)

Array version of: property_int

public static double
nk_propertyd(NkContext
the nuklear context
ctx
,
ByteBuffer name, double min, double val, double max, double step, float inc_per_pixel)

Double property returning the modified double value.

public static double
nk_propertyd(NkContext
the nuklear context
ctx
,
CharSequence name, double min, double val, double max, double step, float inc_per_pixel)

Double property returning the modified double value.

public static float
nk_propertyf(NkContext
the nuklear context
ctx
,
ByteBuffer name, float min, float val, float max, float step, float inc_per_pixel)

Float property returning the modified float value.

public static float
nk_propertyf(NkContext
the nuklear context
ctx
,
CharSequence name, float min, float val, float max, float step, float inc_per_pixel)

Float property returning the modified float value.

public static int
nk_propertyi(NkContext
the nuklear context
ctx
,
ByteBuffer name, int min, int val, int max, int step, float inc_per_pixel)

Integer property returning the modified int value.

public static int
nk_propertyi(NkContext
the nuklear context
ctx
,
CharSequence name, int min, int val, int max, int step, float inc_per_pixel)

Integer property returning the modified int value.

public static void
public static void
public static boolean
nk_radio_label(NkContext
the nuklear context
ctx
,
ByteBuffer str, ByteBuffer active)

public static boolean
nk_radio_label(NkContext
the nuklear context
ctx
,
CharSequence str, ByteBuffer active)

public static boolean
nk_radio_text(NkContext
the nuklear context
ctx
,
ByteBuffer str, ByteBuffer active)

public static boolean
nk_radio_text(NkContext
the nuklear context
ctx
,
CharSequence str, ByteBuffer active)

public static NkRect
nk_rect(float x, float y, float w, float h, NkRect __result)

public static NkVec2
nk_rect_pos(NkRect r, NkVec2 __result)

public static NkVec2
nk_rect_size(NkRect r, NkVec2 __result)

public static NkRect
nk_recta(NkVec2 pos, NkVec2 size, NkRect __result)

public static NkRect
nk_recti(int x, int y, int w, int h, NkRect __result)

public static NkRect
nk_rectiv(IntBuffer xywh, NkRect __result)

public static NkRect
nk_rectiv(int[] xywh, NkRect __result)

Array version of: rectiv

public static NkRect
nk_rectv(FloatBuffer xywh, NkRect __result)

public static NkRect
nk_rectv(float[] xywh, NkRect __result)

Array version of: rectv

public static NkColor
nk_rgb(int r, int g, int b, NkColor __result)

public static NkColor
nk_rgb_bv(ByteBuffer rgb, NkColor __result)

public static NkColor
nk_rgb_cf(NkColorf c, NkColor __result)

public static NkColor
nk_rgb_f(float r, float g, float b, NkColor __result)

public static NkColor
nk_rgb_fv(FloatBuffer rgb, NkColor __result)

public static NkColor
nk_rgb_fv(float[] rgb, NkColor __result)

Array version of: rgb_fv

public static NkColor
nk_rgb_hex(ByteBuffer rgb, NkColor __result)

public static NkColor
public static NkColor
nk_rgb_iv(IntBuffer rgb, NkColor __result)

public static NkColor
nk_rgb_iv(int[] rgb, NkColor __result)

Array version of: rgb_iv

public static NkColor
nk_rgba(int r, int g, int b, int a, NkColor __result)

public static NkColor
nk_rgba_bv(ByteBuffer rgba, NkColor __result)

public static NkColor
public static NkColor
nk_rgba_f(float r, float g, float b, float a, NkColor __result)

public static NkColor
nk_rgba_fv(FloatBuffer rgba, NkColor __result)

public static NkColor
nk_rgba_fv(float[] rgba, NkColor __result)

Array version of: rgba_fv

public static NkColor
nk_rgba_hex(ByteBuffer rgba, NkColor __result)

public static NkColor
public static NkColor
nk_rgba_iv(IntBuffer rgba, NkColor __result)

public static NkColor
nk_rgba_iv(int[] rgba, NkColor __result)

Array version of: rgba_iv

public static NkColor
nk_rgba_u32(int in, NkColor __result)

public static boolean
nk_select_image_label(NkContext
the nuklear context
ctx
,
NkImage img, ByteBuffer str, int align, boolean value)

public static boolean
nk_select_image_label(NkContext
the nuklear context
ctx
,
NkImage img, CharSequence str, int align, boolean value)

public static boolean
nk_select_image_text(NkContext
the nuklear context
ctx
,
NkImage img, ByteBuffer str, int align, boolean value)

public static boolean
nk_select_image_text(NkContext
the nuklear context
ctx
,
NkImage img, CharSequence str, int align, boolean value)

public static boolean
nk_select_label(NkContext
the nuklear context
ctx
,
ByteBuffer str, int align, boolean value)

public static boolean
nk_select_label(NkContext
the nuklear context
ctx
,
CharSequence str, int align, boolean value)

public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
nk_select_text(NkContext
the nuklear context
ctx
,
ByteBuffer str, int align, boolean value)

public static boolean
nk_select_text(NkContext
the nuklear context
ctx
,
CharSequence str, int align, boolean value)

public static boolean
nk_selectable_image_label(NkContext
the nuklear context
ctx
,
NkImage img, ByteBuffer str, int align, ByteBuffer value)

public static boolean
nk_selectable_image_label(NkContext
the nuklear context
ctx
,
NkImage img, CharSequence str, int align, ByteBuffer value)

public static boolean
nk_selectable_image_text(NkContext
the nuklear context
ctx
,
NkImage img, ByteBuffer str, int align, ByteBuffer value)

public static boolean
nk_selectable_image_text(NkContext
the nuklear context
ctx
,
NkImage img, CharSequence str, int align, ByteBuffer value)

public static boolean
nk_selectable_label(NkContext
the nuklear context
ctx
,
ByteBuffer str, int align, ByteBuffer value)

public static boolean
nk_selectable_label(NkContext
the nuklear context
ctx
,
CharSequence str, int align, ByteBuffer value)

public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
nk_selectable_text(NkContext
the nuklear context
ctx
,
ByteBuffer str, int align, ByteBuffer value)

public static boolean
nk_selectable_text(NkContext
the nuklear context
ctx
,
CharSequence str, int align, ByteBuffer value)

public static void
nk_set_user_data(NkContext
the nuklear context
ctx
,
NkHandle
handle with either pointer or index to be passed into every draw commands
handle
)

Utility function to pass user data to draw command.

public static float
nk_slide_float(NkContext
the nuklear context
ctx
,
float min, float val, float max, float step)

public static int
nk_slide_int(NkContext
the nuklear context
ctx
,
int min, int val, int max, int step)

public static boolean
nk_slider_float(NkContext
the nuklear context
ctx
,
float min, FloatBuffer val, float max, float step)

public static boolean
nk_slider_float(NkContext ctx, float min, float[] val, float max, float step)

Array version of: slider_float

public static boolean
nk_slider_int(NkContext
the nuklear context
ctx
,
int min, IntBuffer val, int max, int step)

public static boolean
nk_slider_int(NkContext ctx, int min, int[] val, int max, int step)

Array version of: slider_int

public static void
nk_spacer(NkContext
the nuklear context
ctx
)

Spacer is a dummy widget that consumes space as usual but doesn't draw anything.

public static void
nk_spacing(NkContext
the nuklear context
ctx
,
int cols)

public static int
public static int
public static int
nk_str_append_str_runes(NkStr s, int[] runes)

Array version of: str_append_str_runes

public static int
public static int
public static int
public static int
nk_str_append_text_runes(NkStr s, int[] runes)

Array version of: str_append_text_runes

public static int
public static String
nk_str_at_char(NkStr s, int pos)

public static String
public static ByteBuffer
nk_str_at_const(NkStr s, int pos, IntBuffer unicode)

public static ByteBuffer
nk_str_at_const(NkStr s, int pos, int[] unicode)

Array version of: str_at_const

public static ByteBuffer
nk_str_at_rune(NkStr s, int pos, IntBuffer unicode)

public static ByteBuffer
nk_str_at_rune(NkStr s, int pos, int[] unicode)

Array version of: str_at_rune

public static void
public static void
nk_str_delete_chars(NkStr s, int pos, int len)

public static void
nk_str_delete_runes(NkStr s, int pos, int len)

public static void
public static String
public static String
public static void
nk_str_init(NkStr str, NkAllocator allocator, long size)

public static void
public static int
public static int
public static int
public static int
public static int
nk_str_insert_str_runes(NkStr s, int pos, int[] runes)

Array version of: str_insert_str_runes

public static int
public static int
public static int
public static int
nk_str_insert_text_runes(NkStr s, int pos, int[] runes)

Array version of: str_insert_text_runes

public static int
public static int
public static int
public static void
public static void
nk_str_remove_runes(NkStr str, int len)

public static int
nk_str_rune_at(NkStr s, int pos)

public static boolean
nk_strfilter(ByteBuffer str, ByteBuffer regexp)

  • c - matches any literal character c
  • . - matches any single character
  • ^ - matches the beginning of the input string
  • $ - matches the end of the input string
  • * - matches zero or more occurrences of the previous character
public static boolean
nk_strfilter(CharSequence str, CharSequence regexp)

  • c - matches any literal character c
  • . - matches any single character
  • ^ - matches the beginning of the input string
  • $ - matches the end of the input string
  • * - matches zero or more occurrences of the previous character
public static int
public static int
public static int
public static int
public static int
public static int
public static boolean
nk_strmatch_fuzzy_string(ByteBuffer str, ByteBuffer pattern, IntBuffer out_score)

Returns true if each character in pattern is found sequentially within str if found then out_score is also set.

public static boolean
nk_strmatch_fuzzy_string(CharSequence str, CharSequence pattern, IntBuffer out_score)

Returns true if each character in pattern is found sequentially within str if found then out_score is also set.

public static boolean
nk_strmatch_fuzzy_string(ByteBuffer str, ByteBuffer pattern, int[] out_score)

Array version of: strmatch_fuzzy_string

public static boolean
nk_strmatch_fuzzy_string(CharSequence str, CharSequence pattern, int[] out_score)

Array version of: strmatch_fuzzy_string

public static int
public static int
public static int
nk_strmatch_fuzzy_text(ByteBuffer txt, ByteBuffer pattern, int[] out_score)

Array version of: strmatch_fuzzy_text

public static int
nk_strmatch_fuzzy_text(CharSequence txt, CharSequence pattern, int[] out_score)

Array version of: strmatch_fuzzy_text

public static void
nk_stroke_arc(NkCommandBuffer b, float cx, float cy, float radius, float a_min, float a_max, float line_thickness, NkColor color)

public static void
nk_stroke_circle(NkCommandBuffer b, NkRect rect, float line_thickness, NkColor color)

public static void
nk_stroke_curve(NkCommandBuffer b, float ax, float ay, float ctrl0x, float ctrl0y, float ctrl1x, float ctrl1y, float bx, float by, float line_thickness, NkColor color)

public static void
nk_stroke_line(NkCommandBuffer b, float x0, float y0, float x1, float y1, float line_thickness, NkColor color)

public static void
nk_stroke_polygon(NkCommandBuffer b, FloatBuffer points, float line_thickness, NkColor color)

public static void
nk_stroke_polygon(NkCommandBuffer b, float[] points, float line_thickness, NkColor color)

Array version of: stroke_polygon

public static void
nk_stroke_polyline(NkCommandBuffer b, FloatBuffer points, float line_thickness, NkColor col)

public static void
nk_stroke_polyline(NkCommandBuffer b, float[] points, float line_thickness, NkColor col)

Array version of: stroke_polyline

public static void
nk_stroke_rect(NkCommandBuffer b, NkRect rect, float rounding, float line_thickness, NkColor color)

public static void
nk_stroke_triangle(NkCommandBuffer b, float x0, float y0, float x1, float y1, float x2, float y2, float line_thichness, NkColor color)

public static double
public static double
public static float
public static float
public static int
public static int
public static void
nk_style_default(NkContext
the nuklear context
ctx
)

public static void
nk_style_from_table(NkContext
the nuklear context
ctx
,
NkColor.Buffer table)

public static String
public static void
nk_style_hide_cursor(NkContext
the nuklear context
ctx
)

public static NkStyleItem
public static NkStyleItem
public static NkStyleItem
public static NkStyleItem
public static void
nk_style_load_all_cursors(NkContext
the nuklear context
ctx
,
NkCursor.Buffer cursors)

public static void
public static boolean
nk_style_pop_color(NkContext
the nuklear context
ctx
)

public static boolean
nk_style_pop_flags(NkContext
the nuklear context
ctx
)

public static boolean
nk_style_pop_float(NkContext
the nuklear context
ctx
)

public static boolean
nk_style_pop_font(NkContext
the nuklear context
ctx
)

public static boolean
nk_style_pop_style_item(NkContext
the nuklear context
ctx
)

public static boolean
nk_style_pop_vec2(NkContext
the nuklear context
ctx
)

public static boolean
nk_style_push_color(NkContext
the nuklear context
ctx
,
NkColor address, NkColor value)

public static boolean
nk_style_push_flags(NkContext
the nuklear context
ctx
,
IntBuffer address, int value)

public static boolean
nk_style_push_flags(NkContext ctx, int[] address, int value)

Array version of: style_push_flags

public static boolean
nk_style_push_float(NkContext
the nuklear context
ctx
,
FloatBuffer address, float value)

public static boolean
nk_style_push_float(NkContext ctx, float[] address, float value)

Array version of: style_push_float

public static boolean
nk_style_push_font(NkContext
the nuklear context
ctx
,
NkUserFont font)

public static boolean
nk_style_push_style_item(NkContext
the nuklear context
ctx
,
NkStyleItem address, NkStyleItem value)

public static boolean
nk_style_push_vec2(NkContext
the nuklear context
ctx
,
NkVec2 address, NkVec2 value)

public static boolean
public static void
nk_style_set_font(NkContext
the nuklear context
ctx
,
NkUserFont font)

public static void
nk_style_show_cursor(NkContext
the nuklear context
ctx
)

public static NkNineSlice
nk_sub9slice_handle(NkHandle handle, short w, short h, NkRect sub_region, short l, short t, short r, short b, NkNineSlice __result)

public static NkNineSlice
nk_sub9slice_id(int id, short w, short h, NkRect sub_region, short l, short t, short r, short b, NkNineSlice __result)

public static NkNineSlice
nk_sub9slice_ptr(long ptr, short w, short h, NkRect sub_region, short l, short t, short r, short b, NkNineSlice __result)

public static NkImage
nk_subimage_handle(NkHandle handle, short w, short h, NkRect sub_region, NkImage __result)

public static NkImage
nk_subimage_id(int id, short w, short h, NkRect sub_region, NkImage __result)

public static NkImage
nk_subimage_ptr(long ptr, short w, short h, NkRect sub_region, NkImage __result)

public static void
nk_text(NkContext
the nuklear context
ctx
,
ByteBuffer str, int alignment)

public static void
nk_text(NkContext
the nuklear context
ctx
,
CharSequence str, int alignment)

public static void
nk_text_colored(NkContext
the nuklear context
ctx
,
ByteBuffer str, int alignment, NkColor color)

public static void
nk_text_colored(NkContext
the nuklear context
ctx
,
CharSequence str, int alignment, NkColor color)

public static void
nk_text_wrap(NkContext
the nuklear context
ctx
,
ByteBuffer str)

public static void
nk_text_wrap(NkContext
the nuklear context
ctx
,
CharSequence str)

public static void
nk_text_wrap_colored(NkContext
the nuklear context
ctx
,
ByteBuffer str, NkColor color)

public static void
nk_text_wrap_colored(NkContext
the nuklear context
ctx
,
CharSequence str, NkColor color)

public static boolean
public static void
nk_textedit_delete(NkTextEdit box, int where, int len)

public static void
public static void
public static void
nk_textedit_init(NkTextEdit box, NkAllocator allocator, long size)

public static void
public static boolean
public static boolean
public static void
public static void
public static void
public static void
public static void
public static void
nk_tooltip(NkContext
the nuklear context
ctx
,
ByteBuffer text)

public static void
nk_tooltip(NkContext
the nuklear context
ctx
,
CharSequence text)

public static boolean
nk_tooltip_begin(NkContext
the nuklear context
ctx
,
float width)

public static void
nk_tooltip_end(NkContext
the nuklear context
ctx
)

public static boolean
nk_tree_element_image_push_hashed(NkContext
the nuklear context
ctx
,
int
value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node. One of:
TREE_NODETREE_TAB
type
,
NkImage img, ByteBuffer
label printed in the tree header
title
,
int initial_state, ByteBuffer selected, ByteBuffer hash, int seed)

public static boolean
nk_tree_element_image_push_hashed(NkContext
the nuklear context
ctx
,
int
value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node. One of:
TREE_NODETREE_TAB
type
,
NkImage img, CharSequence
label printed in the tree header
title
,
int initial_state, ByteBuffer selected, ByteBuffer hash, int seed)

public static void
nk_tree_element_pop(NkContext
the nuklear context
ctx
)

public static boolean
nk_tree_element_push_hashed(NkContext
the nuklear context
ctx
,
int
value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node. One of:
TREE_NODETREE_TAB
type
,
ByteBuffer
label printed in the tree header
title
,
int initial_state, ByteBuffer selected, ByteBuffer hash, int seed)

public static boolean
nk_tree_element_push_hashed(NkContext
the nuklear context
ctx
,
int
value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node. One of:
TREE_NODETREE_TAB
type
,
CharSequence
label printed in the tree header
title
,
int initial_state, ByteBuffer selected, ByteBuffer hash, int seed)

public static boolean
nk_tree_image_push_hashed(NkContext
the nuklear context
ctx
,
int
value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node. One of:
TREE_NODETREE_TAB
type
,
NkImage
image to display inside the header on the left of the label
img
,
ByteBuffer
label printed in the tree header
title
,
int
initial tree state value out of nk_collapse_states. One of:
MINIMIZEDMAXIMIZED
initial_state
,
ByteBuffer
memory block or string to generate the ID from
hash
,
int
seeding value if this function is called in a loop or default to 0
seed
)

Start a collapsible UI section with internal state management with full control over internal unique ID used to store state.

public static boolean
nk_tree_image_push_hashed(NkContext
the nuklear context
ctx
,
int
value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node. One of:
TREE_NODETREE_TAB
type
,
NkImage
image to display inside the header on the left of the label
img
,
CharSequence
label printed in the tree header
title
,
int
initial tree state value out of nk_collapse_states. One of:
MINIMIZEDMAXIMIZED
initial_state
,
ByteBuffer
memory block or string to generate the ID from
hash
,
int
seeding value if this function is called in a loop or default to 0
seed
)

Start a collapsible UI section with internal state management with full control over internal unique ID used to store state.

public static void
nk_tree_pop(NkContext
the nuklear context
ctx
)

Ends a collapsible UI section

public static boolean
nk_tree_push_hashed(NkContext
the nuklear context
ctx
,
int
value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node. One of:
TREE_NODETREE_TAB
type
,
ByteBuffer
label printed in the tree header
title
,
int
initial tree state value out of nk_collapse_states. One of:
MINIMIZEDMAXIMIZED
initial_state
,
ByteBuffer
memory block or string to generate the ID from
hash
,
int
seeding value if this function is called in a loop or default to 0
seed
)

Start a collapsible UI section with internal state management with full control over internal unique ID used to store state.

public static boolean
nk_tree_push_hashed(NkContext
the nuklear context
ctx
,
int
value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node. One of:
TREE_NODETREE_TAB
type
,
CharSequence
label printed in the tree header
title
,
int
initial tree state value out of nk_collapse_states. One of:
MINIMIZEDMAXIMIZED
initial_state
,
ByteBuffer
memory block or string to generate the ID from
hash
,
int
seeding value if this function is called in a loop or default to 0
seed
)

Start a collapsible UI section with internal state management with full control over internal unique ID used to store state.

public static boolean
nk_tree_state_image_push(NkContext
the nuklear context
ctx
,
int
value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node. One of:
TREE_NODETREE_TAB
type
,
NkImage
image to display inside the header on the left of the label
image
,
ByteBuffer
label printed in the tree header
title
,
IntBuffer state)

Start a collapsible UI section with image and label header and external state management.

public static boolean
nk_tree_state_image_push(NkContext
the nuklear context
ctx
,
int
value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node. One of:
TREE_NODETREE_TAB
type
,
NkImage
image to display inside the header on the left of the label
image
,
CharSequence
label printed in the tree header
title
,
IntBuffer state)

Start a collapsible UI section with image and label header and external state management.

public static boolean
nk_tree_state_image_push(NkContext ctx, int type, NkImage image, ByteBuffer title, int[] state)

Array version of: tree_state_image_push

public static boolean
nk_tree_state_image_push(NkContext ctx, int type, NkImage image, CharSequence title, int[] state)

Array version of: tree_state_image_push

public static void
nk_tree_state_pop(NkContext
the nuklear context
ctx
)

Ends a collapsible UI section.

public static boolean
nk_tree_state_push(NkContext
the nuklear context
ctx
,
int
value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node. One of:
TREE_NODETREE_TAB
type
,
ByteBuffer
label printed in the tree header
title
,
IntBuffer
persistent state to update
state
)

Start a collapsible UI section with external state management.

public static boolean
nk_tree_state_push(NkContext
the nuklear context
ctx
,
int
value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node. One of:
TREE_NODETREE_TAB
type
,
CharSequence
label printed in the tree header
title
,
IntBuffer
persistent state to update
state
)

Start a collapsible UI section with external state management.

public static boolean
nk_tree_state_push(NkContext ctx, int type, ByteBuffer title, int[] state)

Array version of: tree_state_push

public static boolean
nk_tree_state_push(NkContext ctx, int type, CharSequence title, int[] state)

Array version of: tree_state_push

public static void
nk_triangle_from_direction(NkVec2 result, NkRect r, float pad_x, float pad_y, int direction)

public static ByteBuffer
nk_utf_at(ByteBuffer buffer, int index, IntBuffer unicode)

public static ByteBuffer
nk_utf_at(ByteBuffer buffer, int index, int[] unicode)

Array version of: utf_at

public static int
public static int
nk_utf_decode(ByteBuffer c, int[] u)

Array version of: utf_decode

public static int
public static int
public static NkVec2
nk_vec2(float x, float y, NkVec2 __result)

public static NkVec2
nk_vec2i(int x, int y, NkVec2 __result)

public static NkVec2
nk_vec2iv(IntBuffer xy, NkVec2 __result)

public static NkVec2
nk_vec2iv(int[] xy, NkVec2 __result)

Array version of: vec2iv

public static NkVec2
nk_vec2v(FloatBuffer xy, NkVec2 __result)

public static NkVec2
nk_vec2v(float[] xy, NkVec2 __result)

Array version of: vec2v

public static int
nk_widget(NkRect bounds, NkContext
the nuklear context
ctx
)

public static NkRect
nk_widget_bounds(NkContext
the nuklear context
ctx
,
NkRect __result)

public static int
nk_widget_fitting(NkRect bounds, NkContext
the nuklear context
ctx
,
NkVec2 item_padding)

public static boolean
public static float
nk_widget_height(NkContext
the nuklear context
ctx
)

public static boolean
nk_widget_is_hovered(NkContext
the nuklear context
ctx
)

public static boolean
nk_widget_is_mouse_clicked(NkContext
the nuklear context
ctx
,
int btn)

public static NkVec2
nk_widget_position(NkContext
the nuklear context
ctx
,
NkVec2 __result)

public static NkVec2
nk_widget_size(NkContext
the nuklear context
ctx
,
NkVec2 __result)

public static float
nk_widget_width(NkContext
the nuklear context
ctx
)

public static void
nk_window_close(NkContext
the nuklear context
ctx
,
ByteBuffer name)

Closes the window with given window name which deletes the window at the end of the frame.

public static void
nk_window_close(NkContext
the nuklear context
ctx
,
CharSequence name)

Closes the window with given window name which deletes the window at the end of the frame.

public static void
nk_window_collapse(NkContext
the nuklear context
ctx
,
ByteBuffer name, int c)

Collapses the window with given window name.

public static void
nk_window_collapse(NkContext
the nuklear context
ctx
,
CharSequence name, int c)

Collapses the window with given window name.

public static void
nk_window_collapse_if(NkContext
the nuklear context
ctx
,
ByteBuffer name, int c, boolean cond)

Collapses the window with given window name if the given condition was met.

public static void
nk_window_collapse_if(NkContext
the nuklear context
ctx
,
CharSequence name, int c, boolean cond)

Collapses the window with given window name if the given condition was met.

public static NkWindow
nk_window_find(NkContext
the nuklear context
ctx
,
ByteBuffer name)

Finds and returns a window from passed name.

public static NkWindow
nk_window_find(NkContext
the nuklear context
ctx
,
CharSequence name)

Finds and returns a window from passed name.

public static NkRect
nk_window_get_bounds(NkContext
the nuklear context
ctx
,
NkRect __result)

Returns a rectangle with screen position and size of the currently processed window.

public static NkCommandBuffer
nk_window_get_canvas(NkContext
the nuklear context
ctx
)

Returns the draw command buffer.

public static NkRect
nk_window_get_content_region(NkContext
the nuklear context
ctx
,
NkRect __result)

Returns the position and size of the currently visible and non-clipped space inside the currently processed window.

public static NkVec2
nk_window_get_content_region_max(NkContext
the nuklear context
ctx
,
NkVec2 __result)

Returns the upper rectangle position of the currently visible and non-clipped space inside the currently processed window.

public static NkVec2
nk_window_get_content_region_min(NkContext
the nuklear context
ctx
,
NkVec2 __result)

Returns the upper rectangle position of the currently visible and non-clipped space inside the currently processed window.

public static NkVec2
nk_window_get_content_region_size(NkContext
the nuklear context
ctx
,
NkVec2 __result)

Returns the size of the currently visible and non-clipped space inside the currently processed window.

public static float
nk_window_get_height(NkContext
the nuklear context
ctx
)

Returns the height of the currently processed window.

public static NkPanel
nk_window_get_panel(NkContext
the nuklear context
ctx
)

Returns the underlying panel which contains all processing state of the current window.

public static NkVec2
nk_window_get_position(NkContext
the nuklear context
ctx
,
NkVec2 __result)

Returns the position of the currently processed window.

public static void
nk_window_get_scroll(NkContext
the nuklear context
ctx
,
IntBuffer
a pointer to the x offset output (or NULL to ignore)
offset_x
,
IntBuffer
a pointer to the y offset output (or NULL to ignore)
offset_y
)

Gets the scroll offset for the current window.

public static void
nk_window_get_scroll(NkContext ctx, int[] offset_x, int[] offset_y)

Array version of: window_get_scroll

public static NkVec2
nk_window_get_size(NkContext
the nuklear context
ctx
,
NkVec2 __result)

Returns the size with width and height of the currently processed window.

public static float
nk_window_get_width(NkContext
the nuklear context
ctx
)

Returns the width of the currently processed window.

public static boolean
nk_window_has_focus(NkContext
the nuklear context
ctx
)

Returns if the currently processed window is currently active.

public static boolean
nk_window_is_active(NkContext
the nuklear context
ctx
,
ByteBuffer name)

Same as window_has_focus for some reason.

public static boolean
nk_window_is_active(NkContext
the nuklear context
ctx
,
CharSequence name)

Same as window_has_focus for some reason.

public static boolean
nk_window_is_any_hovered(NkContext
the nuklear context
ctx
)

Return if any window currently hovered.

public static boolean
nk_window_is_closed(NkContext
the nuklear context
ctx
,
ByteBuffer name)

Returns if the currently processed window was closed.

public static boolean
nk_window_is_closed(NkContext
the nuklear context
ctx
,
CharSequence name)

Returns if the currently processed window was closed.

public static boolean
nk_window_is_collapsed(NkContext
the nuklear context
ctx
,
ByteBuffer name)

Returns if the window with given name is currently minimized/collapsed.

public static boolean
nk_window_is_collapsed(NkContext
the nuklear context
ctx
,
CharSequence name)

Returns if the window with given name is currently minimized/collapsed.

public static boolean
nk_window_is_hidden(NkContext
the nuklear context
ctx
,
ByteBuffer name)

Returns if the currently processed window was hidden.

public static boolean
nk_window_is_hidden(NkContext
the nuklear context
ctx
,
CharSequence name)

Returns if the currently processed window was hidden.

public static boolean
nk_window_is_hovered(NkContext
the nuklear context
ctx
)

Returns if the currently processed window is currently being hovered by mouse.

public static void
nk_window_set_bounds(NkContext
the nuklear context
ctx
,
ByteBuffer
name of the window to modify both position and size
name
,
NkRect
points to a nk_rect struct with the new position and size of the specified window
bounds
)

Updates position and size of the specified window.

public static void
nk_window_set_bounds(NkContext
the nuklear context
ctx
,
CharSequence
name of the window to modify both position and size
name
,
NkRect
points to a nk_rect struct with the new position and size of the specified window
bounds
)

Updates position and size of the specified window.

public static void
nk_window_set_focus(NkContext
the nuklear context
ctx
,
ByteBuffer
name of the window to be set active
name
)

Sets the specified window as active window.

public static void
nk_window_set_focus(NkContext
the nuklear context
ctx
,
CharSequence
name of the window to be set active
name
)

Sets the specified window as active window.

public static void
nk_window_set_position(NkContext
the nuklear context
ctx
,
ByteBuffer
name of the window to modify position of
name
,
NkVec2
points to a nk_vec2 struct with the new position of currently active window
position
)

Updates position of the currently process window.

public static void
nk_window_set_position(NkContext
the nuklear context
ctx
,
CharSequence
name of the window to modify position of
name
,
NkVec2
points to a nk_vec2 struct with the new position of currently active window
position
)

Updates position of the currently process window.

public static void
nk_window_set_scroll(NkContext
the nuklear context
ctx
,
int
the x offset to scroll to
offset_x
,
int
the y offset to scroll to
offset_y
)

Sets the scroll offset for the current window.

public static void
nk_window_set_size(NkContext
the nuklear context
ctx
,
ByteBuffer
name of the window to modify size of
name
,
NkVec2
points to a nk_vec2 struct with the new size of currently active window
size
)

Updates the size of the specified window.

public static void
nk_window_set_size(NkContext
the nuklear context
ctx
,
CharSequence
name of the window to modify size of
name
,
NkVec2
points to a nk_vec2 struct with the new size of currently active window
size
)

Updates the size of the specified window.

public static void
nk_window_show(NkContext
the nuklear context
ctx
,
ByteBuffer name, int s)

Hides a visible or reshows a hidden window.

public static void
nk_window_show(NkContext
the nuklear context
ctx
,
CharSequence name, int s)

Hides a visible or reshows a hidden window.

public static void
nk_window_show_if(NkContext
the nuklear context
ctx
,
ByteBuffer name, int s, boolean cond)

Hides/shows a window depending on condition.

public static void
nk_window_show_if(NkContext
the nuklear context
ctx
,
CharSequence name, int s, boolean cond)

Hides/shows a window depending on condition.

public static native long
nnk__begin(long ctx)

Unsafe version of: _begin

public static native long
nnk__draw_begin(long ctx, long buffer)

Unsafe version of: _draw_begin

public static native long
nnk__draw_end(long ctx, long buffer)

Unsafe version of: _draw_end

public static native long
nnk__draw_list_begin(long list, long buffer)

public static native long
nnk__draw_list_next(long cmd, long buffer, long list)

public static native long
nnk__draw_next(long cmd, long buffer, long ctx)

Unsafe version of: _draw_next

public static native long
nnk__next(long ctx, long cmd)

Unsafe version of: _next

public static native boolean
nnk_begin(long ctx, long title, long bounds, int flags)

Unsafe version of: begin

public static native boolean
nnk_begin_titled(long ctx, long name, long title, long bounds, int flags)

Unsafe version of: begin_titled

public static native void
nnk_buffer_clear(long buffer)

public static native void
nnk_buffer_free(long buffer)

public static native void
nnk_buffer_info(long status, long buffer)

public static native void
nnk_buffer_init(long buffer, long allocator, long size)

public static native void
nnk_buffer_init_fixed(long buffer, long memory, long size)

public static native void
nnk_buffer_mark(long buffer, int type)

Unsafe version of: buffer_mark

public static native long
nnk_buffer_memory(long buffer)

public static native long
public static native void
nnk_buffer_push(long buffer, int type, long memory, long size, long align)

Unsafe version of: buffer_push

public static native void
nnk_buffer_reset(long buffer, int type)

Unsafe version of: buffer_reset

public static native long
nnk_buffer_total(long buffer)

public static native boolean
nnk_button_color(long ctx, long color)

Unsafe version of: button_color

public static native boolean
nnk_button_image(long ctx, long img)

Unsafe version of: button_image

public static native boolean
nnk_button_image_label(long ctx, long img, long text, int text_alignment)

Unsafe version of: button_image_label

public static native boolean
nnk_button_image_label_styled(long ctx, long style, long img, long title, int text_alignment)

Unsafe version of: button_image_label_styled

public static native boolean
nnk_button_image_styled(long ctx, long style, long img)

Unsafe version of: button_image_styled

public static native boolean
nnk_button_image_text(long ctx, long img, long text, int len, int alignment)

Unsafe version of: button_image_text

public static native boolean
nnk_button_image_text_styled(long ctx, long style, long img, long title, int len, int alignment)

Unsafe version of: button_image_text_styled

public static native boolean
nnk_button_label(long ctx, long title)

Unsafe version of: button_label

public static native boolean
nnk_button_label_styled(long ctx, long style, long title)

Unsafe version of: button_label_styled

public static native boolean
nnk_button_pop_behavior(long ctx)

Unsafe version of: button_pop_behavior

public static native boolean
nnk_button_push_behavior(long ctx, int behavior)

Unsafe version of: button_push_behavior

public static native void
nnk_button_set_behavior(long ctx, int behavior)

Unsafe version of: button_set_behavior

public static native boolean
nnk_button_symbol(long ctx, int symbol)

Unsafe version of: button_symbol

public static native boolean
nnk_button_symbol_label(long ctx, int symbol, long text, int text_alignment)

Unsafe version of: button_symbol_label

public static native boolean
nnk_button_symbol_label_styled(long ctx, long style, int symbol, long title, int text_alignment)

Unsafe version of: button_symbol_label_styled

public static native boolean
nnk_button_symbol_styled(long ctx, long style, int symbol)

Unsafe version of: button_symbol_styled

public static native boolean
nnk_button_symbol_text(long ctx, int symbol, long text, int len, int alignment)

Unsafe version of: button_symbol_text

public static native boolean
nnk_button_symbol_text_styled(long ctx, long style, int symbol, long title, int len, int alignment)

Unsafe version of: button_symbol_text_styled

public static native boolean
nnk_button_text(long ctx, long title, int len)

Unsafe version of: button_text

public static native boolean
nnk_button_text_styled(long ctx, long style, long title, int len)

Unsafe version of: button_text_styled

public static native void
nnk_chart_add_slot(long ctx, int type, int count, float min_value, float max_value)

Unsafe version of: chart_add_slot

public static native void
nnk_chart_add_slot_colored(long ctx, int type, long color, long active, int count, float min_value, float max_value)

Unsafe version of: chart_add_slot_colored

public static native boolean
nnk_chart_begin(long ctx, int type, int num, float min, float max)

Unsafe version of: chart_begin

public static native boolean
nnk_chart_begin_colored(long ctx, int type, long color, long active, int num, float min, float max)

Unsafe version of: chart_begin_colored

public static native void
nnk_chart_end(long ctx)

Unsafe version of: chart_end

public static native int
nnk_chart_push(long ctx, float value)

Unsafe version of: chart_push

public static native int
nnk_chart_push_slot(long ctx, float value, int slot)

Unsafe version of: chart_push_slot

public static native int
nnk_check_flags_label(long ctx, long str, int flags, int value)

Unsafe version of: check_flags_label

public static native int
nnk_check_flags_text(long ctx, long str, int len, int flags, int value)

Unsafe version of: check_flags_text

public static native boolean
nnk_check_label(long ctx, long str, boolean active)

Unsafe version of: check_label

public static native boolean
nnk_check_text(long ctx, long str, int len, boolean active)

Unsafe version of: check_text

public static native boolean
nnk_checkbox_flags_label(long ctx, long str, long flags, int value)

Unsafe version of: checkbox_flags_label

public static native boolean
nnk_checkbox_flags_label(long ctx, long str, int[] flags, int value)

Array version of: nnk_checkbox_flags_label

public static native boolean
nnk_checkbox_flags_text(long ctx, long str, int len, long flags, int value)

Unsafe version of: checkbox_flags_text

public static native boolean
nnk_checkbox_flags_text(long ctx, long str, int len, int[] flags, int value)

Array version of: nnk_checkbox_flags_text

public static native boolean
nnk_checkbox_label(long ctx, long str, long active)

Unsafe version of: checkbox_label

public static native boolean
nnk_checkbox_text(long ctx, long str, int len, long active)

Unsafe version of: checkbox_text

public static native void
nnk_clear(long ctx)

Unsafe version of: clear

public static native void
nnk_color_cf(long color, long __result)

public static native void
nnk_color_d(long r, long g, long b, long a, long color)

public static native void
nnk_color_d(double[] r, double[] g, double[] b, double[] a, long color)

Array version of: nnk_color_d

public static native void
nnk_color_dv(long rgba_out, long color)

public static native void
nnk_color_dv(double[] rgba_out, long color)

Array version of: nnk_color_dv

public static native void
nnk_color_f(long r, long g, long b, long a, long color)

public static native void
nnk_color_f(float[] r, float[] g, float[] b, float[] a, long color)

Array version of: nnk_color_f

public static native void
nnk_color_fv(long rgba_out, long color)

public static native void
nnk_color_fv(float[] rgba_out, long color)

Array version of: nnk_color_fv

public static native void
nnk_color_hex_rgb(long output, long color)

public static native void
nnk_color_hex_rgba(long output, long color)

public static native void
nnk_color_hsv_b(long out_h, long out_s, long out_v, long color)

public static native void
nnk_color_hsv_bv(long hsv_out, long color)

public static native void
nnk_color_hsv_f(long out_h, long out_s, long out_v, long color)

public static native void
nnk_color_hsv_f(float[] out_h, float[] out_s, float[] out_v, long color)

Array version of: nnk_color_hsv_f

public static native void
nnk_color_hsv_fv(long hsv_out, long color)

public static native void
nnk_color_hsv_fv(float[] hsv_out, long color)

Array version of: nnk_color_hsv_fv

public static native void
nnk_color_hsv_i(long out_h, long out_s, long out_v, long color)

public static native void
nnk_color_hsv_i(int[] out_h, int[] out_s, int[] out_v, long color)

Array version of: nnk_color_hsv_i

public static native void
nnk_color_hsv_iv(long hsv_out, long color)

public static native void
nnk_color_hsv_iv(int[] hsv_out, long color)

Array version of: nnk_color_hsv_iv

public static native void
nnk_color_hsva_b(long h, long s, long v, long a, long color)

public static native void
nnk_color_hsva_bv(long hsva_out, long color)

public static native void
nnk_color_hsva_f(long out_h, long out_s, long out_v, long out_a, long color)

public static native void
nnk_color_hsva_f(float[] out_h, float[] out_s, float[] out_v, float[] out_a, long color)

Array version of: nnk_color_hsva_f

public static native void
nnk_color_hsva_fv(long hsva_out, long color)

public static native void
nnk_color_hsva_fv(float[] hsva_out, long color)

Array version of: nnk_color_hsva_fv

public static native void
nnk_color_hsva_i(long h, long s, long v, long a, long color)

public static native void
nnk_color_hsva_i(int[] h, int[] s, int[] v, int[] a, long color)

Array version of: nnk_color_hsva_i

public static native void
nnk_color_hsva_iv(long hsva_out, long color)

public static native void
nnk_color_hsva_iv(int[] hsva_out, long color)

Array version of: nnk_color_hsva_iv

public static native boolean
nnk_color_pick(long ctx, long color, int fmt)

Unsafe version of: color_pick

public static native void
nnk_color_picker(long ctx, long color, int fmt)

Unsafe version of: color_picker

public static native int
nnk_color_u32(long color)

public static native void
nnk_colorf_hsva_f(long out_h, long out_s, long out_v, long out_a, long in)

public static native void
nnk_colorf_hsva_f(float[] out_h, float[] out_s, float[] out_v, float[] out_a, long in)

Array version of: nnk_colorf_hsva_f

public static native void
nnk_colorf_hsva_fv(long hsva, long in)

public static native void
nnk_colorf_hsva_fv(float[] hsva, long in)

Array version of: nnk_colorf_hsva_fv

public static native int
nnk_combo(long ctx, long items, int count, int selected, int item_height, long size)

Unsafe version of: combo

public static native boolean
nnk_combo_begin_color(long ctx, long color, long size)

Unsafe version of: combo_begin_color

public static native boolean
nnk_combo_begin_image(long ctx, long img, long size)

Unsafe version of: combo_begin_image

public static native boolean
nnk_combo_begin_image_label(long ctx, long selected, long img, long size)

Unsafe version of: combo_begin_image_label

public static native boolean
nnk_combo_begin_image_text(long ctx, long selected, int len, long img, long size)

Unsafe version of: combo_begin_image_text

public static native boolean
nnk_combo_begin_label(long ctx, long selected, long size)

Unsafe version of: combo_begin_label

public static native boolean
nnk_combo_begin_symbol(long ctx, int symbol, long size)

Unsafe version of: combo_begin_symbol

public static native boolean
nnk_combo_begin_symbol_label(long ctx, long selected, int symbol, long size)

Unsafe version of: combo_begin_symbol_label

public static native boolean
nnk_combo_begin_symbol_text(long ctx, long selected, int len, int symbol, long size)

Unsafe version of: combo_begin_symbol_text

public static native boolean
nnk_combo_begin_text(long ctx, long selected, int len, long size)

Unsafe version of: combo_begin_text

public static native int
nnk_combo_callback(long ctx, long item_getter, long userdata, int selected, int count, int item_height, long size)

Unsafe version of: combo_callback

public static native void
nnk_combo_close(long ctx)

Unsafe version of: combo_close

public static native void
nnk_combo_end(long ctx)

Unsafe version of: combo_end

public static native boolean
nnk_combo_item_image_label(long ctx, long img, long text, int alignment)

Unsafe version of: combo_item_image_label

public static native boolean
nnk_combo_item_image_text(long ctx, long img, long text, int len, int alignment)

Unsafe version of: combo_item_image_text

public static native boolean
nnk_combo_item_label(long ctx, long text, int alignment)

Unsafe version of: combo_item_label

public static native boolean
nnk_combo_item_symbol_label(long ctx, int symbol, long text, int alignment)

Unsafe version of: combo_item_symbol_label

public static native boolean
nnk_combo_item_symbol_text(long ctx, int symbol, long text, int len, int alignment)

Unsafe version of: combo_item_symbol_text

public static native boolean
nnk_combo_item_text(long ctx, long text, int len, int alignment)

Unsafe version of: combo_item_text

public static native int
nnk_combo_separator(long ctx, long items_separated_by_separator, int separator, int selected, int count, int item_height, long size)

Unsafe version of: combo_separator

public static native int
nnk_combo_string(long ctx, long items_separated_by_zeros, int selected, int count, int item_height, long size)

Unsafe version of: combo_string

public static native void
nnk_combobox(long ctx, long items, int count, long selected, int item_height, long size)

Unsafe version of: combobox

public static native void
nnk_combobox(long ctx, long items, int count, int[] selected, int item_height, long size)

Array version of: nnk_combobox

public static native void
nnk_combobox_callback(long ctx, long item_getter, long userdata, long selected, int count, int item_height, long size)

Unsafe version of: combobox_callback

public static native void
nnk_combobox_callback(long ctx, long item_getter, long userdata, int[] selected, int count, int item_height, long size)

Array version of: nnk_combobox_callback

public static native void
nnk_combobox_separator(long ctx, long items_separated_by_separator, int separator, long selected, int count, int item_height, long size)

Unsafe version of: combobox_separator

public static native void
nnk_combobox_separator(long ctx, long items_separated_by_separator, int separator, int[] selected, int count, int item_height, long size)

Array version of: nnk_combobox_separator

public static native void
nnk_combobox_string(long ctx, long items_separated_by_zeros, long selected, int count, int item_height, long size)

Unsafe version of: combobox_string

public static native void
nnk_combobox_string(long ctx, long items_separated_by_zeros, int[] selected, int count, int item_height, long size)

Array version of: nnk_combobox_string

public static native boolean
nnk_contextual_begin(long ctx, int flags, long size, long trigger_bounds)

Unsafe version of: contextual_begin

public static native void
nnk_contextual_close(long ctx)

Unsafe version of: contextual_close

public static native void
nnk_contextual_end(long ctx)

Unsafe version of: contextual_end

public static native boolean
nnk_contextual_item_image_label(long ctx, long img, long text, int alignment)

Unsafe version of: contextual_item_image_label

public static native boolean
nnk_contextual_item_image_text(long ctx, long img, long text, int len, int alignment)

Unsafe version of: contextual_item_image_text

public static native boolean
nnk_contextual_item_label(long ctx, long text, int align)

Unsafe version of: contextual_item_label

public static native boolean
nnk_contextual_item_symbol_label(long ctx, int symbol, long text, int alignment)

Unsafe version of: contextual_item_symbol_label

public static native boolean
nnk_contextual_item_symbol_text(long ctx, int symbol, long text, int len, int alignment)

Unsafe version of: contextual_item_symbol_text

public static native boolean
nnk_contextual_item_text(long ctx, long text, int len, int align)

Unsafe version of: contextual_item_text

public static native int
nnk_convert(long ctx, long cmds, long vertices, long elements, long config)

Unsafe version of: convert

public static native void
nnk_draw_image(long b, long rect, long img, long color)

public static native void
nnk_draw_list_add_image(long list, long texture, long rect, long color)

public static native void
nnk_draw_list_add_text(long list, long font, long rect, long text, int len, float font_height, long color)

public static native void
nnk_draw_list_fill_circle(long list, long center, float radius, long col, int segs)

public static native void
nnk_draw_list_fill_poly_convex(long list, long points, int count, long color, int aliasing)

Unsafe version of: draw_list_fill_poly_convex

public static native void
nnk_draw_list_fill_rect(long list, long rect, long color, float rounding)

public static native void
nnk_draw_list_fill_rect_multi_color(long list, long rect, long left, long top, long right, long bottom)

public static native void
nnk_draw_list_fill_triangle(long list, long a, long b, long c, long color)

public static native void
nnk_draw_list_init(long list)

public static native void
nnk_draw_list_path_arc_to(long list, long center, float radius, float a_min, float a_max, int segments)

public static native void
nnk_draw_list_path_arc_to_fast(long list, long center, float radius, int a_min, int a_max)

public static native void
public static native void
nnk_draw_list_path_curve_to(long list, long p2, long p3, long p4, int num_segments)

public static native void
nnk_draw_list_path_fill(long list, long color)

public static native void
nnk_draw_list_path_line_to(long list, long pos)

public static native void
nnk_draw_list_path_rect_to(long list, long a, long b, float rounding)

public static native void
nnk_draw_list_path_stroke(long list, long color, int closed, float thickness)

Unsafe version of: draw_list_path_stroke

public static native void
nnk_draw_list_push_userdata(long list, long userdata)

public static native void
nnk_draw_list_setup(long canvas, long config, long cmds, long vertices, long elements, int line_aa, int shape_aa)

public static native void
nnk_draw_list_stroke_circle(long list, long center, float radius, long color, int segs, float thickness)

public static native void
nnk_draw_list_stroke_curve(long list, long p0, long cp0, long cp1, long p1, long color, int segments, float thickness)

public static native void
nnk_draw_list_stroke_line(long list, long a, long b, long color, float thickness)

public static native void
nnk_draw_list_stroke_poly_line(long list, long pnts, int cnt, long color, int closed, float thickness, int aliasing)

Unsafe version of: draw_list_stroke_poly_line

public static native void
nnk_draw_list_stroke_rect(long list, long rect, long color, float rounding, float thickness)

public static native void
nnk_draw_list_stroke_triangle(long list, long a, long b, long c, long color, float thickness)

public static native void
nnk_draw_nine_slice(long b, long rect, long slc, long color)

public static native void
nnk_draw_text(long b, long rect, long string, int length, long font, long bg, long fg)

public static native int
nnk_edit_buffer(long ctx, int flags, long edit, long filter)

Unsafe version of: edit_buffer

public static native void
nnk_edit_focus(long ctx, int flags)

Unsafe version of: edit_focus

public static native int
nnk_edit_string(long ctx, int flags, long memory, long len, int max, long filter)

Unsafe version of: edit_string

public static native int
nnk_edit_string(long ctx, int flags, long memory, int[] len, int max, long filter)

Array version of: nnk_edit_string

public static native int
nnk_edit_string_zero_terminated(long ctx, int flags, long buffer, int max, long filter)

Unsafe version of: edit_string_zero_terminated

public static native void
nnk_edit_unfocus(long ctx)

Unsafe version of: edit_unfocus

public static native void
nnk_end(long ctx)

Unsafe version of: end

public static native void
nnk_fill_arc(long b, float cx, float cy, float radius, float a_min, float a_max, long color)

public static native void
nnk_fill_circle(long b, long rect, long color)

public static native void
nnk_fill_polygon(long b, long points, int point_count, long color)

public static native void
nnk_fill_polygon(long b, float[] points, int point_count, long color)

Array version of: nnk_fill_polygon

public static native void
nnk_fill_rect(long b, long rect, float rounding, long color)

public static native void
nnk_fill_rect_multi_color(long b, long rect, long left, long top, long right, long bottom)

public static native void
nnk_fill_triangle(long b, float x0, float y0, float x1, float y1, float x2, float y2, long color)

public static native boolean
nnk_filter_ascii(long edit, int unicode)

public static native boolean
nnk_filter_binary(long edit, int unicode)

public static native boolean
nnk_filter_decimal(long edit, int unicode)

public static native boolean
nnk_filter_default(long edit, int unicode)

public static native boolean
nnk_filter_float(long edit, int unicode)

public static native boolean
nnk_filter_hex(long edit, int unicode)

public static native boolean
nnk_filter_oct(long edit, int unicode)

public static native long
nnk_font_atlas_add(long atlas, long config)

public static native long
nnk_font_atlas_add_compressed(long atlas, long memory, long size, float height, long config)

public static native long
nnk_font_atlas_add_compressed_base85(long atlas, long data, float height, long config)

public static native long
nnk_font_atlas_add_default(long atlas, float height, long config)

public static native long
nnk_font_atlas_add_from_file(long atlas, long file_path, float height, long config)

public static native long
nnk_font_atlas_add_from_memory(long atlas, long memory, long size, float height, long config)

public static native long
nnk_font_atlas_bake(long atlas, long width, long height, int fmt)

public static native long
nnk_font_atlas_bake(long atlas, int[] width, int[] height, int fmt)

Array version of: nnk_font_atlas_bake

public static native void
public static native void
public static native void
public static native void
nnk_font_atlas_end(long atlas, long tex, long tex_null)

public static native void
nnk_font_atlas_init(long atlas, long alloc)

public static native void
nnk_font_atlas_init_custom(long atlas, long persistent, long transient_)

public static native long
public static native void
nnk_font_config(float pixel_height, long __result)

public static native long
public static native long
public static native long
nnk_font_find_glyph(long font, int unicode)

public static native long
public static native void
nnk_free(long ctx)

Unsafe version of: free

public static native void
nnk_get_null_rect(long __result)

public static native boolean
nnk_group_begin(long ctx, long title, int flags)

Unsafe version of: group_begin

public static native boolean
nnk_group_begin_titled(long ctx, long name, long title, int flags)

Unsafe version of: group_begin_titled

public static native void
nnk_group_end(long ctx)

Unsafe version of: group_end

public static native void
nnk_group_get_scroll(long ctx, long id, long x_offset, long y_offset)

Unsafe version of: group_get_scroll

public static native void
nnk_group_get_scroll(long ctx, long id, int[] x_offset, int[] y_offset)

Array version of: nnk_group_get_scroll

public static native boolean
nnk_group_scrolled_begin(long ctx, long scroll, long title, int flags)

Unsafe version of: group_scrolled_begin

public static native void
nnk_group_scrolled_end(long ctx)

Unsafe version of: group_scrolled_end

public static native boolean
nnk_group_scrolled_offset_begin(long ctx, long x_offset, long y_offset, long title, int flags)

Unsafe version of: group_scrolled_offset_begin

public static native boolean
nnk_group_scrolled_offset_begin(long ctx, int[] x_offset, int[] y_offset, long title, int flags)

Array version of: nnk_group_scrolled_offset_begin

public static native void
nnk_group_set_scroll(long ctx, long id, int x_offset, int y_offset)

Unsafe version of: group_set_scroll

public static native void
nnk_handle_id(int id, long __result)

public static native void
nnk_handle_ptr(long ptr, long __result)

public static native void
nnk_hsv(int h, int s, int v, long __result)

public static native void
nnk_hsv_bv(long hsv, long __result)

public static native void
nnk_hsv_f(float h, float s, float v, long __result)

public static native void
nnk_hsv_fv(long hsv, long __result)

public static native void
nnk_hsv_fv(float[] hsv, long __result)

Array version of: nnk_hsv_fv

public static native void
nnk_hsv_iv(long hsv, long __result)

public static native void
nnk_hsv_iv(int[] hsv, long __result)

Array version of: nnk_hsv_iv

public static native void
nnk_hsva(int h, int s, int v, int a, long __result)

public static native void
nnk_hsva_bv(long hsva, long __result)

public static native void
nnk_hsva_colorf(float h, float s, float v, float a, long __result)

public static native void
nnk_hsva_colorfv(long c, long __result)

public static native void
nnk_hsva_colorfv(float[] c, long __result)

Array version of: nnk_hsva_colorfv

public static native void
nnk_hsva_f(float h, float s, float v, float a, long __result)

public static native void
nnk_hsva_fv(long hsva, long __result)

public static native void
nnk_hsva_fv(float[] hsva, long __result)

Array version of: nnk_hsva_fv

public static native void
nnk_hsva_iv(long hsva, long __result)

public static native void
nnk_hsva_iv(int[] hsva, long __result)

Array version of: nnk_hsva_iv

public static native void
nnk_image(long ctx, long img)

Unsafe version of: image

public static native void
nnk_image_color(long ctx, long img, long color)

Unsafe version of: image_color

public static native void
nnk_image_handle(long handle, long __result)

public static native void
nnk_image_id(int id, long __result)

public static native boolean
public static native void
nnk_image_ptr(long ptr, long __result)

public static native boolean
nnk_init(long ctx, long allocator, long font)

Unsafe version of: init

public static native boolean
nnk_init_custom(long ctx, long cmds, long pool, long font)

Unsafe version of: init_custom

public static native boolean
nnk_init_fixed(long ctx, long memory, long
must contain the total size of memory
size
,
long font)

Unsafe version of: init_fixed

public static native boolean
public static native void
nnk_input_begin(long ctx)

Unsafe version of: input_begin

public static native void
nnk_input_button(long ctx, int id, int x, int y, boolean down)

Unsafe version of: input_button

public static native void
nnk_input_char(long ctx, byte c)

Unsafe version of: input_char

public static native void
nnk_input_end(long ctx)

Unsafe version of: input_end

public static native void
nnk_input_glyph(long ctx, long glyph)

Unsafe version of: input_glyph

public static native boolean
nnk_input_has_mouse_click(long i, int id)

Unsafe version of: input_has_mouse_click

public static native boolean
nnk_input_has_mouse_click_down_in_rect(long i, int id, long rect, boolean down)

Unsafe version of: input_has_mouse_click_down_in_rect

public static native boolean
public static native boolean
nnk_input_has_mouse_click_in_rect(long i, int id, long rect)

Unsafe version of: input_has_mouse_click_in_rect

public static native boolean
nnk_input_is_key_down(long i, int key)

Unsafe version of: input_is_key_down

public static native boolean
nnk_input_is_key_pressed(long i, int key)

Unsafe version of: input_is_key_pressed

public static native boolean
nnk_input_is_key_released(long i, int key)

Unsafe version of: input_is_key_released

public static native boolean
nnk_input_is_mouse_click_down_in_rect(long i, int id, long b, boolean down)

Unsafe version of: input_is_mouse_click_down_in_rect

public static native boolean
nnk_input_is_mouse_click_in_rect(long i, int id, long rect)

Unsafe version of: input_is_mouse_click_in_rect

public static native boolean
nnk_input_is_mouse_down(long i, int id)

Unsafe version of: input_is_mouse_down

public static native boolean
public static native boolean
nnk_input_is_mouse_pressed(long i, int id)

Unsafe version of: input_is_mouse_pressed

public static native boolean
public static native boolean
nnk_input_is_mouse_released(long i, int id)

Unsafe version of: input_is_mouse_released

public static native void
nnk_input_key(long ctx, int key, boolean down)

Unsafe version of: input_key

public static native void
nnk_input_motion(long ctx, int x, int y)

Unsafe version of: input_motion

public static native boolean
nnk_input_mouse_clicked(long i, int id, long rect)

Unsafe version of: input_mouse_clicked

public static native void
nnk_input_scroll(long ctx, long val)

Unsafe version of: input_scroll

public static native void
nnk_input_unicode(long ctx, int unicode)

Unsafe version of: input_unicode

public static native boolean
nnk_item_is_any_active(long ctx)

Unsafe version of: item_is_any_active

public static native void
nnk_label(long ctx, long str, int align)

Unsafe version of: label

public static native void
nnk_label_colored(long ctx, long str, int align, long color)

Unsafe version of: label_colored

public static native void
nnk_label_colored_wrap(long ctx, long str, long color)

Unsafe version of: label_colored_wrap

public static native void
nnk_label_wrap(long ctx, long str)

Unsafe version of: label_wrap

public static native float
nnk_layout_ratio_from_pixel(long ctx, float pixel_width)

Unsafe version of: layout_ratio_from_pixel

public static native void
public static native void
nnk_layout_row(long ctx, int fmt, float height, int
number of widgets inside row
cols
,
long ratio)

Unsafe version of: layout_row

public static native void
nnk_layout_row(long ctx, int fmt, float height, int cols, float[] ratio)

Array version of: nnk_layout_row

public static native void
nnk_layout_row_begin(long ctx, int fmt, float row_height, int cols)

Unsafe version of: layout_row_begin

public static native void
nnk_layout_row_dynamic(long ctx, float height, int cols)

Unsafe version of: layout_row_dynamic

public static native void
nnk_layout_row_end(long ctx)

Unsafe version of: layout_row_end

public static native void
nnk_layout_row_push(long ctx, float value)

Unsafe version of: layout_row_push

public static native void
nnk_layout_row_static(long ctx, float height, int item_width, int cols)

Unsafe version of: layout_row_static

public static native void
nnk_layout_row_template_begin(long ctx, float height)

Unsafe version of: layout_row_template_begin

public static native void
public static native void
public static native void
public static native void
nnk_layout_row_template_push_variable(long ctx, float min_width)

Unsafe version of: layout_row_template_push_variable

public static native void
nnk_layout_set_min_row_height(long ctx, float height)

Unsafe version of: layout_set_min_row_height

public static native void
nnk_layout_space_begin(long ctx, int fmt, float height, int widget_count)

Unsafe version of: layout_space_begin

public static native void
nnk_layout_space_bounds(long ctx, long __result)

Unsafe version of: layout_space_bounds

public static native void
nnk_layout_space_end(long ctx)

Unsafe version of: layout_space_end

public static native void
nnk_layout_space_push(long ctx, long rect)

Unsafe version of: layout_space_push

public static native void
nnk_layout_space_rect_to_local(long ctx, long ret)

Unsafe version of: layout_space_rect_to_local

public static native void
nnk_layout_space_rect_to_screen(long ctx, long ret)

Unsafe version of: layout_space_rect_to_screen

public static native void
nnk_layout_space_to_local(long ctx, long ret)

Unsafe version of: layout_space_to_local

public static native void
nnk_layout_space_to_screen(long ctx, long ret)

Unsafe version of: layout_space_to_screen

public static native void
nnk_layout_widget_bounds(long ctx, long __result)

Unsafe version of: layout_widget_bounds

public static native boolean
nnk_list_view_begin(long ctx, long view, long title, int flags, int row_height, int row_count)

Unsafe version of: list_view_begin

public static native void
nnk_list_view_end(long view)

public static native boolean
nnk_menu_begin_image(long ctx, long text, long img, long size)

Unsafe version of: menu_begin_image

public static native boolean
nnk_menu_begin_image_label(long ctx, long text, int align, long img, long size)

Unsafe version of: menu_begin_image_label

public static native boolean
nnk_menu_begin_image_text(long ctx, long text, int len, int align, long img, long size)

Unsafe version of: menu_begin_image_text

public static native boolean
nnk_menu_begin_label(long ctx, long text, int align, long size)

Unsafe version of: menu_begin_label

public static native boolean
nnk_menu_begin_symbol(long ctx, long text, int symbol, long size)

Unsafe version of: menu_begin_symbol

public static native boolean
nnk_menu_begin_symbol_label(long ctx, long text, int align, int symbol, long size)

Unsafe version of: menu_begin_symbol_label

public static native boolean
nnk_menu_begin_symbol_text(long ctx, long text, int len, int align, int symbol, long size)

Unsafe version of: menu_begin_symbol_text

public static native boolean
nnk_menu_begin_text(long ctx, long text, int len, int align, long size)

Unsafe version of: menu_begin_text

public static native void
nnk_menu_close(long ctx)

Unsafe version of: menu_close

public static native void
nnk_menu_end(long ctx)

Unsafe version of: menu_end

public static native boolean
nnk_menu_item_image_label(long ctx, long img, long text, int alignment)

Unsafe version of: menu_item_image_label

public static native boolean
nnk_menu_item_image_text(long ctx, long img, long text, int len, int alignment)

Unsafe version of: menu_item_image_text

public static native boolean
nnk_menu_item_label(long ctx, long text, int alignment)

Unsafe version of: menu_item_label

public static native boolean
nnk_menu_item_symbol_label(long ctx, int symbol, long text, int alignment)

Unsafe version of: menu_item_symbol_label

public static native boolean
nnk_menu_item_symbol_text(long ctx, int symbol, long text, int len, int alignment)

Unsafe version of: menu_item_symbol_text

public static native boolean
nnk_menu_item_text(long ctx, long text, int len, int align)

Unsafe version of: menu_item_text

public static native void
nnk_menubar_begin(long ctx)

Unsafe version of: menubar_begin

public static native void
nnk_menubar_end(long ctx)

Unsafe version of: menubar_end

public static native int
nnk_murmur_hash(long key, int len, int seed)

public static native void
nnk_nine_slice_handle(long handle, short l, short t, short r, short b, long __result)

public static native void
nnk_nine_slice_id(int id, short l, short t, short r, short b, long __result)

public static native int
public static native void
nnk_nine_slice_ptr(long ptr, short l, short t, short r, short b, long __result)

public static native boolean
nnk_option_label(long ctx, long str, boolean active)

Unsafe version of: option_label

public static native boolean
nnk_option_text(long ctx, long str, int len, boolean active)

Unsafe version of: option_text

public static native void
nnk_plot(long ctx, int type, long values, int count, int offset)

Unsafe version of: plot

public static native void
nnk_plot(long ctx, int type, float[] values, int count, int offset)

Array version of: nnk_plot

public static native void
nnk_plot_function(long ctx, int type, long userdata, long value_getter, int count, int offset)

Unsafe version of: plot_function

public static native boolean
nnk_popup_begin(long ctx, int type, long title, int flags, long rect)

Unsafe version of: popup_begin

public static native void
nnk_popup_close(long ctx)

Unsafe version of: popup_close

public static native void
nnk_popup_end(long ctx)

Unsafe version of: popup_end

public static native void
nnk_popup_get_scroll(long ctx, long offset_x, long offset_y)

Unsafe version of: popup_get_scroll

public static native void
nnk_popup_get_scroll(long ctx, int[] offset_x, int[] offset_y)

Array version of: nnk_popup_get_scroll

public static native void
nnk_popup_set_scroll(long ctx, int offset_x, int offset_y)

Unsafe version of: popup_set_scroll

public static native long
nnk_prog(long ctx, long cur, long max, boolean modifyable)

Unsafe version of: prog

public static native boolean
nnk_progress(long ctx, long cur, long max, boolean modifyable)

Unsafe version of: progress

public static native void
nnk_property_double(long ctx, long name, double min, long val, double max, double step, float inc_per_pixel)

Unsafe version of: property_double

public static native void
nnk_property_double(long ctx, long name, double min, double[] val, double max, double step, float inc_per_pixel)

Array version of: nnk_property_double

public static native void
nnk_property_float(long ctx, long name, float min, long val, float max, float step, float inc_per_pixel)

Unsafe version of: property_float

public static native void
nnk_property_float(long ctx, long name, float min, float[] val, float max, float step, float inc_per_pixel)

Array version of: nnk_property_float

public static native void
nnk_property_int(long ctx, long name, int min, long val, int max, int step, float inc_per_pixel)

Unsafe version of: property_int

public static native void
nnk_property_int(long ctx, long name, int min, int[] val, int max, int step, float inc_per_pixel)

Array version of: nnk_property_int

public static native double
nnk_propertyd(long ctx, long name, double min, double val, double max, double step, float inc_per_pixel)

Unsafe version of: propertyd

public static native float
nnk_propertyf(long ctx, long name, float min, float val, float max, float step, float inc_per_pixel)

Unsafe version of: propertyf

public static native int
nnk_propertyi(long ctx, long name, int min, int val, int max, int step, float inc_per_pixel)

Unsafe version of: propertyi

public static native void
nnk_push_custom(long b, long rect, long callback, long usr)

public static native void
nnk_push_scissor(long b, long rect)

public static native boolean
nnk_radio_label(long ctx, long str, long active)

Unsafe version of: radio_label

public static native boolean
nnk_radio_text(long ctx, long str, int len, long active)

Unsafe version of: radio_text

public static native void
nnk_rect(float x, float y, float w, float h, long __result)

public static native void
nnk_rect_pos(long r, long __result)

public static native void
nnk_rect_size(long r, long __result)

public static native void
nnk_recta(long pos, long size, long __result)

public static native void
nnk_recti(int x, int y, int w, int h, long __result)

public static native void
nnk_rectiv(long xywh, long __result)

public static native void
nnk_rectiv(int[] xywh, long __result)

Array version of: nnk_rectiv

public static native void
nnk_rectv(long xywh, long __result)

public static native void
nnk_rectv(float[] xywh, long __result)

Array version of: nnk_rectv

public static native void
nnk_rgb(int r, int g, int b, long __result)

public static native void
nnk_rgb_bv(long rgb, long __result)

public static native void
nnk_rgb_cf(long c, long __result)

public static native void
nnk_rgb_f(float r, float g, float b, long __result)

public static native void
nnk_rgb_fv(long rgb, long __result)

public static native void
nnk_rgb_fv(float[] rgb, long __result)

Array version of: nnk_rgb_fv

public static native void
nnk_rgb_hex(long rgb, long __result)

public static native void
nnk_rgb_iv(long rgb, long __result)

public static native void
nnk_rgb_iv(int[] rgb, long __result)

Array version of: nnk_rgb_iv

public static native void
nnk_rgba(int r, int g, int b, int a, long __result)

public static native void
nnk_rgba_bv(long rgba, long __result)

public static native void
nnk_rgba_cf(long c, long __result)

public static native void
nnk_rgba_f(float r, float g, float b, float a, long __result)

public static native void
nnk_rgba_fv(long rgba, long __result)

public static native void
nnk_rgba_fv(float[] rgba, long __result)

Array version of: nnk_rgba_fv

public static native void
nnk_rgba_hex(long rgba, long __result)

public static native void
nnk_rgba_iv(long rgba, long __result)

public static native void
nnk_rgba_iv(int[] rgba, long __result)

Array version of: nnk_rgba_iv

public static native void
nnk_rgba_u32(int in, long __result)

public static native boolean
nnk_select_image_label(long ctx, long img, long str, int align, boolean value)

Unsafe version of: select_image_label

public static native boolean
nnk_select_image_text(long ctx, long img, long str, int len, int align, boolean value)

Unsafe version of: select_image_text

public static native boolean
nnk_select_label(long ctx, long str, int align, boolean value)

Unsafe version of: select_label

public static native boolean
nnk_select_symbol_label(long ctx, int symbol, long str, int align, boolean value)

Unsafe version of: select_symbol_label

public static native boolean
nnk_select_symbol_text(long ctx, int symbol, long str, int len, int align, boolean value)

Unsafe version of: select_symbol_text

public static native boolean
nnk_select_text(long ctx, long str, int len, int align, boolean value)

Unsafe version of: select_text

public static native boolean
nnk_selectable_image_label(long ctx, long img, long str, int align, long value)

Unsafe version of: selectable_image_label

public static native boolean
nnk_selectable_image_text(long ctx, long img, long str, int len, int align, long value)

Unsafe version of: selectable_image_text

public static native boolean
nnk_selectable_label(long ctx, long str, int align, long value)

Unsafe version of: selectable_label

public static native boolean
nnk_selectable_symbol_label(long ctx, int symbol, long str, int align, long value)

Unsafe version of: selectable_symbol_label

public static native boolean
nnk_selectable_symbol_text(long ctx, int symbol, long str, int len, int align, long value)

Unsafe version of: selectable_symbol_text

public static native boolean
nnk_selectable_text(long ctx, long str, int len, int align, long value)

Unsafe version of: selectable_text

public static native void
nnk_set_user_data(long ctx, long handle)

Unsafe version of: set_user_data

public static native float
nnk_slide_float(long ctx, float min, float val, float max, float step)

Unsafe version of: slide_float

public static native int
nnk_slide_int(long ctx, int min, int val, int max, int step)

Unsafe version of: slide_int

public static native boolean
nnk_slider_float(long ctx, float min, long val, float max, float step)

Unsafe version of: slider_float

public static native boolean
nnk_slider_float(long ctx, float min, float[] val, float max, float step)

Array version of: nnk_slider_float

public static native boolean
nnk_slider_int(long ctx, int min, long val, int max, int step)

Unsafe version of: slider_int

public static native boolean
nnk_slider_int(long ctx, int min, int[] val, int max, int step)

Array version of: nnk_slider_int

public static native void
nnk_spacer(long ctx)

Unsafe version of: spacer

public static native void
nnk_spacing(long ctx, int cols)

Unsafe version of: spacing

public static native int
nnk_str_append_str_char(long s, long str)

public static native int
nnk_str_append_str_runes(long s, long runes)

public static native int
nnk_str_append_str_runes(long s, int[] runes)

Array version of: nnk_str_append_str_runes

public static native int
nnk_str_append_str_utf8(long s, long str)

public static native int
nnk_str_append_text_char(long s, long str, int len)

public static native int
nnk_str_append_text_runes(long s, long runes, int len)

public static native int
nnk_str_append_text_runes(long s, int[] runes, int len)

Array version of: nnk_str_append_text_runes

public static native int
nnk_str_append_text_utf8(long s, long str, int len)

public static native long
nnk_str_at_char(long s, int pos)

public static native long
nnk_str_at_char_const(long s, int pos)

public static native long
nnk_str_at_const(long s, int pos, long unicode, long len)

public static native long
nnk_str_at_const(long s, int pos, int[] unicode, long len)

Array version of: nnk_str_at_const

public static native long
nnk_str_at_rune(long s, int pos, long unicode, long len)

public static native long
nnk_str_at_rune(long s, int pos, int[] unicode, long len)

Array version of: nnk_str_at_rune

public static native void
nnk_str_clear(long str)

public static native void
nnk_str_delete_chars(long s, int pos, int len)

public static native void
nnk_str_delete_runes(long s, int pos, int len)

public static native void
nnk_str_free(long str)

public static native long
nnk_str_get(long s)

public static native long
public static native void
nnk_str_init(long str, long allocator, long size)

public static native void
nnk_str_init_fixed(long str, long memory, long size)

public static native int
nnk_str_insert_at_char(long s, int pos, long str, int len)

public static native int
nnk_str_insert_at_rune(long s, int pos, long str, int len)

public static native int
nnk_str_insert_str_char(long s, int pos, long str)

public static native int
nnk_str_insert_str_runes(long s, int pos, long runes)

public static native int
nnk_str_insert_str_runes(long s, int pos, int[] runes)

Array version of: nnk_str_insert_str_runes

public static native int
nnk_str_insert_str_utf8(long s, int pos, long str)

public static native int
nnk_str_insert_text_char(long s, int pos, long str, int len)

public static native int
nnk_str_insert_text_runes(long s, int pos, long runes, int len)

public static native int
nnk_str_insert_text_runes(long s, int pos, int[] runes, int len)

Array version of: nnk_str_insert_text_runes

public static native int
nnk_str_insert_text_utf8(long s, int pos, long str, int len)

public static native int
nnk_str_len(long s)

public static native int
public static native void
nnk_str_remove_chars(long s, int len)

public static native void
nnk_str_remove_runes(long str, int len)

public static native int
nnk_str_rune_at(long s, int pos)

public static native boolean
nnk_strfilter(long str, long regexp)

Unsafe version of: strfilter

public static native int
nnk_stricmp(long s1, long s2)

public static native int
nnk_stricmpn(long s1, long s2, int n)

public static native int
nnk_strlen(long str)

public static native boolean
nnk_strmatch_fuzzy_string(long str, long pattern, long out_score)

Unsafe version of: strmatch_fuzzy_string

public static native boolean
nnk_strmatch_fuzzy_string(long str, long pattern, int[] out_score)

Array version of: nnk_strmatch_fuzzy_string

public static native int
nnk_strmatch_fuzzy_text(long txt, int txt_len, long pattern, long out_score)

public static native int
nnk_strmatch_fuzzy_text(long txt, int txt_len, long pattern, int[] out_score)

Array version of: nnk_strmatch_fuzzy_text

public static native void
nnk_stroke_arc(long b, float cx, float cy, float radius, float a_min, float a_max, float line_thickness, long color)

public static native void
nnk_stroke_circle(long b, long rect, float line_thickness, long color)

public static native void
nnk_stroke_curve(long b, float ax, float ay, float ctrl0x, float ctrl0y, float ctrl1x, float ctrl1y, float bx, float by, float line_thickness, long color)

public static native void
nnk_stroke_line(long b, float x0, float y0, float x1, float y1, float line_thickness, long color)

public static native void
nnk_stroke_polygon(long b, long points, int point_count, float line_thickness, long color)

public static native void
nnk_stroke_polygon(long b, float[] points, int point_count, float line_thickness, long color)

Array version of: nnk_stroke_polygon

public static native void
nnk_stroke_polyline(long b, long points, int point_count, float line_thickness, long col)

public static native void
nnk_stroke_polyline(long b, float[] points, int point_count, float line_thickness, long col)

Array version of: nnk_stroke_polyline

public static native void
nnk_stroke_rect(long b, long rect, float rounding, float line_thickness, long color)

public static native void
nnk_stroke_triangle(long b, float x0, float y0, float x1, float y1, float x2, float y2, float line_thichness, long color)

public static native double
nnk_strtod(long str, long endptr)

public static native float
nnk_strtof(long str, long endptr)

public static native int
nnk_strtoi(long str, long endptr)

public static native void
nnk_style_default(long ctx)

Unsafe version of: style_default

public static native void
nnk_style_from_table(long ctx, long table)

Unsafe version of: style_from_table

public static native long
public static native void
nnk_style_hide_cursor(long ctx)

Unsafe version of: style_hide_cursor

public static native void
nnk_style_item_color(long color, long __result)

public static native void
nnk_style_item_hide(long __result)

public static native void
nnk_style_item_image(long img, long __result)

public static native void
nnk_style_item_nine_slice(long slice, long __result)

public static native void
nnk_style_load_all_cursors(long ctx, long cursors)

Unsafe version of: style_load_all_cursors

public static native void
nnk_style_load_cursor(long ctx, int style, long cursor)

Unsafe version of: style_load_cursor

public static native boolean
nnk_style_pop_color(long ctx)

Unsafe version of: style_pop_color

public static native boolean
nnk_style_pop_flags(long ctx)

Unsafe version of: style_pop_flags

public static native boolean
nnk_style_pop_float(long ctx)

Unsafe version of: style_pop_float

public static native boolean
nnk_style_pop_font(long ctx)

Unsafe version of: style_pop_font

public static native boolean
nnk_style_pop_style_item(long ctx)

Unsafe version of: style_pop_style_item

public static native boolean
nnk_style_pop_vec2(long ctx)

Unsafe version of: style_pop_vec2

public static native boolean
nnk_style_push_color(long ctx, long address, long value)

Unsafe version of: style_push_color

public static native boolean
nnk_style_push_flags(long ctx, long address, int value)

Unsafe version of: style_push_flags

public static native boolean
nnk_style_push_flags(long ctx, int[] address, int value)

Array version of: nnk_style_push_flags

public static native boolean
nnk_style_push_float(long ctx, long address, float value)

Unsafe version of: style_push_float

public static native boolean
nnk_style_push_float(long ctx, float[] address, float value)

Array version of: nnk_style_push_float

public static native boolean
nnk_style_push_font(long ctx, long font)

Unsafe version of: style_push_font

public static native boolean
nnk_style_push_style_item(long ctx, long address, long value)

Unsafe version of: style_push_style_item

public static native boolean
nnk_style_push_vec2(long ctx, long address, long value)

Unsafe version of: style_push_vec2

public static native boolean
nnk_style_set_cursor(long ctx, int style)

Unsafe version of: style_set_cursor

public static native void
nnk_style_set_font(long ctx, long font)

Unsafe version of: style_set_font

public static native void
nnk_style_show_cursor(long ctx)

Unsafe version of: style_show_cursor

public static native void
nnk_sub9slice_handle(long handle, short w, short h, long sub_region, short l, short t, short r, short b, long __result)

public static native void
nnk_sub9slice_id(int id, short w, short h, long sub_region, short l, short t, short r, short b, long __result)

public static native void
nnk_sub9slice_ptr(long ptr, short w, short h, long sub_region, short l, short t, short r, short b, long __result)

public static native void
nnk_subimage_handle(long handle, short w, short h, long sub_region, long __result)

public static native void
nnk_subimage_id(int id, short w, short h, long sub_region, long __result)

public static native void
nnk_subimage_ptr(long ptr, short w, short h, long sub_region, long __result)

public static native void
nnk_text(long ctx, long str, int len, int alignment)

Unsafe version of: text

public static native void
nnk_text_colored(long ctx, long str, int len, int alignment, long color)

Unsafe version of: text_colored

public static native void
nnk_text_wrap(long ctx, long str, int len)

Unsafe version of: text_wrap

public static native void
nnk_text_wrap_colored(long ctx, long str, int len, long color)

Unsafe version of: text_wrap_colored

public static native boolean
nnk_textedit_cut(long box)

public static native void
nnk_textedit_delete(long box, int where, int len)

public static native void
public static native void
public static native void
nnk_textedit_init(long box, long allocator, long size)

public static native void
nnk_textedit_init_fixed(long box, long memory, long size)

public static native boolean
nnk_textedit_paste(long box, long ctext, int len)

public static native void
public static native void
public static native void
nnk_textedit_text(long box, long text, int total_len)

public static native void
public static native void
nnk_tooltip(long ctx, long text)

Unsafe version of: tooltip

public static native boolean
nnk_tooltip_begin(long ctx, float width)

Unsafe version of: tooltip_begin

public static native void
nnk_tooltip_end(long ctx)

Unsafe version of: tooltip_end

public static native boolean
nnk_tree_element_image_push_hashed(long ctx, int type, long img, long title, int initial_state, long selected, long hash, int len, int seed)

Unsafe version of: tree_element_image_push_hashed

public static native void
nnk_tree_element_pop(long ctx)

Unsafe version of: tree_element_pop

public static native boolean
nnk_tree_element_push_hashed(long ctx, int type, long title, int initial_state, long selected, long hash, int len, int seed)

Unsafe version of: tree_element_push_hashed

public static native boolean
nnk_tree_image_push_hashed(long ctx, int type, long img, long title, int initial_state, long hash, int
size of passed memory block or string in hash
len
,
int seed)

Unsafe version of: tree_image_push_hashed

public static native void
nnk_tree_pop(long ctx)

Unsafe version of: tree_pop

public static native boolean
nnk_tree_push_hashed(long ctx, int type, long title, int initial_state, long hash, int
size of passed memory block or string in hash
len
,
int seed)

Unsafe version of: tree_push_hashed

public static native boolean
nnk_tree_state_image_push(long ctx, int type, long image, long title, long state)

Unsafe version of: tree_state_image_push

public static native boolean
nnk_tree_state_image_push(long ctx, int type, long image, long title, int[] state)

Array version of: nnk_tree_state_image_push

public static native void
nnk_tree_state_pop(long ctx)

Unsafe version of: tree_state_pop

public static native boolean
nnk_tree_state_push(long ctx, int type, long title, long state)

Unsafe version of: tree_state_push

public static native boolean
nnk_tree_state_push(long ctx, int type, long title, int[] state)

Array version of: nnk_tree_state_push

public static native void
nnk_triangle_from_direction(long result, long r, float pad_x, float pad_y, int direction)

Unsafe version of: triangle_from_direction

public static native long
nnk_utf_at(long buffer, int length, int index, long unicode, long len)

public static native long
nnk_utf_at(long buffer, int length, int index, int[] unicode, long len)

Array version of: nnk_utf_at

public static native int
nnk_utf_decode(long c, long u, int clen)

public static native int
nnk_utf_decode(long c, int[] u, int clen)

Array version of: nnk_utf_decode

public static native int
nnk_utf_encode(int u, long c, int clen)

public static native int
nnk_utf_len(long str, int byte_len)

public static native void
nnk_vec2(float x, float y, long __result)

public static native void
nnk_vec2i(int x, int y, long __result)

public static native void
nnk_vec2iv(long xy, long __result)

public static native void
nnk_vec2iv(int[] xy, long __result)

Array version of: nnk_vec2iv

public static native void
nnk_vec2v(long xy, long __result)

public static native void
nnk_vec2v(float[] xy, long __result)

Array version of: nnk_vec2v

public static native int
nnk_widget(long bounds, long ctx)

Unsafe version of: widget

public static native void
nnk_widget_bounds(long ctx, long __result)

Unsafe version of: widget_bounds

public static native int
nnk_widget_fitting(long bounds, long ctx, long item_padding)

Unsafe version of: widget_fitting

public static native boolean
nnk_widget_has_mouse_click_down(long ctx, int btn, boolean down)

Unsafe version of: widget_has_mouse_click_down

public static native float
nnk_widget_height(long ctx)

Unsafe version of: widget_height

public static native boolean
nnk_widget_is_hovered(long ctx)

Unsafe version of: widget_is_hovered

public static native boolean
nnk_widget_is_mouse_clicked(long ctx, int btn)

Unsafe version of: widget_is_mouse_clicked

public static native void
nnk_widget_position(long ctx, long __result)

Unsafe version of: widget_position

public static native void
nnk_widget_size(long ctx, long __result)

Unsafe version of: widget_size

public static native float
nnk_widget_width(long ctx)

Unsafe version of: widget_width

public static native void
nnk_window_close(long ctx, long name)

Unsafe version of: window_close

public static native void
nnk_window_collapse(long ctx, long name, int c)

Unsafe version of: window_collapse

public static native void
nnk_window_collapse_if(long ctx, long name, int c, boolean cond)

Unsafe version of: window_collapse_if

public static native long
nnk_window_find(long ctx, long name)

Unsafe version of: window_find

public static native void
nnk_window_get_bounds(long ctx, long __result)

Unsafe version of: window_get_bounds

public static native long
nnk_window_get_canvas(long ctx)

Unsafe version of: window_get_canvas

public static native void
nnk_window_get_content_region(long ctx, long __result)

Unsafe version of: window_get_content_region

public static native void
nnk_window_get_content_region_max(long ctx, long __result)

Unsafe version of: window_get_content_region_max

public static native void
nnk_window_get_content_region_min(long ctx, long __result)

Unsafe version of: window_get_content_region_min

public static native void
nnk_window_get_content_region_size(long ctx, long __result)

Unsafe version of: window_get_content_region_size

public static native float
nnk_window_get_height(long ctx)

Unsafe version of: window_get_height

public static native long
nnk_window_get_panel(long ctx)

Unsafe version of: window_get_panel

public static native void
nnk_window_get_position(long ctx, long __result)

Unsafe version of: window_get_position

public static native void
nnk_window_get_scroll(long ctx, long offset_x, long offset_y)

Unsafe version of: window_get_scroll

public static native void
nnk_window_get_scroll(long ctx, int[] offset_x, int[] offset_y)

Array version of: nnk_window_get_scroll

public static native void
nnk_window_get_size(long ctx, long __result)

Unsafe version of: window_get_size

public static native float
nnk_window_get_width(long ctx)

Unsafe version of: window_get_width

public static native boolean
nnk_window_has_focus(long ctx)

Unsafe version of: window_has_focus

public static native boolean
nnk_window_is_active(long ctx, long name)

Unsafe version of: window_is_active

public static native boolean
public static native boolean
nnk_window_is_closed(long ctx, long name)

Unsafe version of: window_is_closed

public static native boolean
nnk_window_is_collapsed(long ctx, long name)

Unsafe version of: window_is_collapsed

public static native boolean
nnk_window_is_hidden(long ctx, long name)

Unsafe version of: window_is_hidden

public static native boolean
nnk_window_is_hovered(long ctx)

Unsafe version of: window_is_hovered

public static native void
nnk_window_set_bounds(long ctx, long name, long bounds)

Unsafe version of: window_set_bounds

public static native void
nnk_window_set_focus(long ctx, long name)

Unsafe version of: window_set_focus

public static native void
nnk_window_set_position(long ctx, long name, long position)

Unsafe version of: window_set_position

public static native void
nnk_window_set_scroll(long ctx, int offset_x, int offset_y)

Unsafe version of: window_set_scroll

public static native void
nnk_window_set_size(long ctx, long name, long size)

Unsafe version of: window_set_size

public static native void
nnk_window_show(long ctx, long name, int s)

Unsafe version of: window_show

public static native void
nnk_window_show_if(long ctx, long name, int s, boolean cond)

Unsafe version of: window_show_if

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait