Struct machinery_api::plugins::creation_graph::CreationGraphPreviewI[][src]

#[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: StrhashTcreate: 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

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.