Nuklear
This is a minimal-state, immediate-mode graphical user interface 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 render backend or OS window/input handling but instead provides a highly modular, library-based approach, with 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 focuses only on the actual UI.
nk_context Struct Reference
Collaboration diagram for nk_context:

Data Fields

struct nk_input input
 
struct nk_style style
 
struct nk_buffer memory
 
struct nk_clipboard clip
 
nk_flags last_widget_state
 
enum nk_button_behavior button_behavior
 
struct nk_configuration_stacks stacks
 
float delta_time_seconds
 
struct nk_text_edit text_edit
 text editor objects are quite big because of an internal undo/redo stack. More...
 
struct nk_command_buffer overlay
 draw buffer used for overlay drawing operation like cursor
 
int build
 windows
 
int use_pool
 
struct nk_pool pool
 
struct nk_windowbegin
 
struct nk_windowend
 
struct nk_windowactive
 
struct nk_windowcurrent
 
struct nk_page_elementfreelist
 
unsigned int count
 
unsigned int seq
 

Detailed Description

Definition at line 5704 of file nuklear.h.

Field Documentation

◆ text_edit

struct nk_text_edit nk_context::text_edit

text editor objects are quite big because of an internal undo/redo stack.

Therefore it does not make sense to have one for each window for temporary use cases, so I only provide one instance for all windows. This works because the content is cleared anyway

Definition at line 5713 of file nuklear.h.


The documentation for this struct was generated from the following file: