-
Notifications
You must be signed in to change notification settings - Fork 4
Home
| Name | Description |
|---|---|
nk_console |
|
nk_console_message |
|
nk_console_key_data |
Data specifically used for the Key widget. |
nk_console_row_data |
|
nk_console_top_data |
|
nk_console_file_data |
Custom data for the file widget. |
nk_console_knob_data |
Data for Property and Slider widgets. |
nk_console_tree_data |
|
nk_console_color_data |
|
nk_console_file_entry |
A single file or directory entry stored for the file widget's list view. |
nk_console_image_data |
|
nk_console_input_data |
Data specifically used for the input widget. |
nk_console_radio_data |
Data for the radio button. |
nk_console_button_data |
|
nk_console_checkbox_data |
|
nk_console_combobox_data |
Data for Combobox widgets. |
nk_console_event_handler |
|
nk_console_progress_data |
|
nk_console_property_data |
Data for Property and Slider widgets. |
nk_console_textedit_data |
|
nk_console_list_view_data |
Data associated with a List View Widget. |
nk_console_rule_horizontal_data |
Data for the horizontal rule widget. |
nk_console_axis_channel |
Time accumulator since the last repeated up/down move. State for one analog axis navigation channel (up/down or left/right). |
NK_CONSOLE_TEXTEDIT_MASKED_LENGTH()How long masked text should be when displayed.
enum nk_console_event_type| Value | Description |
|---|---|
NK_CONSOLE_EVENT_DESTROYED |
|
NK_CONSOLE_EVENT_CHANGED |
Triggered when the widget is destroyed. |
NK_CONSOLE_EVENT_CLICKED |
Triggered when the value for the widget is changed. |
NK_CONSOLE_EVENT_POST_RENDER_ONCE |
Triggered when the widget is clicked. |
NK_CONSOLE_EVENT_PRE_PARENT_RENDER |
Triggered after all the widgets have rendered, and the event is removed. |
NK_CONSOLE_EVENT_FOCUS |
Triggered before the parent widget is rendered. |
NK_CONSOLE_EVENT_BLUR |
Triggered when the widget gains focus/becomes the active widget. |
NK_CONSOLE_EVENT_BACK |
Triggered when the widget loses focus/is no longer the active widget. |
The type of events that can be triggered.
See also: nk_console_add_event()
enum nk_console_widget_type| Value | Description |
|---|---|
NK_CONSOLE_UNKNOWN |
|
NK_CONSOLE_PARENT |
|
NK_CONSOLE_LABEL |
|
NK_CONSOLE_BUTTON |
|
NK_CONSOLE_CHECKBOX |
|
NK_CONSOLE_PROGRESS |
|
NK_CONSOLE_COMBOBOX |
|
NK_CONSOLE_PROPERTY_INT |
|
NK_CONSOLE_PROPERTY_FLOAT |
|
NK_CONSOLE_SLIDER_INT |
|
NK_CONSOLE_SLIDER_FLOAT |
|
NK_CONSOLE_ROW |
|
NK_CONSOLE_TEXTEDIT |
|
NK_CONSOLE_TEXTEDIT_TEXT |
|
NK_CONSOLE_FILE |
|
NK_CONSOLE_IMAGE |
|
NK_CONSOLE_SPACING |
|
NK_CONSOLE_COLOR |
|
NK_CONSOLE_INPUT |
|
NK_CONSOLE_INPUT_ACTIVE |
|
NK_CONSOLE_KEY |
|
NK_CONSOLE_KEY_ACTIVE |
|
NK_CONSOLE_RADIO |
|
NK_CONSOLE_KNOB_INT |
|
NK_CONSOLE_KNOB_FLOAT |
|
NK_CONSOLE_RULE_HORIZONTAL |
|
NK_CONSOLE_TREE |
|
NK_CONSOLE_LIST_VIEW |
using nk_console_event = void(*Event handler for a console widget.
-
widgetThe widget that was acted upon. -
user_dataCustom user data that is associated with the event.
See also: nk_console_add_event()
See also: nk_console_add_event_handler()
See also: nk_console_trigger_event()
using nk_console_event_handler = struct nk_console_event_handlerusing nk_console_render_event = struct nk_rect(*A callback to render the given widget.
-
widgetThe widget that is being rendered.
The bounds of the widget.
using nk_console_message = struct nk_console_messageusing nk_console = struct nk_consoleusing nk_console_top_data = struct nk_console_top_datausing nk_console_key_data = struct nk_console_key_dataData specifically used for the Key widget.
Stored value convention for out_key: 0 = NK_KEY_NONE (nothing captured) 1 .. NK_KEY_MAX = nk_keys special key (arrows, Enter, Backspace, etc.) NK_KEY_MAX = Unicode codepoint of a typed character
See also: nk_console_key()
using nk_console_row_data = struct nk_console_row_datausing nk_console_file_entry = struct nk_console_file_entryA single file or directory entry stored for the file widget's list view.
using nk_console_file_data = struct nk_console_file_dataCustom data for the file widget.
using nk_console_knob_data = struct nk_console_knob_dataData for Property and Slider widgets.
using nk_console_tree_data = struct nk_console_tree_datausing nk_console_color_data = struct nk_console_color_datausing nk_console_image_data = struct nk_console_image_datausing nk_console_input_data = struct nk_console_input_dataData specifically used for the input widget.
See also: nk_console_input()
using nk_console_radio_data = struct nk_console_radio_dataData for the radio button.
See also: nk_console_radio()
using nk_console_button_data = struct nk_console_button_datausing nk_console_checkbox_data = struct nk_console_checkbox_datausing nk_console_combobox_data = struct nk_console_combobox_dataData for Combobox widgets.
using nk_console_progress_data = struct nk_console_progress_datausing nk_console_property_data = struct nk_console_property_dataData for Property and Slider widgets.
using nk_console_textedit_data = struct nk_console_textedit_datausing nk_console_list_view_get_label = const char *(*Callback that will be used to retrieve the label of a given list view item.
-
list_viewThe list view widget. -
indexWhich row to get the label for.
The label for the item.
See also: nk_console_list_view_data
using nk_console_list_view_data = struct nk_console_list_view_dataData associated with a List View Widget.
using nk_console_rule_horizontal_data = struct nk_console_rule_horizontal_dataData for the horizontal rule widget.
See also: nk_console_rule_horizontal()
NK_API nk_console * nk_console_init(struct nk_context * context)NK_API void nk_console_free(nk_console * console)NK_API void nk_console_render(nk_console * console)NK_API struct nk_rect nk_console_render_window(nk_console * console, const char * title, struct nk_rect bounds, nk_uint flags)NK_API nk_console * nk_console_get_top(nk_console * widget)NK_API int nk_console_get_widget_index(nk_console * widget)NK_API void nk_console_check_tooltip(nk_console * console)NK_API void nk_console_check_up_down(nk_console * widget)NK_API nk_bool nk_console_is_active_widget(nk_console * widget)NK_API nk_console * nk_console_active_parent(nk_console * console)NK_API void nk_console_set_active_parent(nk_console * new_parent)NK_API void nk_console_set_active_widget(nk_console * widget)NK_API nk_console * nk_console_get_active_widget(nk_console * widget)NK_API void * nk_console_malloc(nk_handle unused, void * old, nk_size size)NK_API void nk_console_mfree(nk_handle unused, void * ptr)NK_API nk_bool nk_console_button_pushed(nk_console * console, int button)NK_API nk_bool nk_console_button_down(nk_console * console, int button)NK_API void nk_console_set_gamepads(nk_console * console, struct nk_gamepads * gamepads)NK_API struct nk_gamepads * nk_console_get_gamepads(nk_console * console)NK_API void nk_console_set_gamepad_num(nk_console * console, int num)NK_API int nk_console_get_gamepad_num(nk_console * console)NK_API void nk_console_set_tooltip(nk_console * widget, const char * tooltip)NK_API void nk_console_set_label(nk_console * widget, const char * label, int label_length)NK_API const char * nk_console_get_label(nk_console * widget)NK_API void nk_console_free_children(nk_console * console)NK_API void nk_console_layout_widget(nk_console * widget)NK_API void nk_console_add_child(nk_console * parent, nk_console * child)NK_API void nk_console_set_height(nk_console * widget, int height)NK_API int nk_console_height(nk_console * widget)NK_API nk_bool nk_console_selectable(nk_console * widget)NK_API nk_bool nk_console_trigger_event(nk_console * widget, nk_console_event_type type)NK_API void nk_console_add_event(nk_console * widget, nk_console_event_type type, nk_console_event callback)NK_API void nk_console_add_event_handler(nk_console * widget, nk_console_event_type type, nk_console_event callback, void * user_data, nk_console_event destructor)NK_API void nk_console_event_handler_destroy(nk_console * widget, nk_console_event_handler * handler)NK_API void * nk_console_user_data(nk_console * console)Get the user data for the top-level console.
-
consoleAny widget within the console family.
The custom user data.
NK_API void nk_console_set_user_data(nk_console * console, void * user_data)Set the user data for the top-level console.
-
consoleAny widget within the console family. -
user_dataThe custom user data to set.
NK_API void nk_console_navigate_back(nk_console * leaving_parent)Navigate back from the given widget to its parent, triggering NK_CONSOLE_EVENT_BACK.
The event is triggered after the new parent is selected.
-
leaving_parentThe active parent widget being navigated away from.
See also: NK_CONSOLE_EVENT_BACK
See also: nk_console_button_back()
NK_API nk_console * nk_console_find_by_path(nk_console * console, const char * path)Get a widget by a slash-separated path of labels, starting from the top-level console.
Example: nk_console_find_by_path(console, "Widgets/Labels") A leading slash is optional: "/Widgets" and "Widgets" are equivalent.
-
consoleAny widget within the console family. -
pathSlash-separated widget labels (e.g. "Widgets/Labels").
The matching widget, or NULL if not found.
NK_API nk_bool nk_console_navigate_to_path(nk_console * console, const char * path)Navigate to a widget by a slash-separated path of labels.
If the target widget has children, it becomes the active parent. If it has no children, its parent becomes the active parent and the widget is selected as the active widget.
Example: nk_console_navigate_to_path(console, "Widgets/Labels")
-
consoleAny widget within the console family. -
pathSlash-separated widget labels (e.g. "Widgets/Labels").
nk_true if navigation succeeded, nk_false if the path was not found.
NK_API nk_console * nk_console_key(nk_console * parent, const char * label, nk_rune * out_key)Create a new Key widget to capture a keyboard key or typed character.
-
parentThe parent console. -
labelThe label to display. -
out_keyWhere to store the captured key.
The new key widget.
NK_API struct nk_rect nk_console_key_render(nk_console * widget)NK_API const char * nk_console_key_name(nk_rune key)Retrieves the name of the of the given Nuklear rune.
NK_API void nk_console_key_set_default(nk_console * widget, nk_rune key)Set the default key value assigned to out_key when the capture prompt times out. Defaults to NK_KEY_NONE.
NK_API nk_rune nk_console_key_get_default(nk_console * widget)Get the default key value assigned to out_key when the capture prompt times out.
NK_API nk_console * nk_console_row_begin(nk_console * parent)Begin a new row in the console.
-
parentThe parent of which to create the new row.
The new row.
NK_API void nk_console_row_end(nk_console * row)End the current row in the console.
-
rowThe row to end.
NK_API struct nk_rect nk_console_row_render(nk_console * console)NK_API void nk_console_sdl_update_text_input(nk_console * console, SDL_Window * window)Call once per frame after rendering to sync SDL text input state with the active console widget. Starts text input when a textedit field is active, stops it otherwise.
Compatible with both SDL2 and SDL3. For SDL2, window may be NULL.
NK_API nk_console * nk_console_file(nk_console * parent, const char * label, char * file_path_buffer, int file_path_buffer_size)Creates a file widget that allows the user to select a file.
-
parentThe parent widget. -
labelThe label for the file widget. For example: "Select a file". -
file_path_bufferThe buffer to store the file path. -
file_path_buffer_sizeThe size of the buffer.
The new file widget.
NK_API nk_console * nk_console_dir(nk_console * parent, const char * label, char * dir_buffer, int dir_buffer_size)Creates a directory widget that allows the user to select a directory.
-
parentThe parent widget. -
labelThe label for the file widget. For example: "Select a directory". -
dir_bufferThe buffer to store the directory path. -
dir_buffer_sizeThe size of the buffer.
The new file widget.
NK_API nk_console * nk_console_file_action(nk_console * parent, const char * label, char * file_path_buffer, int file_path_buffer_size)Creates a file action widget that shows a single full-width button. The label is used as the button text before a file is selected; afterwards the button shows the chosen filename.
-
parentThe parent widget. -
labelThe button label. For example: "Select a file". Pass NULL for the default text. -
file_path_bufferThe buffer to store the file path. -
file_path_buffer_sizeThe size of the buffer.
The new file action widget.
NK_API nk_console * nk_console_dir_action(nk_console * parent, const char * label, char * dir_buffer, int dir_buffer_size)Creates a directory action widget that shows a single full-width button. The label is used as the button text before a directory is selected; afterwards the button shows the chosen directory.
-
parentThe parent widget. -
labelThe button label. For example: "Select a directory". Pass NULL for the default text. -
dir_bufferThe buffer to store the directory path. -
dir_buffer_sizeThe size of the buffer.
The new directory action widget.
NK_API struct nk_rect nk_console_file_render(nk_console * widget)Render callback to display the file widget.
NK_API void nk_console_file_set_file_user_data(nk_console * file, void * user_data)Sets any custom user data specifically for the file widget.
This can be helpful for storing additional file system data for the file widget.
-
fileThe file widget. -
user_dataThe custom user data.
NK_API void * nk_console_file_get_file_user_data(nk_console * file)Gets the custom user data specifically for the file widget.
-
fileThe file widget.
The custom user data.
NK_API nk_console * nk_console_file_add_entry(nk_console * parent, const char * path, nk_bool is_directory)Add an individual file or directory entry to the given file widget's list view.
This should be called from the file system callbacks. See [nuklear_console_file_system.h](#nuklear_console_file_systemh) for examples.
-
parentThe file widget. -
pathThe path to the file or directory. -
is_directoryTrue if the path is a directory. False otherwise.
Non-NULL if the entry was successfully added, NULL otherwise.
See also: nk_console_file_add_files_tinydir()
See also: nk_console_file_add_files_raylib()
NK_API void nk_console_file_set_list_view(nk_console * file, nk_bool use_list_view)Sets whether the file/directory widget uses a list view or buttons for file selection.
-
fileThe file widget. -
use_list_viewTrue to use a list view, false to use buttons (the default).
NK_API nk_bool nk_console_file_get_list_view(nk_console * file)Gets whether the file/directory widget is using a list view for file selection.
-
fileThe file widget.
True if using a list view, false if using buttons (the default).
NK_API void nk_console_file_set_directory(nk_console * file, const char * directory)Sets the starting directory the file browser opens at when activated.
When set, this overrides the directory derived from the buffer value. Pass NULL or an empty string to clear and revert to buffer-derived behavior.
-
fileThe file widget. -
directoryThe starting directory path.
NK_API const char * nk_console_file_get_directory(nk_console * file)Gets the starting directory set via nk_console_file_set_directory().
-
fileThe file widget.
The starting directory, or an empty string if not set.
NK_API void nk_console_file_refresh(nk_console * widget, void * user_data)Refreshes the file widget with the contents with its given directory.
NK_API nk_console * nk_console_knob_int(nk_console * parent, const char * label, int min, int * val, int max, int step, float inc_per_pixel)Creates a Knob widget using an integer value.
NK_API nk_console * nk_console_knob_float(nk_console * parent, const char * label, float min, float * val, float max, float step, float inc_per_pixel)Creates a Knob widget using a float value.
NK_API nk_console * nk_console_tree(nk_console * parent, const char * label, nk_bool expanded)Create a Tree widget.
-
parentThe parent widget. -
labelThe label for the widget -
expandedThe starting state of whether or not the tree should be expanded.
The created widget.
NK_API nk_bool nk_console_tree_expanded(nk_console * tree)Retrieves whether or not the given tree is expanded.
-
treeThe tree widget to check against.
True if the tree is opened, false otherwise.
NK_API nk_bool nk_console_tree_set_expanded(nk_console * tree, nk_bool expanded)Expand or collapse the given tree.
-
treeThe tree widget to expand/collapse. -
expandedTrue to expand the tree, false to collapse.
True if the tree is now opened, false otherwise.
NK_API nk_console * nk_console_color(nk_console * parent, const char * label, struct nk_colorf * color, enum nk_color_format format)Create a color picker widget.
-
parentThe parent widget. -
labelThe label for the widget -
colorA pointer to where the color should be held. -
formatWhether the color should be in RGB or RGBA format.
The created widget.
NK_API struct nk_rect nk_console_color_render(nk_console * widget)Render callback to display a color widget.
NK_API nk_console * nk_console_image(nk_console * parent, struct nk_image image)NK_API nk_console * nk_console_image_color(nk_console * parent, struct nk_image image, struct nk_color color)NK_API struct nk_rect nk_console_image_render(nk_console * widget)NK_API void nk_console_image_set_image(nk_console * widget, struct nk_image image)NK_API struct nk_image nk_console_image_get_image(nk_console * widget)NK_API void nk_console_image_set_color(nk_console * widget, struct nk_color color)NK_API struct nk_color nk_console_image_get_color(nk_console * widget)NK_API nk_console * nk_console_input(nk_console * parent, const char * label, int gamepad_number, int * out_gamepad_number, enum nk_gamepad_button * out_gamepad_button)Create a new input widget to get a gamepad button.
-
parentThe parent console of where to add the widget. -
labelThe label to display. -
gamepad_numberThe gamepad number to expect input from. Provide -1 for any gamepad. -
out_gamepad_numberWhen the user enters a button, this is where the gamepad number that was used to press the button. -
out_gamepad_buttonWhen the user enters a button, this is where the gamepad button will be stored.
Todo: Input: Add Keyboard support?
The new input widget.
NK_API struct nk_rect nk_console_input_render(nk_console * widget)NK_API void nk_console_input_set_default(nk_console * widget, enum nk_gamepad_button gamepad_button)Set the default gamepad button assigned to out_gamepad_button when the capture prompt times out. Defaults to NK_GAMEPAD_BUTTON_INVALID.
NK_API enum nk_gamepad_button nk_console_input_get_default(nk_console * widget)Get the default gamepad button assigned to out_gamepad_button when the capture prompt times out.
NK_API nk_console * nk_console_label(nk_console * parent, const char * text)NK_API struct nk_rect nk_console_label_render(nk_console * widget)NK_API nk_console * nk_console_radio(nk_console * parent, const char * label, int * selected)Creates a radio button. Use the same selected pointer to indicate the same radio buttons within the radio group.
-
parentThe parent widget. -
labelThe label for the radio button. -
selectedThe selected index for the radio button. Provide the same selected index for all radio buttons in the group.
The radio button widget.
NK_API struct nk_rect nk_console_radio_render(nk_console * widget)Renders the radio button.
-
widgetThe radio button widget.
The bounds of the radio button.
NK_API nk_bool nk_console_radio_is_selected(nk_console * widget)Returns true if the radio button is the selected radio in the group.
-
widgetThe radio button widget.
True if the radio button is selected.
NK_API int nk_console_radio_index(nk_console * widget)Returns the index of the radio button in the group.
-
widgetThe radio button widget.
The index of the radio button.
NK_API nk_console * nk_console_button(nk_console * parent, const char * text)NK_API struct nk_rect nk_console_button_render(nk_console * console)NK_API void nk_console_button_back(nk_console * button, void * user_data)NK_API nk_console * nk_console_button_onclick(nk_console * parent, const char * text, nk_console_event onclick)NK_API nk_console * nk_console_button_onclick_handler(nk_console * parent, const char * text, nk_console_event callback, void * data, nk_console_event destructor)NK_API enum nk_symbol_type nk_console_button_get_symbol(nk_console * button)NK_API void nk_console_button_set_symbol(nk_console * button, enum nk_symbol_type symbol)NK_API void nk_console_button_set_image(nk_console * button, struct nk_image image)NK_API struct nk_image nk_console_button_get_image(nk_console * button)NK_API void nk_console_show_message(nk_console * console, const char * text)Displays a notification message on the screen.
-
consoleThe active console system. -
textThe text to display.
NK_API nk_console * nk_console_spacing(nk_console * parent, int cols)NK_API struct nk_rect nk_console_spacing_render(nk_console * widget)NK_API nk_console * nk_console_checkbox(nk_console * parent, const char * text, nk_bool * active)NK_API struct nk_rect nk_console_checkbox_render(nk_console * console)NK_API nk_console * nk_console_combobox(nk_console * parent, const char * label, const char * items_separated_by_separator, int separator, int * selected)NK_API struct nk_rect nk_console_combobox_render(nk_console * console)NK_API void nk_console_combobox_button_click(nk_console * button, void * user_data)NK_API void nk_console_combobox_button_main_click(nk_console * button, void * user_data)NK_API void nk_console_combobox_update(nk_console * combobox, const char * label, const char * items_separated_by_separator, int separator, int * selected)NK_API nk_console * nk_console_progress(nk_console * parent, const char * text, nk_size * current, nk_size max)NK_API struct nk_rect nk_console_progress_render(nk_console * console)NK_API nk_console * nk_console_property_int(nk_console * parent, const char * label, int min, int * val, int max, int step, float inc_per_pixel)NK_API nk_console * nk_console_property_float(nk_console * parent, const char * label, float min, float * val, float max, float step, float inc_per_pixel)NK_API nk_console * nk_console_slider_int(nk_console * parent, const char * label, int min, int * val, int max, int step)NK_API nk_console * nk_console_slider_float(nk_console * parent, const char * label, float min, float * val, float max, float step)NK_API struct nk_rect nk_console_property_render(nk_console * console)NK_API nk_console * nk_console_textedit(nk_console * parent, const char * label, char * buffer, int buffer_size)Adds a textedit on-screen keyboard widget to the console given parent.
-
parentThe parent widget to add the textedit to. -
labelA string representing the identifier for the associated textedit widget. -
bufferThe buffer to store the textedit data. -
buffer_sizeThe size of the given buffer.
The created textedit widget.
NK_API nk_console * nk_console_textedit_masked(nk_console * parent, const char * label, char * buffer, int buffer_size)NK_API struct nk_rect nk_console_textedit_render(nk_console * console)NK_API void nk_console_textedit_button_main_click(nk_console * button, void * user_data)NK_API void nk_console_textedit_button_back_click(nk_console * button, void * user_data)NK_API void nk_console_textedit_key_click(nk_console * key, void * user_data)NK_API nk_console * nk_console_list_view(nk_console * parent, const char * id, int rows_visible, nk_uint item_count, nk_console_list_view_get_label get_label_callback)Creates a List View that can display thousands of items.
-
parentWhere the element should be placed. -
idA unique identifier for the list view. -
rows_visibleThe number of rows to be shown at any given time. -
item_countThe number of items in the data set. -
get_label_callbackThe callback that will be used to retrieve individual labels.
See also: nk_console_list_view_get_label
NK_API nk_uint nk_console_list_view_selected(nk_console * list_view)Get the currently selected index.
-
list_viewThe List View widget.
The list view item that the user currently has selected.
NK_API const char * nk_console_list_view_selected_label(nk_console * list_view)Get the currently selected label.
-
list_viewThe List View widget.
The label associated with the currently selected item.
NK_API float nk_console_list_view_row_height(nk_console * list_view)Retrieve that height of an individual row in the list view.
-
list_viewThe List View widget.
The height of an individual row.
NK_API nk_flags nk_console_list_view_flags(nk_console * list_view)Retrieve the flags for the given List View Widget.
NK_API void nk_console_list_view_set_flags(nk_console * list_view, nk_flags flags)Set the flags for the given List View Widget.
For example: NK_WINDOW_BORDER, NK_WINDOW_TITLE
NK_API void nk_console_list_view_set_item_count(nk_console * list_view, nk_uint item_count)NK_API nk_uint nk_console_list_view_item_count(nk_console * list_view)NK_API nk_console * nk_console_textedit_text(nk_console * textedit)A TextEdit Text widget is a text field that is displayed as part of the on-screen keyboard.
See also: nk_console_textedit()
NK_API struct nk_rect nk_console_textedit_text_render(nk_console * widget)NK_API nk_console * nk_console_rule_horizontal(nk_console * parent, struct nk_color color, nk_bool rounding)Line for visual separation. Draws a line with thickness determined by the current row height.
NK_API struct nk_rect nk_console_rule_horizontal_render(nk_console * widget)Renders the Horizontal Rule.
#include <nuklear_console.h>struct nk_consoleDefined in nuklear_console.h:87
| Name | Kind | Owner |
|---|---|---|
type |
variable |
Declared here |
label |
variable |
Declared here |
label_length |
variable |
Declared here |
alignment |
variable |
Declared here |
selectable |
variable |
Declared here |
disabled |
variable |
Declared here |
visible |
variable |
Declared here |
columns |
variable |
Declared here |
height |
variable |
Declared here |
tooltip |
variable |
Declared here |
data |
variable |
Declared here |
parent |
variable |
Declared here |
ctx |
variable |
Declared here |
children |
variable |
Declared here |
activeWidget |
variable |
Declared here |
events |
variable |
Declared here |
render |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
nk_console_widget_type |
type |
|
const char * |
label |
|
int |
label_length |
|
nk_flags |
alignment |
|
nk_bool |
selectable |
|
nk_bool |
disabled |
Whether or not the widget can be selected. |
nk_bool |
visible |
Whether or not the widget is currently disabled. |
int |
columns |
When false, the widget will not be displayed. |
int |
height |
When set, will determine how many dynamic columns to set to for the active row. |
const char * |
tooltip |
When set, will determine the height of the row. |
void * |
data |
Tooltip |
struct nk_console * |
parent |
Widget-specific data |
struct nk_context * |
ctx |
|
struct nk_console ** |
children |
|
struct nk_console * |
activeWidget |
|
nk_console_event_handler * |
events |
|
nk_console_render_event |
render |
Events handled for the widget. |
nk_console_widget_type typeDefined in nuklear_console.h:88
const char * labelDefined in nuklear_console.h:89
int label_lengthDefined in nuklear_console.h:90
nk_flags alignmentDefined in nuklear_console.h:91
nk_bool selectableDefined in nuklear_console.h:93
nk_bool disabledDefined in nuklear_console.h:94
Whether or not the widget can be selected.
nk_bool visibleDefined in nuklear_console.h:95
Whether or not the widget is currently disabled.
int columnsDefined in nuklear_console.h:96
When false, the widget will not be displayed.
int heightDefined in nuklear_console.h:97
When set, will determine how many dynamic columns to set to for the active row.
const char * tooltipDefined in nuklear_console.h:98
When set, will determine the height of the row.
void * dataDefined in nuklear_console.h:99
Tooltip
struct nk_console * parentDefined in nuklear_console.h:101
Widget-specific data
struct nk_context * ctxDefined in nuklear_console.h:102
struct nk_console ** childrenDefined in nuklear_console.h:103
struct nk_console * activeWidgetDefined in nuklear_console.h:104
nk_console_event_handler * eventsDefined in nuklear_console.h:107
nk_console_render_event renderDefined in nuklear_console.h:108
Events handled for the widget.
#include <nuklear_console.h>struct nk_console_messageDefined in nuklear_console.h:82
| Name | Kind | Owner |
|---|---|---|
text |
variable |
Declared here |
duration |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
char |
text |
|
float |
duration |
char textDefined in nuklear_console.h:83
float durationDefined in nuklear_console.h:84
#include <nuklear_console_key.h>struct nk_console_key_dataDefined in nuklear_console_key.h:14
Data specifically used for the Key widget.
Stored value convention for out_key: 0 = NK_KEY_NONE (nothing captured) 1 .. NK_KEY_MAX = nk_keys special key (arrows, Enter, Backspace, etc.) NK_KEY_MAX = Unicode codepoint of a typed character
See also: nk_console_key()
| Name | Kind | Owner |
|---|---|---|
button_data |
variable |
Declared here |
out_key |
variable |
Declared here |
timer |
variable |
Declared here |
default_key |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
struct nk_console_button_data |
button_data |
|
nk_rune * |
out_key |
Inherited from button |
float |
timer |
A pointer to where to store the captured key/character. |
nk_rune |
default_key |
A countdown timer to prompt the user with. See also: NK_CONSOLE_KEY_TIMER |
struct nk_console_button_data button_dataDefined in nuklear_console_key.h:15
nk_rune * out_keyDefined in nuklear_console_key.h:16
Inherited from button
float timerDefined in nuklear_console_key.h:17
A pointer to where to store the captured key/character.
nk_rune default_keyDefined in nuklear_console_key.h:18
A countdown timer to prompt the user with. See also: NK_CONSOLE_KEY_TIMER
#include <nuklear_console_row.h>struct nk_console_row_dataDefined in nuklear_console_row.h:4
| Name | Kind | Owner |
|---|---|---|
activeChild |
variable |
Declared here |
widgets_added |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
int |
activeChild |
|
nk_bool |
widgets_added |
int activeChildDefined in nuklear_console_row.h:5
nk_bool widgets_addedDefined in nuklear_console_row.h:6
#include <nuklear_console.h>struct nk_console_top_dataDefined in nuklear_console.h:111
| Name | Kind | Owner |
|---|---|---|
active_parent |
variable |
Declared here |
input_processed |
variable |
Declared here |
scrollbar_required |
variable |
Declared here |
scroll_to_widget |
variable |
Declared here |
messages |
variable |
Declared here |
message_bounds |
variable |
Declared here |
gamepads |
variable |
Declared here |
gamepad_num |
variable |
Declared here |
user_data |
variable |
Declared here |
up_down_hold_timer |
variable |
Declared here |
up_down_repeat_timer |
variable |
Declared here |
axis_ud |
variable |
Declared here |
axis_lr |
variable |
Declared here |
axis_up_fired |
variable |
Declared here |
axis_down_fired |
variable |
Declared here |
axis_left_fired |
variable |
Declared here |
axis_right_fired |
variable |
Declared here |
drag_scroll_active |
variable |
Declared here |
drag_scroll_initiated |
variable |
Declared here |
drag_scroll_origin |
variable |
Declared here |
drag_scroll_start_x |
variable |
Declared here |
drag_scroll_start_y |
variable |
Declared here |
drag_scroll_max_x |
variable |
Declared here |
drag_scroll_max_y |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
nk_console * |
active_parent |
|
nk_bool |
input_processed |
The parent that is currently being displayed. |
nk_bool |
scrollbar_required |
Whether or not user input has been processed. |
nk_console * |
scroll_to_widget |
True when the scrollbar is needed to be rendered. See also: nk_console_render_window() |
struct nk_console_message * |
messages |
When set by nk_console_navigate_back, the render loop scrolls the window to this widget's bounds. Message queue that is to be shown. |
struct nk_rect |
message_bounds |
When set, will determine where messages should appear on the screen. |
struct nk_gamepads * |
gamepads |
The gamepad system to use for gamepad input. |
int |
gamepad_num |
Which gamepad number to use for input. -1 means any/all gamepads. |
void * |
user_data |
Custom user data. This is only applied to the top-level console. |
float |
up_down_hold_timer |
|
float |
up_down_repeat_timer |
Total time up/down has been held continuously, used for acceleration. |
struct nk_console_top_data::nk_console_axis_channel |
axis_ud |
|
struct nk_console_top_data::nk_console_axis_channel |
axis_lr |
|
nk_bool |
axis_up_fired |
|
nk_bool |
axis_down_fired |
True this frame if an axis fired an up event. |
nk_bool |
axis_left_fired |
True this frame if an axis fired a down event. |
nk_bool |
axis_right_fired |
True this frame if an axis fired a left event. |
nk_bool |
drag_scroll_active |
True this frame if an axis fired a right event. |
nk_bool |
drag_scroll_initiated |
True when a drag-scroll gesture is in progress. |
struct nk_vec2 |
drag_scroll_origin |
True when the drag started from the content area (not scrollbar). |
nk_uint |
drag_scroll_start_x |
Mouse position when the drag started. |
nk_uint |
drag_scroll_start_y |
Window scroll X at drag start. |
nk_uint |
drag_scroll_max_x |
Window scroll Y at drag start. |
nk_uint |
drag_scroll_max_y |
Maximum scroll X, updated each frame after render. |
nk_console * active_parentDefined in nuklear_console.h:112
nk_bool input_processedDefined in nuklear_console.h:113
The parent that is currently being displayed.
nk_bool scrollbar_requiredDefined in nuklear_console.h:114
Whether or not user input has been processed.
nk_console * scroll_to_widgetDefined in nuklear_console.h:115
True when the scrollbar is needed to be rendered. See also: nk_console_render_window()
struct nk_console_message * messagesDefined in nuklear_console.h:120
When set by nk_console_navigate_back, the render loop scrolls the window to this widget's bounds. Message queue that is to be shown.
struct nk_rect message_boundsDefined in nuklear_console.h:125
When set, will determine where messages should appear on the screen.
struct nk_gamepads * gamepadsDefined in nuklear_console.h:133
The gamepad system to use for gamepad input.
See also: nk_console_get_gamepads()
See also: nk_console_set_gamepads()
int gamepad_numDefined in nuklear_console.h:141
Which gamepad number to use for input. -1 means any/all gamepads.
See also: nk_console_set_gamepad_num()
See also: nk_console_get_gamepad_num()
void * user_dataDefined in nuklear_console.h:149
Custom user data. This is only applied to the top-level console.
See also: nk_console_user_data()
See also: nk_console_set_user_data()
float up_down_hold_timerDefined in nuklear_console.h:151
float up_down_repeat_timerDefined in nuklear_console.h:152
Total time up/down has been held continuously, used for acceleration.
struct nk_console_top_data::nk_console_axis_channel axis_udDefined in nuklear_console.h:158
struct nk_console_top_data::nk_console_axis_channel axis_lrDefined in nuklear_console.h:158
nk_bool axis_up_firedDefined in nuklear_console.h:160
nk_bool axis_down_firedDefined in nuklear_console.h:161
True this frame if an axis fired an up event.
nk_bool axis_left_firedDefined in nuklear_console.h:162
True this frame if an axis fired a down event.
nk_bool axis_right_firedDefined in nuklear_console.h:163
True this frame if an axis fired a left event.
nk_bool drag_scroll_activeDefined in nuklear_console.h:165
True this frame if an axis fired a right event.
nk_bool drag_scroll_initiatedDefined in nuklear_console.h:166
True when a drag-scroll gesture is in progress.
struct nk_vec2 drag_scroll_originDefined in nuklear_console.h:167
True when the drag started from the content area (not scrollbar).
nk_uint drag_scroll_start_xDefined in nuklear_console.h:168
Mouse position when the drag started.
nk_uint drag_scroll_start_yDefined in nuklear_console.h:169
Window scroll X at drag start.
nk_uint drag_scroll_max_xDefined in nuklear_console.h:170
Window scroll Y at drag start.
nk_uint drag_scroll_max_yDefined in nuklear_console.h:171
Maximum scroll X, updated each frame after render.
#include <nuklear_console.h>struct nk_console_axis_channelDefined in nuklear_console.h:155
Time accumulator since the last repeated up/down move. State for one analog axis navigation channel (up/down or left/right).
| Name | Kind | Owner |
|---|---|---|
timer |
variable |
Declared here |
hold_timer |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
float |
timer |
|
float |
hold_timer |
Repeat accumulator. -1 when inactive. |
float timerDefined in nuklear_console.h:156
float hold_timerDefined in nuklear_console.h:157
Repeat accumulator. -1 when inactive.
#include <nuklear_console_file.h>struct nk_console_file_dataDefined in nuklear_console_file.h:23
Custom data for the file widget.
| Name | Kind | Owner |
|---|---|---|
button |
variable |
Declared here |
file_path_buffer |
variable |
Declared here |
file_path_buffer_size |
variable |
Declared here |
directory |
variable |
Declared here |
file_user_data |
variable |
Declared here |
select_directory |
variable |
Declared here |
use_list_view |
variable |
Declared here |
file_action |
variable |
Declared here |
starting_directory |
variable |
Declared here |
dir_label_buf |
variable |
Declared here |
entries |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
nk_console_button_data |
button |
|
char * |
file_path_buffer |
Inherited from Button |
int |
file_path_buffer_size |
The string buffer for the chosen file path. |
char |
directory |
The size of the buffer. |
void * |
file_user_data |
When selecting a file, this is the current directory. |
nk_bool |
select_directory |
Custom user data for the file system. |
nk_bool |
use_list_view |
Flag indicating if we are selecting a directory. |
nk_bool |
file_action |
When true, uses a list view for file selection. Defaults to buttons. |
char |
starting_directory |
When true, uses the label as the button text and skips the left-side label. |
char |
dir_label_buf |
Optional user-specified starting directory. When set, overrides the buffer-derived directory. |
nk_console_file_entry * |
entries |
Scratch buffer for appending "/" to directory labels in the list view. |
nk_console_button_data buttonDefined in nuklear_console_file.h:24
char * file_path_bufferDefined in nuklear_console_file.h:25
Inherited from Button
int file_path_buffer_sizeDefined in nuklear_console_file.h:26
The string buffer for the chosen file path.
char directoryDefined in nuklear_console_file.h:27
The size of the buffer.
void * file_user_dataDefined in nuklear_console_file.h:28
When selecting a file, this is the current directory.
nk_bool select_directoryDefined in nuklear_console_file.h:29
Custom user data for the file system.
nk_bool use_list_viewDefined in nuklear_console_file.h:30
Flag indicating if we are selecting a directory.
nk_bool file_actionDefined in nuklear_console_file.h:31
When true, uses a list view for file selection. Defaults to buttons.
char starting_directoryDefined in nuklear_console_file.h:32
When true, uses the label as the button text and skips the left-side label.
char dir_label_bufDefined in nuklear_console_file.h:33
Optional user-specified starting directory. When set, overrides the buffer-derived directory.
nk_console_file_entry * entriesDefined in nuklear_console_file.h:34
Scratch buffer for appending "/" to directory labels in the list view.
#include <nuklear_console_knob.h>struct nk_console_knob_dataDefined in nuklear_console_knob.h:9
Data for Property and Slider widgets.
| Name | Kind | Owner |
|---|---|---|
property |
variable |
Declared here |
zero_direction |
variable |
Declared here |
dead_zone_degrees |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
nk_console_property_data |
property |
|
enum nk_heading |
zero_direction |
|
float |
dead_zone_degrees |
nk_console_property_data propertyDefined in nuklear_console_knob.h:10
enum nk_heading zero_directionDefined in nuklear_console_knob.h:11
float dead_zone_degreesDefined in nuklear_console_knob.h:12
#include <nuklear_console_tree.h>struct nk_console_tree_dataDefined in nuklear_console_tree.h:4
| Name | Kind | Owner |
|---|---|---|
button |
variable |
Declared here |
referenced_children |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
struct nk_console_button_data |
button |
|
struct nk_console ** |
referenced_children |
Inherited from button |
struct nk_console_button_data buttonDefined in nuklear_console_tree.h:5
struct nk_console ** referenced_childrenDefined in nuklear_console_tree.h:6
Inherited from button
#include <nuklear_console_color.h>struct nk_console_color_dataDefined in nuklear_console_color.h:4
| Name | Kind | Owner |
|---|---|---|
button |
variable |
Declared here |
color |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
struct nk_console_button_data |
button |
|
struct nk_colorf * |
color |
Inherited from button |
struct nk_console_button_data buttonDefined in nuklear_console_color.h:5
struct nk_colorf * colorDefined in nuklear_console_color.h:6
Inherited from button
#include <nuklear_console_file.h>struct nk_console_file_entryDefined in nuklear_console_file.h:15
A single file or directory entry stored for the file widget's list view.
| Name | Kind | Owner |
|---|---|---|
label |
variable |
Declared here |
is_directory |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
char * |
label |
|
nk_bool |
is_directory |
The basename of the file or directory. |
char * labelDefined in nuklear_console_file.h:16
nk_bool is_directoryDefined in nuklear_console_file.h:17
The basename of the file or directory.
#include <nuklear_console_image.h>struct nk_console_image_dataDefined in nuklear_console_image.h:4
| Name | Kind | Owner |
|---|---|---|
image |
variable |
Declared here |
color |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
struct nk_image |
image |
|
struct nk_color |
color |
struct nk_image imageDefined in nuklear_console_image.h:5
struct nk_color colorDefined in nuklear_console_image.h:6
#include <nuklear_console_input.h>struct nk_console_input_dataDefined in nuklear_console_input.h:9
Data specifically used for the input widget.
See also: nk_console_input()
| Name | Kind | Owner |
|---|---|---|
button_data |
variable |
Declared here |
gamepad_number |
variable |
Declared here |
out_gamepad_number |
variable |
Declared here |
out_gamepad_button |
variable |
Declared here |
timer |
variable |
Declared here |
default_gamepad_button |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
struct nk_console_button_data |
button_data |
|
int |
gamepad_number |
Inherited from button |
int * |
out_gamepad_number |
The gamepad number of which to expect input from. Provied -1 for any gamepad. |
enum nk_gamepad_button * |
out_gamepad_button |
A pointer for where to store the gamepad number the button is associated with. |
float |
timer |
A pointer to where to store the gamepad button. |
enum nk_gamepad_button |
default_gamepad_button |
A countdown timer to prompt the user with. See also: NK_CONSOLE_INPUT_TIMER |
struct nk_console_button_data button_dataDefined in nuklear_console_input.h:10
int gamepad_numberDefined in nuklear_console_input.h:11
Inherited from button
int * out_gamepad_numberDefined in nuklear_console_input.h:12
The gamepad number of which to expect input from. Provied -1 for any gamepad.
enum nk_gamepad_button * out_gamepad_buttonDefined in nuklear_console_input.h:13
A pointer for where to store the gamepad number the button is associated with.
float timerDefined in nuklear_console_input.h:14
A pointer to where to store the gamepad button.
enum nk_gamepad_button default_gamepad_buttonDefined in nuklear_console_input.h:15
A countdown timer to prompt the user with. See also: NK_CONSOLE_INPUT_TIMER
#include <nuklear_console_radio.h>struct nk_console_radio_dataDefined in nuklear_console_radio.h:9
Data for the radio button.
See also: nk_console_radio()
| Name | Kind | Owner |
|---|---|---|
selected |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
int * |
selected |
int * selectedDefined in nuklear_console_radio.h:10
#include <nuklear_console_button.h>struct nk_console_button_dataDefined in nuklear_console_button.h:4
| Name | Kind | Owner |
|---|---|---|
symbol |
variable |
Declared here |
image |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
enum nk_symbol_type |
symbol |
|
struct nk_image |
image |
enum nk_symbol_type symbolDefined in nuklear_console_button.h:5
struct nk_image imageDefined in nuklear_console_button.h:6
#include <nuklear_console_checkbox.h>struct nk_console_checkbox_dataDefined in nuklear_console_checkbox.h:4
| Name | Kind | Owner |
|---|---|---|
value_bool |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
nk_bool * |
value_bool |
nk_bool * value_boolDefined in nuklear_console_checkbox.h:5
#include <nuklear_console_combobox.h>struct nk_console_combobox_dataDefined in nuklear_console_combobox.h:7
Data for Combobox widgets.
| Name | Kind | Owner |
|---|---|---|
button |
variable |
Declared here |
label |
variable |
Declared here |
items_separated_by_separator |
variable |
Declared here |
separator |
variable |
Declared here |
selected |
variable |
Declared here |
count |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
nk_console_button_data |
button |
|
constchar * |
label |
|
constchar * |
items_separated_by_separator |
|
int |
separator |
|
int * |
selected |
|
int |
count |
nk_console_button_data buttonDefined in nuklear_console_combobox.h:8
constchar * labelDefined in nuklear_console_combobox.h:9
constchar * items_separated_by_separatorDefined in nuklear_console_combobox.h:10
int separatorDefined in nuklear_console_combobox.h:11
int * selectedDefined in nuklear_console_combobox.h:12
int countDefined in nuklear_console_combobox.h:13
#include <nuklear_console.h>struct nk_console_event_handlerDefined in nuklear_console.h:35
| Name | Kind | Owner |
|---|---|---|
type |
variable |
Declared here |
callback |
variable |
Declared here |
user_data |
variable |
Declared here |
destructor |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
nk_console_event_type |
type |
|
nk_console_event |
callback |
The type of event this handler is for. |
void * |
user_data |
Invoked when this handler is triggered. |
nk_console_event |
destructor |
Passed to both 'callback' and 'destructor'. |
nk_console_event_type typeDefined in nuklear_console.h:36
nk_console_event callbackDefined in nuklear_console.h:37
The type of event this handler is for.
void * user_dataDefined in nuklear_console.h:38
Invoked when this handler is triggered.
nk_console_event destructorDefined in nuklear_console.h:39
Passed to both 'callback' and 'destructor'.
#include <nuklear_console_progress.h>struct nk_console_progress_dataDefined in nuklear_console_progress.h:4
| Name | Kind | Owner |
|---|---|---|
max_size |
variable |
Declared here |
value_size |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
nk_size |
max_size |
|
nk_size * |
value_size |
nk_size max_sizeDefined in nuklear_console_progress.h:5
nk_size * value_sizeDefined in nuklear_console_progress.h:6
#include <nuklear_console_property.h>struct nk_console_property_dataDefined in nuklear_console_property.h:7
Data for Property and Slider widgets.
| Name | Kind | Owner |
|---|---|---|
min_int |
variable |
Declared here |
max_int |
variable |
Declared here |
step_int |
variable |
Declared here |
min_float |
variable |
Declared here |
max_float |
variable |
Declared here |
step_float |
variable |
Declared here |
inc_per_pixel |
variable |
Declared here |
val_int |
variable |
Declared here |
val_float |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
int |
min_int |
|
int |
max_int |
The minimum value, represented as an integer. |
int |
step_int |
The maximum value, represented as an integer. |
float |
min_float |
How much each step should increment. |
float |
max_float |
The minimum value, represented as a float. |
float |
step_float |
The maximum value, represented as a float. |
float |
inc_per_pixel |
How much each step should increment. |
int * |
val_int |
The increment per pixel value as a float. |
float * |
val_float |
Pointer to the integer value. |
int min_intDefined in nuklear_console_property.h:8
int max_intDefined in nuklear_console_property.h:9
The minimum value, represented as an integer.
int step_intDefined in nuklear_console_property.h:10
The maximum value, represented as an integer.
float min_floatDefined in nuklear_console_property.h:11
How much each step should increment.
float max_floatDefined in nuklear_console_property.h:12
The minimum value, represented as a float.
float step_floatDefined in nuklear_console_property.h:13
The maximum value, represented as a float.
float inc_per_pixelDefined in nuklear_console_property.h:14
How much each step should increment.
int * val_intDefined in nuklear_console_property.h:15
The increment per pixel value as a float.
float * val_floatDefined in nuklear_console_property.h:16
Pointer to the integer value.
#include <nuklear_console_textedit.h>struct nk_console_textedit_dataDefined in nuklear_console_textedit.h:11
| Name | Kind | Owner |
|---|---|---|
button |
variable |
Declared here |
buffer |
variable |
Declared here |
buffer_size |
variable |
Declared here |
shift |
variable |
Declared here |
masked |
variable |
Declared here |
masked_display |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
nk_console_button_data |
button |
|
char * |
buffer |
|
int |
buffer_size |
|
nk_bool |
shift |
|
nk_bool |
masked |
|
char |
masked_display |
nk_console_button_data buttonDefined in nuklear_console_textedit.h:12
char * bufferDefined in nuklear_console_textedit.h:13
int buffer_sizeDefined in nuklear_console_textedit.h:14
nk_bool shiftDefined in nuklear_console_textedit.h:15
nk_bool maskedDefined in nuklear_console_textedit.h:16
char masked_displayDefined in nuklear_console_textedit.h:17
#include <nuklear_console_list_view.h>struct nk_console_list_view_dataDefined in nuklear_console_list_view.h:18
Data associated with a List View Widget.
| Name | Kind | Owner |
|---|---|---|
view |
variable |
Declared here |
flags |
variable |
Declared here |
row_count |
variable |
Declared here |
rows_visible |
variable |
Declared here |
scroll_pointer |
variable |
Declared here |
selected |
variable |
Declared here |
_scroll_y |
variable |
Declared here |
get_label_callback |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
structnk_list_view |
view |
|
nk_flags |
flags |
The Nuklear list view object itself. |
nk_uint |
row_count |
Flags that are used for the list_view. |
nk_uint |
rows_visible |
The number of available rows in the dataset. |
nk_uint |
scroll_pointer |
The number of rows to display when the user is looking at the list. |
nk_uint |
selected |
Tracks where the user is scrolling the list. |
nk_uint |
_scroll_y |
Which item has been selected. |
nk_console_list_view_get_label |
get_label_callback |
Helps calculate the list view scroll. |
structnk_list_view viewDefined in nuklear_console_list_view.h:19
nk_flags flagsDefined in nuklear_console_list_view.h:20
The Nuklear list view object itself.
nk_uint row_countDefined in nuklear_console_list_view.h:21
Flags that are used for the list_view.
nk_uint rows_visibleDefined in nuklear_console_list_view.h:22
The number of available rows in the dataset.
nk_uint scroll_pointerDefined in nuklear_console_list_view.h:23
The number of rows to display when the user is looking at the list.
nk_uint selectedDefined in nuklear_console_list_view.h:24
Tracks where the user is scrolling the list.
nk_uint _scroll_yDefined in nuklear_console_list_view.h:25
Which item has been selected.
nk_console_list_view_get_label get_label_callbackDefined in nuklear_console_list_view.h:26
Helps calculate the list view scroll.
#include <nuklear_console_rule_horizontal.h>struct nk_console_rule_horizontal_dataDefined in nuklear_console_rule_horizontal.h:13
Data for the horizontal rule widget.
See also: nk_console_rule_horizontal()
| Name | Kind | Owner |
|---|---|---|
color |
variable |
Declared here |
rounding |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
struct nk_color |
color |
|
nk_bool |
rounding |
struct nk_color colorDefined in nuklear_console_rule_horizontal.h:14
nk_bool roundingDefined in nuklear_console_rule_horizontal.h:15
#include <nuklear_console.h>struct nk_console_axis_channelDefined in nuklear_console.h:155
Time accumulator since the last repeated up/down move. State for one analog axis navigation channel (up/down or left/right).
| Name | Kind | Owner |
|---|---|---|
timer |
variable |
Declared here |
hold_timer |
variable |
Declared here |
| Return | Name | Description |
|---|---|---|
float |
timer |
|
float |
hold_timer |
Repeat accumulator. -1 when inactive. |
float timerDefined in nuklear_console.h:156
float hold_timerDefined in nuklear_console.h:157
Repeat accumulator. -1 when inactive.
Generated by Moxygen