JackUtils 0.5
Provides simplified Jack API for clients :)
Loading...
Searching...
No Matches
Data Fields
ju_varclass Struct Reference

class of variable. More...

#include <ju_vars.h>

Data Fields

void(* render )(jg_ctx_t *gui, ju_var_t *v)
 function (method) to render this variable, and maybe even process and change it with the user input :) More...
 
int(* parse )(FILE *f, ju_var_t *v)
 Parses (reads) variable from a file. More...
 
int(* write )(FILE *f, ju_var_t *v)
 Serializes (writes) variable to the file. More...
 
float widthratio
 Specifies ratio width/height (optional).
 

Detailed Description

class of variable.

Specifies rendering, parsing, and writing functions.

Field Documentation

◆ parse

int(* ju_varclass::parse) (FILE *f, ju_var_t *v)

Parses (reads) variable from a file.


WARINIG: DON'T FORGET TO PROTECT VARIABLE CHANGING WITH MUTEX! ALWAYS use '
' or EOF character as break for reading.

Parameters
fstdlib FILE
vcurrent variable
Returns
0 in case of sucessful parsing. any other number otherwise.
See also
ju_vars_lock()
ju_vars_unlock()

◆ render

void(* ju_varclass::render) (jg_ctx_t *gui, ju_var_t *v)

function (method) to render this variable, and maybe even process and change it with the user input :)

WARINIG: DON'T FORGET TO PROTECT VARIABLE CHANGING WITH MUTEX!

Parameters
guiJackGui Context
vcurrent variable
See also
ju_vars_lock()
ju_vars_unlock()

◆ write

int(* ju_varclass::write) (FILE *f, ju_var_t *v)

Serializes (writes) variable to the file.

WARINIG: DON'T FORGET TO PROTECT VARIABLE CHANGING WITH MUTEX!

WARNING: DO NOT WRITE characters '=' and '
' INTO THE FILE!

Parameters
fstdlib FILE
vcurrent variable
Returns
0 in case of sucessful serialization. any other number otherwise.
See also
ju_vars_lock()
ju_vars_unlock()

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