nngn
Loading...
Searching...
No Matches
utils.lua File Reference

Functions

function make_class (t, name, parent)
 
function Class class (_, arg)
 
function Class public (parent)
 
 setmetatable (Class, {__call=Class.class})
 
function pprint (x, pre, write)
 
function pformat (x)
 
function print_mat4 (m)
 
function get (t,...)
 
function deep_copy_values (x)
 
function map (t, f, iter)
 
function fmt_time (ns, plus)
 
function fmt_size (n)
 
function shift (i, n, inc, base)
 
function shift_table (v, t, d, inc, cmp)
 
function find (t, x)
 
function set_double_tap_interval (i) DOUBLE_TAP_INTERVAL
 
function check_double_tap (t, key, shift)
 
function reset_double_tap (key, shift)
 

Variables

 Class< const > = {}
 
 DOUBLE_TAP = {}
 
 DOUBLE_TAP_INTERVAL = 200
 
 pprint = pprint
 
 pformat = pformat
 
 print_mat4 = print_mat4
 
 get = get
 
 deep_copy_values = deep_copy_values
 
 map = map
 
 fmt_time = fmt_time
 
 fmt_size = fmt_size
 
 shift = shift
 
 shift_table = shift_table
 
 find = find
 
 get_double_tap_interval = get_double_tap_interval
 
 set_double_tap_interval = set_double_tap_interval
 
 check_double_tap = check_double_tap
 
 reset_double_tap = reset_double_tap
 

Function Documentation

◆ check_double_tap()

function check_double_tap ( ,
key  ,
shift   
)

◆ class()

function Class class ( _  ,
arg   
)

◆ deep_copy_values()

function deep_copy_values ( )

◆ find()

function find ( ,
 
)

◆ fmt_size()

function fmt_size ( n  )

◆ fmt_time()

function fmt_time ( ns  ,
plus   
)

◆ get()

function get ( ,
  ... 
)
Here is the call graph for this function:

◆ make_class()

function make_class ( ,
name  ,
parent   
)

◆ map()

function map ( ,
f  ,
iter   
)

◆ pformat()

function pformat ( )

◆ pprint()

function pprint ( ,
pre  ,
write   
)

◆ print_mat4()

function print_mat4 ( m  )

◆ public()

function Class public ( parent  )

◆ reset_double_tap()

function reset_double_tap ( key  ,
shift   
)

◆ set_double_tap_interval()

function set_double_tap_interval ( i  )

◆ setmetatable()

setmetatable ( Class  ,
{__call=Class.class  
)

◆ shift()

function shift ( i  ,
n  ,
inc  ,
base   
)

◆ shift_table()

function shift_table ( v  ,
,
,
inc  ,
cmp   
)

Variable Documentation

◆ check_double_tap

check_double_tap = check_double_tap

◆ Class< const >

Class< const > = {}

◆ deep_copy_values

deep_copy_values = deep_copy_values

◆ DOUBLE_TAP

DOUBLE_TAP = {}

◆ DOUBLE_TAP_INTERVAL

DOUBLE_TAP_INTERVAL = 200

◆ find

find = find

◆ fmt_size

fmt_size = fmt_size

◆ fmt_time

fmt_time = fmt_time

◆ get

get = get

◆ get_double_tap_interval

get_double_tap_interval = get_double_tap_interval

◆ map

map = map

◆ pformat

pformat = pformat

◆ pprint

pprint = pprint

◆ print_mat4

print_mat4 = print_mat4

◆ reset_double_tap

reset_double_tap = reset_double_tap

◆ set_double_tap_interval

set_double_tap_interval = set_double_tap_interval

◆ shift

shift = shift

◆ shift_table

shift_table = shift_table