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_buffer Struct Reference
Collaboration diagram for nk_buffer:

Data Fields

struct nk_buffer_marker marker [NK_BUFFER_MAX]
 
struct nk_allocator pool
 !< buffer marker to free a buffer to a certain offset
 
enum nk_allocation_type type
 !< allocator callback for dynamic buffers
 
struct nk_memory memory
 !< memory management type
 
float grow_factor
 !< memory and size of the current memory block
 
nk_size allocated
 !< growing factor for dynamic memory management
 
nk_size needed
 !< total amount of memory allocated
 
nk_size calls
 !< totally consumed memory given that enough memory is present
 
nk_size size
 !< number of allocation calls
 

Detailed Description

Definition at line 4189 of file nuklear.h.

Field Documentation

◆ allocated

nk_size nk_buffer::allocated

!< growing factor for dynamic memory management

Definition at line 4195 of file nuklear.h.

Referenced by nk__next().

◆ calls

nk_size nk_buffer::calls

!< totally consumed memory given that enough memory is present

Definition at line 4197 of file nuklear.h.

Referenced by nk_clear().

◆ grow_factor

float nk_buffer::grow_factor

!< memory and size of the current memory block

Definition at line 4194 of file nuklear.h.

◆ marker

struct nk_buffer_marker nk_buffer::marker[NK_BUFFER_MAX]

Definition at line 4190 of file nuklear.h.

◆ memory

struct nk_memory nk_buffer::memory

!< memory management type

Definition at line 4193 of file nuklear.h.

Referenced by nk__begin(), nk__next(), and nk_init_custom().

◆ needed

nk_size nk_buffer::needed

!< total amount of memory allocated

Definition at line 4196 of file nuklear.h.

◆ pool

struct nk_allocator nk_buffer::pool

!< buffer marker to free a buffer to a certain offset

Definition at line 4191 of file nuklear.h.

Referenced by nk_init_custom().

◆ size

nk_size nk_buffer::size

!< number of allocation calls

Definition at line 4198 of file nuklear.h.

◆ type

enum nk_allocation_type nk_buffer::type

!< allocator callback for dynamic buffers

Definition at line 4192 of file nuklear.h.

Referenced by nk_init_custom().


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