diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-27 09:46:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-27 10:01:11 +0300 |
commit | f820c45534c653c7a2baa799b99067710def136b (patch) | |
tree | 7f08c2e1fa8e5aa2dbdbe38c64a1684495df124f /source/blender/windowmanager/WM_api.h | |
parent | b254905c384d87764cd92ed631f86f3f97caa4de (diff) |
WM: add checker_interval utility functions
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 9d1f4457013..3f89140888b 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -302,6 +302,16 @@ void WM_operator_properties_select_all(struct wmOperatorType *ot); void WM_operator_properties_select_action(struct wmOperatorType *ot, int default_action); void WM_operator_properties_select_action_simple(struct wmOperatorType *ot, int default_action); void WM_operator_properties_select_random(struct wmOperatorType *ot); +struct CheckerIntervalParams { + int nth; /* bypass when set to zero */ + int skip; + int offset; +}; +void WM_operator_properties_checker_interval(struct wmOperatorType *ot, bool nth_can_disable); +void WM_operator_properties_checker_interval_from_op( + struct wmOperator *op, struct CheckerIntervalParams *op_params); +bool WM_operator_properties_checker_interval_test( + const struct CheckerIntervalParams *op_params, int depth); /* MOVE THIS SOMEWHERE ELSE */ |