Blender V5.0
blank3d_gizmo.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2014 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
12
13#include "ED_gizmo_library.hh"
14
15#include "WM_api.hh"
16#include "WM_types.hh"
17
18/* own includes */
19
20static void gizmo_blank_draw(const bContext * /*C*/, wmGizmo * /*gz*/)
21{
22 /* pass */
23}
24
26 wmGizmo * /*gz*/,
27 const wmEvent * /*event*/)
28{
30}
31
32static int gizmo_blank_test_select(bContext * /*C*/, wmGizmo * /*gz*/, const int /*mval*/[2])
33{
34 return 0;
35}
36
37/* -------------------------------------------------------------------- */
40
42{
43 /* identifiers */
44 gzt->idname = "GIZMO_GT_blank_3d";
45
46 /* API callbacks. */
50
51 gzt->struct_size = sizeof(wmGizmo);
52}
53
58
@ OPERATOR_RUNNING_MODAL
static wmOperatorStatus gizmo_blank_invoke(bContext *, wmGizmo *, const wmEvent *)
void ED_gizmotypes_blank_3d()
static int gizmo_blank_test_select(bContext *, wmGizmo *, const int[2])
static void GIZMO_GT_blank_3d(wmGizmoType *gzt)
static void gizmo_blank_draw(const bContext *, wmGizmo *)
wmGizmoFnDraw draw
const char * idname
wmGizmoFnTestSelect test_select
wmGizmoFnInvoke invoke
void WM_gizmotype_append(void(*gtfunc)(wmGizmoType *))