Vulkan2D
2D renderer written in C using Vulkan and SDL2
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
 
struct nk_command_buffer overlay
 
int build
 
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
 

Field Documentation

◆ build

int nk_context::build

windows

◆ overlay

struct nk_command_buffer nk_context::overlay

draw buffer used for overlay drawing operation like cursor

◆ 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


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