Nuklear
Minimal-state, immediate-mode graphical user interface toolkit written in ANSI C.
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_rect display_bounds
 surface nuklear is drawn into, in widget/mouse space.
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_window * begin
struct nk_window * end
struct nk_window * active
struct nk_window * current
struct nk_page_element * freelist
unsigned int count
unsigned int seq

Detailed Description

Definition at line 5843 of file nuklear.h.

Field Documentation

◆ active

struct nk_window* nk_context::active

Definition at line 5880 of file nuklear.h.

◆ begin

struct nk_window* nk_context::begin

Definition at line 5878 of file nuklear.h.

◆ build

int nk_context::build

windows

Definition at line 5875 of file nuklear.h.

◆ button_behavior

enum nk_button_behavior nk_context::button_behavior

Definition at line 5850 of file nuklear.h.

◆ clip

struct nk_clipboard nk_context::clip

Definition at line 5848 of file nuklear.h.

◆ count

unsigned int nk_context::count

Definition at line 5883 of file nuklear.h.

◆ current

struct nk_window* nk_context::current

Definition at line 5881 of file nuklear.h.

◆ delta_time_seconds

float nk_context::delta_time_seconds

Definition at line 5852 of file nuklear.h.

◆ display_bounds

struct nk_rect nk_context::display_bounds

surface nuklear is drawn into, in widget/mouse space.

w == 0 or h == 0 means unset (popup fitting disabled).

Definition at line 5855 of file nuklear.h.

◆ end

struct nk_window* nk_context::end

Definition at line 5879 of file nuklear.h.

◆ freelist

struct nk_page_element* nk_context::freelist

Definition at line 5882 of file nuklear.h.

◆ input

struct nk_input nk_context::input

Definition at line 5845 of file nuklear.h.

◆ last_widget_state

nk_flags nk_context::last_widget_state

Definition at line 5849 of file nuklear.h.

◆ memory

struct nk_buffer nk_context::memory

Definition at line 5847 of file nuklear.h.

◆ overlay

struct nk_command_buffer nk_context::overlay

draw buffer used for overlay drawing operation like cursor

Definition at line 5872 of file nuklear.h.

◆ pool

struct nk_pool nk_context::pool

Definition at line 5877 of file nuklear.h.

◆ seq

unsigned int nk_context::seq

Definition at line 5884 of file nuklear.h.

◆ stacks

struct nk_configuration_stacks nk_context::stacks

Definition at line 5851 of file nuklear.h.

◆ style

struct nk_style nk_context::style

Definition at line 5846 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 5870 of file nuklear.h.

◆ use_pool

int nk_context::use_pool

Definition at line 5876 of file nuklear.h.