Blender V5.3
ANIM_action_iterators.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#pragma once
12
13#include "BLI_function_ref.hh"
14#include "DNA_action_types.h"
15
16namespace blender {
17
18struct FCurve;
19struct PointerRNA;
20struct PropertyRNA;
21namespace animrig {
22class Action;
23class Layer;
24class Strip;
25class Channelbag;
26} // namespace animrig
27
28namespace animrig {
29
31
36void foreach_fcurve_in_action(Action &action, FunctionRef<void(FCurve &fcurve)> callback);
37
49 slot_handle_t handle,
50 FunctionRef<void(FCurve &fcurve)> callback);
51
56 slot_handle_t handle,
57 FunctionRef<void(FCurve &fcurve)> callback);
58
75 const ID &animated_id, FunctionRef<bool(Action &action, slot_handle_t slot_handle)> callback);
76
92 ID &animated_id,
93 FunctionRef<bool(ID &animated_id,
94 bAction *&action_ptr_ref,
95 slot_handle_t &slot_handle_ref,
96 char *last_slot_identifier)> callback);
97
114 FunctionRef<bool(ID &animated_id,
115 bAction *action,
116 PointerRNA &action_slot_owner_ptr,
117 PropertyRNA &action_slot_prop,
118 char *last_slot_identifier)> callback);
119
120} // namespace animrig
121} // namespace blender
void foreach_fcurve_in_action_slot(Action &action, slot_handle_t handle, FunctionRef< void(FCurve &fcurve)> callback)
decltype(blender::ActionSlot::handle) slot_handle_t
bool foreach_action_slot_use(const ID &animated_id, FunctionRef< bool(Action &action, slot_handle_t slot_handle)> callback)
void foreach_fcurve_in_action(Action &action, FunctionRef< void(FCurve &fcurve)> callback)
bool foreach_action_slot_use_with_rna(ID &animated_id, FunctionRef< bool(ID &animated_id, bAction *action, PointerRNA &action_slot_owner_ptr, PropertyRNA &action_slot_prop, char *last_slot_identifier)> callback)
void foreach_fcurve_in_action_slot_editable(Action &action, slot_handle_t handle, FunctionRef< void(FCurve &fcurve)> callback)
bool foreach_action_slot_use_with_references(ID &animated_id, FunctionRef< bool(ID &animated_id, bAction *&action_ptr_ref, slot_handle_t &slot_handle_ref, char *last_slot_identifier)> callback)
BMesh Iterators.