Struct crankstart_sys::playdate_lua
source · #[repr(C)]pub struct playdate_lua {Show 32 fields
pub addFunction: Option<unsafe extern "C" fn(f: lua_CFunction, name: *const c_char, outErr: *mut *const c_char) -> c_int>,
pub registerClass: Option<unsafe extern "C" fn(name: *const c_char, reg: *const lua_reg, vals: *const lua_val, isstatic: c_int, outErr: *mut *const c_char) -> c_int>,
pub pushFunction: Option<unsafe extern "C" fn(f: lua_CFunction)>,
pub indexMetatable: Option<unsafe extern "C" fn() -> c_int>,
pub stop: Option<unsafe extern "C" fn()>,
pub start: Option<unsafe extern "C" fn()>,
pub getArgCount: Option<unsafe extern "C" fn() -> c_int>,
pub getArgType: Option<unsafe extern "C" fn(pos: c_int, outClass: *mut *const c_char) -> LuaType>,
pub argIsNil: Option<unsafe extern "C" fn(pos: c_int) -> c_int>,
pub getArgBool: Option<unsafe extern "C" fn(pos: c_int) -> c_int>,
pub getArgInt: Option<unsafe extern "C" fn(pos: c_int) -> c_int>,
pub getArgFloat: Option<unsafe extern "C" fn(pos: c_int) -> f32>,
pub getArgString: Option<unsafe extern "C" fn(pos: c_int) -> *const c_char>,
pub getArgBytes: Option<unsafe extern "C" fn(pos: c_int, outlen: *mut usize) -> *const c_char>,
pub getArgObject: Option<unsafe extern "C" fn(pos: c_int, type_: *mut c_char, outud: *mut *mut LuaUDObject) -> *mut c_void>,
pub getBitmap: Option<unsafe extern "C" fn(pos: c_int) -> *mut LCDBitmap>,
pub getSprite: Option<unsafe extern "C" fn(pos: c_int) -> *mut LCDSprite>,
pub pushNil: Option<unsafe extern "C" fn()>,
pub pushBool: Option<unsafe extern "C" fn(val: c_int)>,
pub pushInt: Option<unsafe extern "C" fn(val: c_int)>,
pub pushFloat: Option<unsafe extern "C" fn(val: f32)>,
pub pushString: Option<unsafe extern "C" fn(str_: *const c_char)>,
pub pushBytes: Option<unsafe extern "C" fn(str_: *const c_char, len: usize)>,
pub pushBitmap: Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap)>,
pub pushSprite: Option<unsafe extern "C" fn(sprite: *mut LCDSprite)>,
pub pushObject: Option<unsafe extern "C" fn(obj: *mut c_void, type_: *mut c_char, nValues: c_int) -> *mut LuaUDObject>,
pub retainObject: Option<unsafe extern "C" fn(obj: *mut LuaUDObject) -> *mut LuaUDObject>,
pub releaseObject: Option<unsafe extern "C" fn(obj: *mut LuaUDObject)>,
pub setUserValue: Option<unsafe extern "C" fn(obj: *mut LuaUDObject, slot: c_uint)>,
pub getUserValue: Option<unsafe extern "C" fn(obj: *mut LuaUDObject, slot: c_uint) -> c_int>,
pub callFunction_deprecated: Option<unsafe extern "C" fn(name: *const c_char, nargs: c_int)>,
pub callFunction: Option<unsafe extern "C" fn(name: *const c_char, nargs: c_int, outerr: *mut *const c_char) -> c_int>,
}
Fields§
§addFunction: Option<unsafe extern "C" fn(f: lua_CFunction, name: *const c_char, outErr: *mut *const c_char) -> c_int>
§registerClass: Option<unsafe extern "C" fn(name: *const c_char, reg: *const lua_reg, vals: *const lua_val, isstatic: c_int, outErr: *mut *const c_char) -> c_int>
§pushFunction: Option<unsafe extern "C" fn(f: lua_CFunction)>
§indexMetatable: Option<unsafe extern "C" fn() -> c_int>
§stop: Option<unsafe extern "C" fn()>
§start: Option<unsafe extern "C" fn()>
§getArgCount: Option<unsafe extern "C" fn() -> c_int>
§getArgType: Option<unsafe extern "C" fn(pos: c_int, outClass: *mut *const c_char) -> LuaType>
§argIsNil: Option<unsafe extern "C" fn(pos: c_int) -> c_int>
§getArgBool: Option<unsafe extern "C" fn(pos: c_int) -> c_int>
§getArgInt: Option<unsafe extern "C" fn(pos: c_int) -> c_int>
§getArgFloat: Option<unsafe extern "C" fn(pos: c_int) -> f32>
§getArgString: Option<unsafe extern "C" fn(pos: c_int) -> *const c_char>
§getArgBytes: Option<unsafe extern "C" fn(pos: c_int, outlen: *mut usize) -> *const c_char>
§getArgObject: Option<unsafe extern "C" fn(pos: c_int, type_: *mut c_char, outud: *mut *mut LuaUDObject) -> *mut c_void>
§getBitmap: Option<unsafe extern "C" fn(pos: c_int) -> *mut LCDBitmap>
§getSprite: Option<unsafe extern "C" fn(pos: c_int) -> *mut LCDSprite>
§pushNil: Option<unsafe extern "C" fn()>
§pushBool: Option<unsafe extern "C" fn(val: c_int)>
§pushInt: Option<unsafe extern "C" fn(val: c_int)>
§pushFloat: Option<unsafe extern "C" fn(val: f32)>
§pushString: Option<unsafe extern "C" fn(str_: *const c_char)>
§pushBytes: Option<unsafe extern "C" fn(str_: *const c_char, len: usize)>
§pushBitmap: Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap)>
§pushSprite: Option<unsafe extern "C" fn(sprite: *mut LCDSprite)>
§pushObject: Option<unsafe extern "C" fn(obj: *mut c_void, type_: *mut c_char, nValues: c_int) -> *mut LuaUDObject>
§retainObject: Option<unsafe extern "C" fn(obj: *mut LuaUDObject) -> *mut LuaUDObject>
§releaseObject: Option<unsafe extern "C" fn(obj: *mut LuaUDObject)>
§setUserValue: Option<unsafe extern "C" fn(obj: *mut LuaUDObject, slot: c_uint)>
§getUserValue: Option<unsafe extern "C" fn(obj: *mut LuaUDObject, slot: c_uint) -> c_int>
§callFunction_deprecated: Option<unsafe extern "C" fn(name: *const c_char, nargs: c_int)>
§callFunction: Option<unsafe extern "C" fn(name: *const c_char, nargs: c_int, outerr: *mut *const c_char) -> c_int>
Trait Implementations§
source§impl Clone for playdate_lua
impl Clone for playdate_lua
source§fn clone(&self) -> playdate_lua
fn clone(&self) -> playdate_lua
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for playdate_lua
impl Debug for playdate_lua
source§impl Default for playdate_lua
impl Default for playdate_lua
source§fn default() -> playdate_lua
fn default() -> playdate_lua
Returns the “default value” for a type. Read more
source§impl PartialEq<playdate_lua> for playdate_lua
impl PartialEq<playdate_lua> for playdate_lua
source§fn eq(&self, other: &playdate_lua) -> bool
fn eq(&self, other: &playdate_lua) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for playdate_lua
impl Eq for playdate_lua
impl StructuralEq for playdate_lua
impl StructuralPartialEq for playdate_lua
Auto Trait Implementations§
impl RefUnwindSafe for playdate_lua
impl Send for playdate_lua
impl Sync for playdate_lua
impl Unpin for playdate_lua
impl UnwindSafe for playdate_lua
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more