Blender  V3.3
Classes | Functions
wm_gesture.c File Reference
#include "DNA_screen_types.h"
#include "DNA_userdef_types.h"
#include "DNA_vec_types.h"
#include "DNA_windowmanager_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_bitmap_draw_2d.h"
#include "BLI_blenlib.h"
#include "BLI_lasso_2d.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "WM_api.h"
#include "WM_types.h"
#include "wm.h"
#include "wm_draw.h"
#include "GPU_immediate.h"
#include "GPU_immediate_util.h"
#include "GPU_state.h"
#include "BIF_glutil.h"

Go to the source code of this file.

Classes

struct  LassoFillData
 

Functions

wmGestureWM_gesture_new (wmWindow *window, const ARegion *region, const wmEvent *event, int type)
 
void WM_gesture_end (wmWindow *win, wmGesture *gesture)
 
void WM_gestures_free_all (wmWindow *win)
 
void WM_gestures_remove (wmWindow *win)
 
bool WM_gesture_is_modal_first (const wmGesture *gesture)
 
static void wm_gesture_draw_line_active_side (rcti *rect, const bool flip)
 
static void wm_gesture_draw_line (wmGesture *gt)
 
static void wm_gesture_draw_rect (wmGesture *gt)
 
static void wm_gesture_draw_circle (wmGesture *gt)
 
static void draw_filled_lasso_px_cb (int x, int x_end, int y, void *user_data)
 
static void draw_filled_lasso (wmGesture *gt)
 
static void wm_gesture_draw_lasso (wmGesture *gt, bool filled)
 
static void wm_gesture_draw_cross (wmWindow *win, wmGesture *gt)
 
void wm_gesture_draw (wmWindow *win)
 
void wm_gesture_tag_redraw (wmWindow *win)
 

Detailed Description

Gestures (cursor motions) creating, evaluating and drawing, shared between operators.

Definition in file wm_gesture.c.

Function Documentation

◆ draw_filled_lasso()

static void draw_filled_lasso ( wmGesture gt)
static

◆ draw_filled_lasso_px_cb()

static void draw_filled_lasso_px_cb ( int  x,
int  x_end,
int  y,
void user_data 
)
static

Definition at line 282 of file wm_gesture.c.

References col, data, user_data, x, and y.

Referenced by draw_filled_lasso().

◆ wm_gesture_draw()

void wm_gesture_draw ( wmWindow win)

◆ wm_gesture_draw_circle()

static void wm_gesture_draw_circle ( wmGesture gt)
static

◆ wm_gesture_draw_cross()

static void wm_gesture_draw_cross ( wmWindow win,
wmGesture gt 
)
static

◆ wm_gesture_draw_lasso()

static void wm_gesture_draw_lasso ( wmGesture gt,
bool  filled 
)
static

◆ wm_gesture_draw_line()

static void wm_gesture_draw_line ( wmGesture gt)
static

◆ wm_gesture_draw_line_active_side()

static void wm_gesture_draw_line_active_side ( rcti rect,
const bool  flip 
)
static

◆ wm_gesture_draw_rect()

static void wm_gesture_draw_rect ( wmGesture gt)
static

◆ WM_gesture_end()

void WM_gesture_end ( wmWindow win,
wmGesture gesture 
)

◆ WM_gesture_is_modal_first()

bool WM_gesture_is_modal_first ( const wmGesture gesture)

◆ WM_gesture_new()

wmGesture* WM_gesture_new ( wmWindow window,
const ARegion region,
const wmEvent event,
int  type 
)

◆ wm_gesture_tag_redraw()

void wm_gesture_tag_redraw ( struct wmWindow win)

◆ WM_gestures_free_all()

void WM_gestures_free_all ( wmWindow win)

Definition at line 94 of file wm_gesture.c.

References ListBase::first, wmWindow::gesture, and WM_gesture_end().

Referenced by wm_window_free().

◆ WM_gestures_remove()

void WM_gestures_remove ( wmWindow win)

Definition at line 101 of file wm_gesture.c.

References ListBase::first, wmWindow::gesture, and WM_gesture_end().

Referenced by ui_but_drag_init().