#[repr(C)]pub struct CreationGraphPreviewI {
pub output_name: StrhashT,
pub create: Option<unsafe extern "C" fn(allocator: *mut AllocatorI, data: *const c_void) -> *mut CreationGraphPreviewO>,
pub destroy: Option<unsafe extern "C" fn(inst: *mut CreationGraphPreviewO, allocator: *mut AllocatorI)>,
pub render: Option<unsafe extern "C" fn(inst: *mut CreationGraphPreviewO, tt: *mut TheTruthO, asset: TtIdT, args: *const RenderArgsT)>,
pub ui: Option<unsafe extern "C" fn(inst: *mut CreationGraphPreviewO, args: *const AssetPreviewApiUiArgsT)>,
pub create_entity: Option<unsafe extern "C" fn(inst: *mut CreationGraphPreviewO, tt: *mut TheTruthO, asset: TtIdT, entity_ctx: *mut EntityContextO, result: *mut EntityT)>,
pub toolbars: Option<unsafe extern "C" fn(inst: *mut CreationGraphPreviewO, ta: *mut TempAllocatorI, args: *const AssetPreviewApiUiArgsT) -> *mut ToolbarI>,
}Fields§
§output_name: StrhashT§create: Option<unsafe extern "C" fn(allocator: *mut AllocatorI, data: *const c_void) -> *mut CreationGraphPreviewO>§destroy: Option<unsafe extern "C" fn(inst: *mut CreationGraphPreviewO, allocator: *mut AllocatorI)>§render: Option<unsafe extern "C" fn(inst: *mut CreationGraphPreviewO, tt: *mut TheTruthO, asset: TtIdT, args: *const RenderArgsT)>§ui: Option<unsafe extern "C" fn(inst: *mut CreationGraphPreviewO, args: *const AssetPreviewApiUiArgsT)>§create_entity: Option<unsafe extern "C" fn(inst: *mut CreationGraphPreviewO, tt: *mut TheTruthO, asset: TtIdT, entity_ctx: *mut EntityContextO, result: *mut EntityT)>§toolbars: Option<unsafe extern "C" fn(inst: *mut CreationGraphPreviewO, ta: *mut TempAllocatorI, args: *const AssetPreviewApiUiArgsT) -> *mut ToolbarI>Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreationGraphPreviewI
impl RefUnwindSafe for CreationGraphPreviewI
impl Send for CreationGraphPreviewI
impl Sync for CreationGraphPreviewI
impl Unpin for CreationGraphPreviewI
impl UnwindSafe for CreationGraphPreviewI
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