Blender  V3.3
wm_gizmo_wmapi.h File Reference

Go to the source code of this file.

Functions

#wmGizmo
void wm_gizmotype_free (void)
 
void wm_gizmotype_init (void)
 
void wm_gizmogrouptype_free (void)
 
void wm_gizmogrouptype_init (void)
 
#wmGizmoGroup
void GIZMOGROUP_OT_gizmo_select (struct wmOperatorType *ot)
 
void GIZMOGROUP_OT_gizmo_tweak (struct wmOperatorType *ot)
 
bool wm_gizmogroup_is_any_selected (const struct wmGizmoGroup *gzgroup)
 
#wmGizmoMap
void wm_gizmomap_remove (struct wmGizmoMap *gzmap)
 
void wm_gizmos_keymap (struct wmKeyConfig *keyconf)
 
void wm_gizmomaps_handled_modal_update (bContext *C, struct wmEvent *event, struct wmEventHandler_Op *handler)
 
void wm_gizmomap_handler_context_op (bContext *C, struct wmEventHandler_Op *handler)
 
void wm_gizmomap_handler_context_gizmo (bContext *C, struct wmEventHandler_Gizmo *handler)
 
struct wmGizmowm_gizmomap_highlight_find (struct wmGizmoMap *gzmap, bContext *C, const struct wmEvent *event, int *r_part)
 
bool wm_gizmomap_highlight_set (struct wmGizmoMap *gzmap, const bContext *C, struct wmGizmo *gz, int part)
 
struct wmGizmowm_gizmomap_highlight_get (struct wmGizmoMap *gzmap)
 
void wm_gizmomap_modal_set (struct wmGizmoMap *gzmap, bContext *C, struct wmGizmo *gz, const struct wmEvent *event, bool enable)
 
struct wmGizmowm_gizmomap_modal_get (struct wmGizmoMap *gzmap)
 
struct wmGizmo ** wm_gizmomap_selected_get (wmGizmoMap *gzmap, int *r_selected_len)
 
struct ListBasewm_gizmomap_groups_get (wmGizmoMap *gzmap)
 
#wmGizmoMapType
void wm_gizmomaptypes_free (void)
 

Function Documentation

◆ GIZMOGROUP_OT_gizmo_select()

void GIZMOGROUP_OT_gizmo_select ( struct wmOperatorType ot)

◆ GIZMOGROUP_OT_gizmo_tweak()

void GIZMOGROUP_OT_gizmo_tweak ( struct wmOperatorType ot)

◆ wm_gizmogroup_is_any_selected()

bool wm_gizmogroup_is_any_selected ( const struct wmGizmoGroup gzgroup)

◆ wm_gizmogrouptype_free()

void wm_gizmogrouptype_free ( void  )

◆ wm_gizmogrouptype_init()

void wm_gizmogrouptype_init ( void  )

Called on initialize WM_init().

Definition at line 175 of file wm_gizmo_group_type.c.

References BLI_ghash_str_new_ex(), and global_gizmogrouptype_hash.

Referenced by WM_init().

◆ wm_gizmomap_groups_get()

struct ListBase* wm_gizmomap_groups_get ( wmGizmoMap gzmap)

Definition at line 1139 of file wm_gizmo_map.c.

References wmGizmoMap::groups.

◆ wm_gizmomap_handler_context_gizmo()

void wm_gizmomap_handler_context_gizmo ( bContext C,
struct wmEventHandler_Gizmo handler 
)

◆ wm_gizmomap_handler_context_op()

void wm_gizmomap_handler_context_op ( bContext C,
struct wmEventHandler_Op handler 
)

Prepare context for gizmo handling (but only if area/region is part of screen). Version of wm_handler_op_context for gizmos.

Definition at line 934 of file wm_gizmo_map.c.

References blender::compositor::area(), wmEventHandler_Op::area, bScreen::areabase, C, wmEventHandler_Op::context, CTX_wm_area_set(), CTX_wm_region_set(), CTX_wm_screen(), ListBase::first, ARegion::next, NULL, and wmEventHandler_Op::region.

Referenced by wm_gizmomaps_handled_modal_update().

◆ wm_gizmomap_highlight_find()

struct wmGizmo* wm_gizmomap_highlight_find ( struct wmGizmoMap gzmap,
bContext C,
const struct wmEvent event,
int *  r_part 
)

Try to find a gizmo under the mouse position. 2D intersections have priority over 3D ones (could check for smallest screen-space distance but not needed right now).

◆ wm_gizmomap_highlight_get()

struct wmGizmo* wm_gizmomap_highlight_get ( struct wmGizmoMap gzmap)

◆ wm_gizmomap_highlight_set()

bool wm_gizmomap_highlight_set ( struct wmGizmoMap gzmap,
const bContext C,
struct wmGizmo gz,
int  part 
)

◆ wm_gizmomap_modal_get()

struct wmGizmo* wm_gizmomap_modal_get ( struct wmGizmoMap gzmap)

◆ wm_gizmomap_modal_set()

void wm_gizmomap_modal_set ( struct wmGizmoMap gzmap,
bContext C,
struct wmGizmo gz,
const struct wmEvent event,
bool  enable 
)

Caller should call exit when (enable == False).

◆ wm_gizmomap_remove()

void wm_gizmomap_remove ( struct wmGizmoMap gzmap)

Definition at line 188 of file wm_gizmo_map.c.

References MEM_freeN, and wm_gizmomap_free_data().

Referenced by WM_init().

◆ wm_gizmomap_selected_get()

struct wmGizmo** wm_gizmomap_selected_get ( wmGizmoMap gzmap,
int *  r_selected_len 
)

◆ wm_gizmomaps_handled_modal_update()

void wm_gizmomaps_handled_modal_update ( bContext C,
struct wmEvent event,
struct wmEventHandler_Op handler 
)

◆ wm_gizmomaptypes_free()

void wm_gizmomaptypes_free ( void  )

Definition at line 1228 of file wm_gizmo_map.c.

References ListBase::first, gizmomaptypes, MEM_freeN, and WM_gizmomaptype_group_free().

Referenced by WM_exit_ex().

◆ wm_gizmos_keymap()

void wm_gizmos_keymap ( struct wmKeyConfig keyconf)

Initialize key-maps for all existing gizmo-groups

Definition at line 1242 of file wm_gizmo_map.c.

References gizmomaptypes, LISTBASE_FOREACH, wm_gizmogroup_tweak_modal_keymap(), and wm_gizmogrouptype_setup_keymap().

Referenced by wm_window_keymap().

◆ wm_gizmotype_free()

void wm_gizmotype_free ( void  )

Definition at line 175 of file wm_gizmo_type.c.

References BLI_ghash_free(), global_gizmotype_hash, NULL, and wm_gizmotype_ghash_free_cb().

Referenced by WM_exit_ex().

◆ wm_gizmotype_init()

void wm_gizmotype_init ( void  )

Called on initialize WM_init().

Definition at line 181 of file wm_gizmo_type.c.

References BLI_ghash_str_new_ex(), and global_gizmotype_hash.

Referenced by WM_init().