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.
 
Loading...
Searching...
No Matches
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.
 
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

◆ active

struct nk_window* nk_context::active

Definition at line 5738 of file nuklear.h.

◆ begin

struct nk_window* nk_context::begin

Definition at line 5736 of file nuklear.h.

◆ build

int nk_context::build

windows

Definition at line 5733 of file nuklear.h.

Referenced by nk__begin(), nk_clear(), and nk_free().

◆ button_behavior

enum nk_button_behavior nk_context::button_behavior

Definition at line 5711 of file nuklear.h.

◆ clip

struct nk_clipboard nk_context::clip

Definition at line 5709 of file nuklear.h.

◆ count

unsigned int nk_context::count

Definition at line 5741 of file nuklear.h.

◆ current

struct nk_window* nk_context::current

Definition at line 5739 of file nuklear.h.

◆ delta_time_seconds

float nk_context::delta_time_seconds

Definition at line 5713 of file nuklear.h.

◆ end

struct nk_window* nk_context::end

Definition at line 5737 of file nuklear.h.

◆ freelist

struct nk_page_element* nk_context::freelist

Definition at line 5740 of file nuklear.h.

◆ input

struct nk_input nk_context::input

Definition at line 5706 of file nuklear.h.

◆ last_widget_state

nk_flags nk_context::last_widget_state

Definition at line 5710 of file nuklear.h.

◆ memory

struct nk_buffer nk_context::memory

Definition at line 5708 of file nuklear.h.

◆ overlay

struct nk_command_buffer nk_context::overlay

draw buffer used for overlay drawing operation like cursor

Definition at line 5730 of file nuklear.h.

Referenced by nk_clear().

◆ pool

struct nk_pool nk_context::pool

Definition at line 5735 of file nuklear.h.

◆ seq

unsigned int nk_context::seq

Definition at line 5742 of file nuklear.h.

◆ stacks

struct nk_configuration_stacks nk_context::stacks

Definition at line 5712 of file nuklear.h.

◆ style

struct nk_style nk_context::style

Definition at line 5707 of file nuklear.h.

◆ 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 5728 of file nuklear.h.

◆ use_pool

int nk_context::use_pool

Definition at line 5734 of file nuklear.h.


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