Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/WM_api.h
| Show All 28 Lines | |||||
| * \todo document | * \todo document | ||||
| */ | */ | ||||
| /* dna-savable wmStructs here */ | /* dna-savable wmStructs here */ | ||||
| #include "BLI_compiler_attrs.h" | #include "BLI_compiler_attrs.h" | ||||
| #include "BLI_sys_types.h" | #include "BLI_sys_types.h" | ||||
| #include "DNA_windowmanager_types.h" | #include "DNA_windowmanager_types.h" | ||||
| #include "WM_keymap.h" | #include "WM_keymap.h" | ||||
| #include "WM_types.h" | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| struct ARegion; | struct ARegion; | ||||
| struct GHashIterator; | struct GHashIterator; | ||||
| struct GPUViewport; | struct GPUViewport; | ||||
| ▲ Show 20 Lines • Show All 655 Lines • ▼ Show 20 Lines | |||||
| /* drag and drop */ | /* drag and drop */ | ||||
| struct wmDrag *WM_event_start_drag( | struct wmDrag *WM_event_start_drag( | ||||
| struct bContext *C, int icon, int type, void *poin, double value, unsigned int flags); | struct bContext *C, int icon, int type, void *poin, double value, unsigned int flags); | ||||
| void WM_event_drag_image(struct wmDrag *, struct ImBuf *, float scale, int sx, int sy); | void WM_event_drag_image(struct wmDrag *, struct ImBuf *, float scale, int sx, int sy); | ||||
| void WM_drag_free(struct wmDrag *drag); | void WM_drag_free(struct wmDrag *drag); | ||||
| void WM_drag_data_free(int dragtype, void *poin); | void WM_drag_data_free(int dragtype, void *poin); | ||||
| void WM_drag_free_list(struct ListBase *lb); | void WM_drag_free_list(struct ListBase *lb); | ||||
| struct wmDropBox *WM_dropbox_add( | struct wmDropBox *WM_dropbox_add( | ||||
| ListBase *lb, | ListBase *lb, | ||||
| const char *idname, | const char *idname, | ||||
| bool (*poll)(struct bContext *, struct wmDrag *, const struct wmEvent *event, const char **), | bool (*poll)(struct bContext *, struct wmDrag *, const struct wmEvent *event), | ||||
| void (*copy)(struct wmDrag *, struct wmDropBox *), | void (*copy)(struct wmDrag *, struct wmDropBox *), | ||||
| void (*cancel)(struct Main *, struct wmDrag *, struct wmDropBox *)); | void (*cancel)(struct Main *, struct wmDrag *, struct wmDropBox *), | ||||
| WMDropboxTooltipFunc tooltip); | |||||
| ListBase *WM_dropboxmap_find(const char *idname, int spaceid, int regionid); | ListBase *WM_dropboxmap_find(const char *idname, int spaceid, int regionid); | ||||
| /* ID drag and drop */ | /* ID drag and drop */ | ||||
| void WM_drag_add_local_ID(struct wmDrag *drag, struct ID *id, struct ID *from_parent); | void WM_drag_add_local_ID(struct wmDrag *drag, struct ID *id, struct ID *from_parent); | ||||
| struct ID *WM_drag_get_local_ID(const struct wmDrag *drag, short idcode); | struct ID *WM_drag_get_local_ID(const struct wmDrag *drag, short idcode); | ||||
| struct ID *WM_drag_get_local_ID_from_event(const struct wmEvent *event, short idcode); | struct ID *WM_drag_get_local_ID_from_event(const struct wmEvent *event, short idcode); | ||||
| bool WM_drag_is_ID_type(const struct wmDrag *drag, int idcode); | bool WM_drag_is_ID_type(const struct wmDrag *drag, int idcode); | ||||
| ▲ Show 20 Lines • Show All 311 Lines • Show Last 20 Lines | |||||