Blender
V5.3
source
blender
blenlib
BLI_timer.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2018 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
7
#include "
BLI_sys_types.hh
"
8
9
namespace
blender
{
10
14
20
typedef
double (*
BLI_timer_func
)(
uintptr_t
uuid,
void
*user_data);
21
typedef
void (*
BLI_timer_data_free
)(
uintptr_t
uuid,
void
*user_data);
22
23
/* `func(...) < 0`: The timer will be removed.
24
* `func(...) >= 0`: The function will be called again in that many seconds. */
25
void
BLI_timer_register
(
uintptr_t
uuid,
26
BLI_timer_func
func,
27
void
*user_data,
28
BLI_timer_data_free
user_data_free,
29
double
first_interval,
30
bool
persistent);
31
32
bool
BLI_timer_is_registered
(
uintptr_t
uuid);
33
35
bool
BLI_timer_unregister
(
uintptr_t
uuid);
36
38
void
BLI_timer_execute
();
39
40
void
BLI_timer_free
();
41
42
/* This function is to be called next to BKE_CB_EVT_LOAD_PRE, to make sure the module
43
* is properly configured for the new file. */
44
void
BLI_timer_on_file_load
();
45
46
}
// namespace blender
BLI_sys_types.hh
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::BLI_timer_func
double(*) BLI_timer_func(uintptr_t uuid, void *user_data)
Definition
BLI_timer.hh:20
blender::BLI_timer_free
void BLI_timer_free()
Definition
BLI_timer.cc:126
blender::BLI_timer_is_registered
bool BLI_timer_is_registered(uintptr_t uuid)
Definition
BLI_timer.cc:75
blender::BLI_timer_data_free
void(*) BLI_timer_data_free(uintptr_t uuid, void *user_data)
Definition
BLI_timer.hh:21
blender::BLI_timer_on_file_load
void BLI_timer_on_file_load()
Definition
BLI_timer.cc:144
blender::BLI_timer_register
void BLI_timer_register(uintptr_t uuid, BLI_timer_func func, void *user_data, BLI_timer_data_free user_data_free, double first_interval, bool persistent)
Definition
BLI_timer.cc:36
blender::uintptr_t
_W64 unsigned int uintptr_t
Definition
BKE_text.h:120
blender::BLI_timer_unregister
bool BLI_timer_unregister(uintptr_t uuid)
Definition
BLI_timer.cc:63
blender::BLI_timer_execute
void BLI_timer_execute()
Definition
BLI_timer.cc:120
Generated on
for Blender by
doxygen
1.18.0