Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_anim_api.h
| Show First 20 Lines • Show All 445 Lines • ▼ Show 20 Lines | |||||
| /* channel toggle-buttons */ | /* channel toggle-buttons */ | ||||
| #define NLACHANNEL_BUTTON_WIDTH (0.8f * U.widget_unit) | #define NLACHANNEL_BUTTON_WIDTH (0.8f * U.widget_unit) | ||||
| /* ---------------- API -------------------- */ | /* ---------------- API -------------------- */ | ||||
| /* Obtain list of filtered Animation channels to operate on. | /* Obtain list of filtered Animation channels to operate on. | ||||
| * Returns the number of channels in the list | * Returns the number of channels in the list | ||||
| */ | */ | ||||
| typedef size_t (*animdata_filter_cb_t)(bAnimListElem *ale, void *userdata, bool *r_halt); | |||||
| size_t ANIM_animdata_filter(bAnimContext *ac, | size_t ANIM_animdata_filter(bAnimContext *ac, | ||||
| ListBase *anim_data, | ListBase *anim_data, | ||||
| eAnimFilter_Flags filter_mode, | eAnimFilter_Flags filter_mode, | ||||
| void *data, | void *data, | ||||
| eAnimCont_Types datatype); | eAnimCont_Types datatype); | ||||
| size_t ANIM_animdata_filter_iter(bAnimContext *ac, | |||||
| eAnimFilter_Flags filter_mode, | |||||
| void *data, | |||||
| eAnimCont_Types datatype, | |||||
| animdata_filter_cb_t animdata_filter_cb, | |||||
| void *callback_data); | |||||
| /* Obtain current anim-data context from Blender Context info. | /* Obtain current anim-data context from Blender Context info. | ||||
| * Returns whether the operation was successful. | * Returns whether the operation was successful. | ||||
| */ | */ | ||||
| bool ANIM_animdata_get_context(const struct bContext *C, bAnimContext *ac); | bool ANIM_animdata_get_context(const struct bContext *C, bAnimContext *ac); | ||||
| /* Obtain current anim-data context (from Animation Editor) given | /* Obtain current anim-data context (from Animation Editor) given | ||||
| * that Blender Context info has already been set. | * that Blender Context info has already been set. | ||||
| ▲ Show 20 Lines • Show All 410 Lines • Show Last 20 Lines | |||||