Struct machinery_api::plugins::editor_views::AssetLabelApi[][src]

#[repr(C)]
pub struct AssetLabelApi {
Show 13 fields pub all_labels: Option<unsafe extern "C" fn(labels: *mut AssetLabelsT, tt: *const TheTruthO, asset_root: TtIdT)>, pub labels_of_asset: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, asset_labels: *const AssetLabelsT, out_labels: *mut AssetLabelsT)>, pub label_uuids_of_asset: Option<unsafe extern "C" fn(tt: *const TheTruthO, asset: TtIdT, ta: *mut TempAllocatorI) -> *mut u64>, pub create: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, directory: TtIdT, label: *const c_char, undo_scope: TtUndoScopeT) -> AssetLabelUuidT>, pub add: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, label: AssetLabelUuidT, undo_scope: TtUndoScopeT)>, pub remove: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, label: AssetLabelUuidT, undo_scope: TtUndoScopeT)>, pub rename: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, label: AssetLabelUuidT, new_label_name: *const c_char, undo_scope: TtUndoScopeT)>, pub assets_with_label: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, label: AssetLabelUuidT, ta: *mut TempAllocatorI) -> *mut TtIdT>, pub assets_with_all_labels: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, labels: *const AssetLabelBitflagT, ta: *mut TempAllocatorI) -> *mut TtIdT>, pub assets_with_any_label: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, labels: *const AssetLabelBitflagT, ta: *mut TempAllocatorI) -> *mut TtIdT>, pub toggle_bitflags: Option<unsafe extern "C" fn(labels: *const AssetLabelsT, bitflag: *mut AssetLabelBitflagT, labels_uuid: *const AssetLabelUuidT, num_labels: u32)>, pub matches_all: Option<unsafe extern "C" fn(asset_bitflag: *const AssetLabelBitflagT, filter_bitflag: *const AssetLabelBitflagT) -> bool>, pub matches_any: Option<unsafe extern "C" fn(asset_bitflag: *const AssetLabelBitflagT, filter_bitflag: *const AssetLabelBitflagT) -> bool>,
}

Fields

all_labels: Option<unsafe extern "C" fn(labels: *mut AssetLabelsT, tt: *const TheTruthO, asset_root: TtIdT)>labels_of_asset: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, asset_labels: *const AssetLabelsT, out_labels: *mut AssetLabelsT)>label_uuids_of_asset: Option<unsafe extern "C" fn(tt: *const TheTruthO, asset: TtIdT, ta: *mut TempAllocatorI) -> *mut u64>create: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, directory: TtIdT, label: *const c_char, undo_scope: TtUndoScopeT) -> AssetLabelUuidT>add: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, label: AssetLabelUuidT, undo_scope: TtUndoScopeT)>remove: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, label: AssetLabelUuidT, undo_scope: TtUndoScopeT)>rename: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, label: AssetLabelUuidT, new_label_name: *const c_char, undo_scope: TtUndoScopeT)>assets_with_label: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, label: AssetLabelUuidT, ta: *mut TempAllocatorI) -> *mut TtIdT>assets_with_all_labels: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, labels: *const AssetLabelBitflagT, ta: *mut TempAllocatorI) -> *mut TtIdT>assets_with_any_label: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset_root: TtIdT, labels: *const AssetLabelBitflagT, ta: *mut TempAllocatorI) -> *mut TtIdT>toggle_bitflags: Option<unsafe extern "C" fn(labels: *const AssetLabelsT, bitflag: *mut AssetLabelBitflagT, labels_uuid: *const AssetLabelUuidT, num_labels: u32)>matches_all: Option<unsafe extern "C" fn(asset_bitflag: *const AssetLabelBitflagT, filter_bitflag: *const AssetLabelBitflagT) -> bool>matches_any: Option<unsafe extern "C" fn(asset_bitflag: *const AssetLabelBitflagT, filter_bitflag: *const AssetLabelBitflagT) -> bool>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.