Blender V5.3
wm_event_query.cc File Reference
#include <cstdlib>
#include <cstring>
#include "DNA_screen_types.h"
#include "DNA_userdef_types.h"
#include "DNA_windowmanager_types.h"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "BLI_utildefines.hh"
#include "RNA_access.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "wm_event_system.hh"
#include "wm_event_types.hh"
#include "RNA_enum_types.hh"

Go to the source code of this file.

Classes

struct  blender::FlagIdentifierPair

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Event Printing
static void blender::event_ids_from_flag (char *str, const int str_maxncpy, const FlagIdentifierPair *flag_data, const int flag_data_len, const uint flag)
static void blender::event_ids_from_type_and_value (const short type, const short val, const char **r_type_id, const char **r_val_id)
void blender::WM_event_print (const wmEvent *event)
Event Modifier/Type Queries
bool blender::WM_event_type_mask_test (const int event_type, const enum eEventType_Mask mask)
Event Motion Queries
bool blender::WM_event_is_modal_drag_exit (const wmEvent *event, const short init_event_type, const short init_event_val)
bool blender::WM_event_is_mouse_drag (const wmEvent *event)
bool blender::WM_event_is_mouse_drag_or_press (const wmEvent *event)
int blender::WM_event_drag_direction (const wmEvent *event)
bool blender::WM_cursor_test_motion_and_update (const int mval[2])
Event Consecutive Checks
bool blender::WM_event_consecutive_gesture_test (const wmEvent *event)
bool blender::WM_event_consecutive_gesture_test_break (const wmWindow *win, const wmEvent *event)
Event Click/Drag Checks

Values under this limit are detected as clicks.

int blender::WM_event_drag_threshold (const wmEvent *event)
bool blender::WM_event_drag_test_with_delta (const wmEvent *event, const int drag_delta[2])
bool blender::WM_event_drag_test (const wmEvent *event, const int prev_xy[2])
void blender::WM_event_drag_start_mval (const wmEvent *event, const ARegion *region, int r_mval[2])
void blender::WM_event_drag_start_mval_fl (const wmEvent *event, const ARegion *region, float r_mval[2])
void blender::WM_event_drag_start_xy (const wmEvent *event, int r_xy[2])
Event Text Queries
char blender::WM_event_utf8_to_ascii (const wmEvent *event)
Event Preference Mapping
int blender::WM_userdef_event_map (int kmitype)
int blender::WM_userdef_event_type_from_keymap_type (int kmitype)
Event Tablet Input Access
float blender::wm_pressure_curve (float raw_pressure)
float blender::WM_event_tablet_data (const wmEvent *event, bool *r_pen_flip, float r_tilt[2])
bool blender::WM_event_is_tablet (const wmEvent *event)
Event Scroll's Absolute Deltas

User may change the scroll behavior, and the deltas are automatically inverted. These functions return the absolute direction, swipe up/right gives positive values.

int blender::WM_event_absolute_delta_x (const wmEvent *event)
int blender::WM_event_absolute_delta_y (const wmEvent *event)

Detailed Description

Read-only queries utility functions for the event system.

Definition in file wm_event_query.cc.