Blender  V2.93
wm_gizmo_wmapi.h
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) 2016 Blender Foundation.
17  * All rights reserved.
18  */
19 
31 #pragma once
32 
34 struct wmEventHandler_Op;
35 struct wmGizmoMap;
36 struct wmOperatorType;
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 /* -------------------------------------------------------------------- */
43 /* wmGizmo */
44 
45 /* wm_gizmo_type.c, for init/exit */
46 void wm_gizmotype_free(void);
47 void wm_gizmotype_init(void);
48 
49 /* wm_gizmogroup_type.c, for init/exit */
50 void wm_gizmogrouptype_free(void);
51 void wm_gizmogrouptype_init(void);
52 
53 /* -------------------------------------------------------------------- */
54 /* wmGizmoGroup */
55 
58 
59 bool wm_gizmogroup_is_any_selected(const struct wmGizmoGroup *gzgroup);
60 
61 /* -------------------------------------------------------------------- */
62 /* wmGizmoMap */
63 
64 void wm_gizmomap_remove(struct wmGizmoMap *gzmap);
65 
66 void wm_gizmos_keymap(struct wmKeyConfig *keyconf);
67 
69  struct wmEvent *event,
70  struct wmEventHandler_Op *handler);
73 
75  bContext *C,
76  const struct wmEvent *event,
77  int *r_part);
78 bool wm_gizmomap_highlight_set(struct wmGizmoMap *gzmap,
79  const bContext *C,
80  struct wmGizmo *gz,
81  int part);
82 struct wmGizmo *wm_gizmomap_highlight_get(struct wmGizmoMap *gzmap);
83 void wm_gizmomap_modal_set(struct wmGizmoMap *gzmap,
84  bContext *C,
85  struct wmGizmo *gz,
86  const struct wmEvent *event,
87  bool enable);
88 
89 struct wmGizmo *wm_gizmomap_modal_get(struct wmGizmoMap *gzmap);
90 struct wmGizmo **wm_gizmomap_selected_get(wmGizmoMap *gzmap, int *r_selected_len);
92 
93 /* -------------------------------------------------------------------- */
94 /* wmGizmoMapType */
95 
96 void wm_gizmomaptypes_free(void);
97 
98 #ifdef __cplusplus
99 }
100 #endif
#define C
Definition: RandGen.cpp:39
wmOperatorType * ot
Definition: wm_files.c:3156
void wm_gizmomaptypes_free(void)
void wm_gizmos_keymap(struct wmKeyConfig *keyconf)
void wm_gizmomap_modal_set(struct wmGizmoMap *gzmap, bContext *C, struct wmGizmo *gz, const struct wmEvent *event, bool enable)
struct wmGizmo * wm_gizmomap_highlight_find(struct wmGizmoMap *gzmap, bContext *C, const struct wmEvent *event, int *r_part)
void GIZMOGROUP_OT_gizmo_tweak(struct wmOperatorType *ot)
bool wm_gizmomap_highlight_set(struct wmGizmoMap *gzmap, const bContext *C, struct wmGizmo *gz, int part)
Definition: wm_gizmo_map.c:999
void wm_gizmogrouptype_free(void)
bool wm_gizmogroup_is_any_selected(const struct wmGizmoGroup *gzgroup)
void wm_gizmomap_handler_context_gizmo(bContext *C, struct wmEventHandler_Gizmo *handler)
void wm_gizmotype_init(void)
struct wmGizmo * wm_gizmomap_highlight_get(struct wmGizmoMap *gzmap)
void wm_gizmotype_free(void)
void wm_gizmomap_handler_context_op(bContext *C, struct wmEventHandler_Op *handler)
Definition: wm_gizmo_map.c:950
void GIZMOGROUP_OT_gizmo_select(struct wmOperatorType *ot)
struct wmGizmo ** wm_gizmomap_selected_get(wmGizmoMap *gzmap, int *r_selected_len)
struct ListBase * wm_gizmomap_groups_get(wmGizmoMap *gzmap)
struct wmGizmo * wm_gizmomap_modal_get(struct wmGizmoMap *gzmap)
void wm_gizmomap_remove(struct wmGizmoMap *gzmap)
Definition: wm_gizmo_map.c:204
void wm_gizmomaps_handled_modal_update(bContext *C, struct wmEvent *event, struct wmEventHandler_Op *handler)
Definition: wm_gizmo_map.c:810
void wm_gizmogrouptype_init(void)