WM: add wmGenericUserData utility struct

Useful to have a generic user data with an optional custom free function,
use for wmGesture.
This commit is contained in:
2019-05-20 15:06:06 +10:00
parent 8f73559355
commit c09f461e04
6 changed files with 37 additions and 17 deletions

View File

@@ -67,6 +67,7 @@ struct wmMsgSubscribeValue;
struct wmOperator;
struct wmOperatorType;
struct wmPaintCursor;
struct wmGenericUserData;
#ifdef WITH_INPUT_NDOF
struct wmNDOFMotionData;
@@ -795,6 +796,9 @@ void WM_tooltip_init(struct bContext *C, struct wmWindow *win);
void WM_tooltip_refresh(struct bContext *C, struct wmWindow *win);
double WM_tooltip_time_closed(void);
/* wmGenericUserData */
void WM_generic_user_data_free(struct wmGenericUserData *user_data);
#ifdef __cplusplus
}
#endif