Blender  V3.3
blank3d_gizmo.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2014 Blender Foundation. All rights reserved. */
3 
12 #include "BKE_context.h"
13 
14 #include "ED_gizmo_library.h"
15 
16 #include "WM_api.h"
17 #include "WM_types.h"
18 
19 /* own includes */
20 
21 static void gizmo_blank_draw(const bContext *UNUSED(C), wmGizmo *UNUSED(gz))
22 {
23  /* pass */
24 }
25 
27  wmGizmo *UNUSED(gz),
28  const wmEvent *UNUSED(event))
29 {
31 }
32 
34  wmGizmo *UNUSED(gz),
35  const int UNUSED(mval[2]))
36 {
37  return 0;
38 }
39 
40 /* -------------------------------------------------------------------- */
44 static void GIZMO_GT_blank_3d(wmGizmoType *gzt)
45 {
46  /* identifiers */
47  gzt->idname = "GIZMO_GT_blank_3d";
48 
49  /* api callbacks */
50  gzt->draw = gizmo_blank_draw;
53 
54  gzt->struct_size = sizeof(wmGizmo);
55 }
56 
58 {
60 }
61 
#define UNUSED(x)
@ OPERATOR_RUNNING_MODAL
#define C
Definition: RandGen.cpp:25
struct wmGizmo wmGizmo
Definition: WM_api.h:68
static int gizmo_blank_test_select(bContext *UNUSED(C), wmGizmo *UNUSED(gz), const int UNUSED(mval[2]))
Definition: blank3d_gizmo.c:33
void ED_gizmotypes_blank_3d(void)
Definition: blank3d_gizmo.c:57
static void gizmo_blank_draw(const bContext *UNUSED(C), wmGizmo *UNUSED(gz))
Definition: blank3d_gizmo.c:21
static void GIZMO_GT_blank_3d(wmGizmoType *gzt)
Definition: blank3d_gizmo.c:44
static int gizmo_blank_invoke(bContext *UNUSED(C), wmGizmo *UNUSED(gz), const wmEvent *UNUSED(event))
Definition: blank3d_gizmo.c:26
wmGizmoFnDraw draw
const char * idname
wmGizmoFnTestSelect test_select
wmGizmoFnInvoke invoke
void WM_gizmotype_append(void(*gtfunc)(struct wmGizmoType *))
Definition: wm_gizmo_type.c:93