TinkeCell API  1.0.0
C/Python/Octave/Ruby API
Functions
Input and Output

display dialogs or get user inputs More...

Functions

TCAPIEXPORT void tc_print (const char *text)
 show text in the output window
TCAPIEXPORT void tc_openUrl (const char *url)
 open any file or URL using the default app
TCAPIEXPORT void tc_errorReport (const char *text)
 show error text in the output window
TCAPIEXPORT void tc_printMatrix (tc_matrix data)
 show table in the output window
TCAPIEXPORT void tc_printFile (const char *filename)
 show file contents in the output window
TCAPIEXPORT void tc_clear ()
 cleat the contents in the output window
TCAPIEXPORT void tc_createInputWindowForScript (tc_matrix input, const char *title, const char *functionname)
 create an input window that will call a function in the console window with the arguments from the input matrix
TCAPIEXPORT void tc_createInputWindow (tc_matrix input, const char *title, void(*f)(tc_matrix))
 create an input window that will call a function
TCAPIEXPORT void tc_addInputWindowOptions (const char *title, int i, int j, tc_strings options)
 add options to an existing input window at the i,j-th cell. Options will appear in a list
TCAPIEXPORT void tc_addInputWindowCheckbox (const char *title, int i, int j)
 add a yes or no type of option to an existing input window at the i,j-th cell
TCAPIEXPORT void tc_openNewWindow (const char *title)
 open a new graphics window

Detailed Description

display dialogs or get user inputs


Function Documentation

TCAPIEXPORT void tc_addInputWindowCheckbox ( const char *  title,
int  i,
int  j 
)

add a yes or no type of option to an existing input window at the i,j-th cell

Parameters:
introw number
intcolumn number
TCAPIEXPORT void tc_addInputWindowOptions ( const char *  title,
int  i,
int  j,
tc_strings  options 
)

add options to an existing input window at the i,j-th cell. Options will appear in a list

Parameters:
stringname of an input window that was just created
introw number
intcolumn number
tc_stringplace these options (drop-down meny) at the (row,column) location of the table
TCAPIEXPORT void tc_createInputWindow ( tc_matrix  input,
const char *  title,
void(*)(tc_matrix f 
)

create an input window that will call a function

Parameters:
tc_matrixinput window's arguments a default values
stringname of this program
void*pointer to a 1-argument function that takes tc_matrix argument
TCAPIEXPORT void tc_createInputWindowForScript ( tc_matrix  input,
const char *  title,
const char *  functionname 
)

create an input window that will call a function in the console window with the arguments from the input matrix

Parameters:
tc_matrixinput window's arguments a default values
stringname of the program
stringname of function
TCAPIEXPORT void tc_errorReport ( const char *  text)

show error text in the output window

Parameters:
stringerror message
TCAPIEXPORT void tc_openNewWindow ( const char *  title)

open a new graphics window

Parameters:
stringtitle of the new window
TCAPIEXPORT void tc_openUrl ( const char *  url)

open any file or URL using the default app

Parameters:
stringfile name
TCAPIEXPORT void tc_print ( const char *  text)

show text in the output window

Parameters:
stringtext message
TCAPIEXPORT void tc_printFile ( const char *  filename)

show file contents in the output window

Parameters:
stringfile name
TCAPIEXPORT void tc_printMatrix ( tc_matrix  data)

show table in the output window

Parameters:
tc_matrixtable
 All Data Structures