Modules§
Macros§
- borrow_
string - Convert a borrowed C string (const char *) into a Rust &str.
- borrow_
var - simple Borrow a Var.
- create_
raw_ string - Create a raw string from &str.
- free_
raw_ string - Free a raw sring
- own_
string - Convert a owned C string (i.e. owned by us now.) into a Rust String.
- own_var
- Own a Var.
- pxs_
debug
Functions§
- pxs_
add_ submod - Add a Module to a Module
- pxs_
addfunc - Add a callback to a module.
- pxs_
addmod - Add the module finally to the runtime.
- pxs_
addobject - Add a object to a Module.
- pxs_
addvar - Add a Varible to a module.
- pxs_
call - Call a method within a specifed runtime.
- pxs_
clearstate - Clear the current threads state for all languages.
- pxs_
eval - Evaluate code. This will return a pxs_Var.
- pxs_
execlua - Execute some lua code. Will return a String, an empty string means that the code executed succesffuly
- pxs_
execpython - Execute some Python code. Will return a String, an empty string means that the code executed successfully.
- pxs_
finalize - Finalize the PixelScript runtime.
- pxs_
freemod - Optionally free a module if you changed your mind.
- pxs_
freestr - Free the string created by the pixelscript library
- pxs_
freevar - Free a PixelScript var.
- pxs_
getbool - Get a Bool
- pxs_
getfloat - Get a float (f64)
- pxs_
gethost - Get the pointer of the Host Object
- pxs_
getint - Get a int (i64) from a var.
- pxs_
getstring - Get a String
- pxs_
getuint - Get a uint (u64)
- pxs_
host_ fromidx - Call the opaque pointer of a object based on it’s idx from
pxs_getobjectThis should only be used when derefing a passed in argument. Forselfusepxs_listget(args, 1)andpxs_gethost. - pxs_
initialize - Initialize the PixelScript runtime.
- pxs_
listadd - Add a item to a pxs_VarList.
- pxs_
listget - Get a item from a pxs_VarList.
- pxs_
listlen - Get length of a pxs_VarList.
- pxs_
listset - Set a item at a specific index in a pxs_VarList.
- pxs_
newbool - Create a new variable bool.
- pxs_
newcopy - Copy the pxs_Var.
- pxs_
newfloat - Create a new variable float. (f64)
- pxs_
newhost - Make a new HostObject var.
- pxs_
newint - Create a new variable int. (i64)
- pxs_
newlist - Create a new pxs_VarList.
- pxs_
newmod - Create a new pixelscript Module.
- pxs_
newnull - Make a new Null var.
- pxs_
newobject - Create a new object.
- pxs_
newstring - Make a new Var string.
- pxs_
newuint - Create a new variable uint. (u64)
- pxs_
object_ addfunc - Add a callback to a object.
- pxs_
object_ callrt - Call a function on a object, and use a Enum for runtime rather than a var.
- pxs_
objectcall - Object call.
- pxs_
objectget - Call a objects getter.
- pxs_
objectset - Call a objects setter.
- pxs_
set_ dirreader - Set a function for reading a directory.
- pxs_
set_ filereader - Set a function for reading a file.
- pxs_
set_ filewriter - Set a function for writing a file.
- pxs_
startthread - Tells PixelScript that we are in a new thread.
- pxs_
stopthread - Tells PixelScript that we just stopped the most recent thread.
- pxs_
tostring - Call a ToString method on this Var. If already a string, it won’t call it.
- pxs_
varcall - Call a
pxs_Vars function. - pxs_
varis - Check if a variable is of a type.
- pxs_
version - Current pixelscript version.