Blender  V2.93
blank3d_gizmo.c
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2014 Blender Foundation.
17  * All rights reserved.
18  */
19 
28 #include "BKE_context.h"
29 
30 #include "ED_gizmo_library.h"
31 
32 #include "WM_api.h"
33 #include "WM_types.h"
34 
35 /* own includes */
36 
37 static void gizmo_blank_draw(const bContext *UNUSED(C), wmGizmo *UNUSED(gz))
38 {
39  /* pass */
40 }
41 
43  wmGizmo *UNUSED(gz),
44  const wmEvent *UNUSED(event))
45 {
47 }
48 
50  wmGizmo *UNUSED(gz),
51  const int UNUSED(mval[2]))
52 {
53  return 0;
54 }
55 
56 /* -------------------------------------------------------------------- */
60 static void GIZMO_GT_blank_3d(wmGizmoType *gzt)
61 {
62  /* identifiers */
63  gzt->idname = "GIZMO_GT_blank_3d";
64 
65  /* api callbacks */
66  gzt->draw = gizmo_blank_draw;
69 
70  gzt->struct_size = sizeof(wmGizmo);
71 }
72 
74 {
76 }
77 
#define UNUSED(x)
@ OPERATOR_RUNNING_MODAL
#define C
Definition: RandGen.cpp:39
struct wmGizmo wmGizmo
Definition: WM_api.h:74
static int gizmo_blank_test_select(bContext *UNUSED(C), wmGizmo *UNUSED(gz), const int UNUSED(mval[2]))
Definition: blank3d_gizmo.c:49
void ED_gizmotypes_blank_3d(void)
Definition: blank3d_gizmo.c:73
static void gizmo_blank_draw(const bContext *UNUSED(C), wmGizmo *UNUSED(gz))
Definition: blank3d_gizmo.c:37
static void GIZMO_GT_blank_3d(wmGizmoType *gzt)
Definition: blank3d_gizmo.c:60
static int gizmo_blank_invoke(bContext *UNUSED(C), wmGizmo *UNUSED(gz), const wmEvent *UNUSED(event))
Definition: blank3d_gizmo.c:42
wmGizmoFnDraw draw
const char * idname
wmGizmoFnTestSelect test_select
wmGizmoFnInvoke invoke
void WM_gizmotype_append(void(*gtfunc)(struct wmGizmoType *))