Blender V2.61 - r43446
|
#include "DNA_screen_types.h"
#include "DNA_vec_types.h"
#include "DNA_userdef_types.h"
#include "DNA_windowmanager_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_editVert.h"
#include "BLI_math.h"
#include "BLI_scanfill.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "WM_api.h"
#include "WM_types.h"
#include "wm.h"
#include "wm_event_system.h"
#include "wm_subwindow.h"
#include "wm_draw.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
Go to the source code of this file.
Functions | |
wmGesture * | WM_gesture_new (bContext *C, wmEvent *event, int type) |
void | WM_gesture_end (bContext *C, wmGesture *gesture) |
void | WM_gestures_remove (bContext *C) |
int | wm_gesture_evaluate (wmGesture *gesture) |
static void | wm_gesture_draw_rect (wmGesture *gt) |
static void | wm_gesture_draw_line (wmGesture *gt) |
static void | wm_gesture_draw_circle (wmGesture *gt) |
static void | draw_filled_lasso (wmGesture *gt) |
static void | wm_gesture_draw_lasso (wmGesture *gt) |
static void | wm_gesture_draw_cross (wmWindow *win, wmGesture *gt) |
void | wm_gesture_draw (wmWindow *win) |
void | wm_gesture_tag_redraw (bContext *C) |
Definition in file wm_gesture.c.
static void draw_filled_lasso | ( | wmGesture * | gt | ) | [static] |
Definition at line 229 of file wm_gesture.c.
References BLI_addfilledge(), BLI_addfillvert(), BLI_edgefill(), BLI_end_edgefill(), EditVert::co, co, wmGesture::customdata, fillfacebase, ListBase::first, i, EditFace::next, NULL, wmGesture::points, EditFace::v1, EditFace::v2, and EditFace::v3.
Referenced by wm_gesture_draw_lasso().
void wm_gesture_draw | ( | wmWindow * | win | ) |
Definition at line 320 of file wm_gesture.c.
References ListBase::first, wmWindow::gesture, wmGesture::mode, wmGesture::next, wmGesture::swinid, wmGesture::type, WM_GESTURE_CIRCLE, WM_GESTURE_CROSS_RECT, wm_gesture_draw_circle(), wm_gesture_draw_cross(), wm_gesture_draw_lasso(), wm_gesture_draw_line(), wm_gesture_draw_rect(), WM_GESTURE_LASSO, WM_GESTURE_LINES, WM_GESTURE_RECT, WM_GESTURE_STRAIGHTLINE, and wmSubWindowSet().
Referenced by wm_method_draw_full(), wm_method_draw_overlap_all(), and wm_method_draw_triple().
static void wm_gesture_draw_circle | ( | wmGesture * | gt | ) | [static] |
Definition at line 205 of file wm_gesture.c.
References wmGesture::customdata, glutil_draw_filled_arc(), glutil_draw_lined_arc(), M_PI, rcti::xmax, rcti::xmin, and rcti::ymin.
Referenced by wm_gesture_draw().
Definition at line 302 of file wm_gesture.c.
References wmGesture::customdata, sdrawline(), wmWindow::sizex, wmWindow::sizey, rcti::xmin, and rcti::ymin.
Referenced by wm_gesture_draw().
static void wm_gesture_draw_lasso | ( | wmGesture * | gt | ) | [static] |
Definition at line 271 of file wm_gesture.c.
References wmGesture::customdata, draw_filled_lasso(), i, wmGesture::points, wmGesture::type, and WM_GESTURE_LASSO.
Referenced by wm_gesture_draw().
static void wm_gesture_draw_line | ( | wmGesture * | gt | ) | [static] |
Definition at line 189 of file wm_gesture.c.
References wmGesture::customdata, sdrawline(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by wm_gesture_draw().
static void wm_gesture_draw_rect | ( | wmGesture * | gt | ) | [static] |
Definition at line 165 of file wm_gesture.c.
References wmGesture::customdata, sdrawbox(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by wm_gesture_draw().
Definition at line 106 of file wm_gesture.c.
References BLI_remlink(), CTX_wm_window(), wmGesture::customdata, wmWindow::gesture, MEM_freeN(), NULL, and wmWindow::tweak.
Referenced by tweak_gesture_modal(), wm_gesture_end(), WM_gestures_remove(), and wm_tweakevent_test().
int wm_gesture_evaluate | ( | wmGesture * | gesture | ) |
Definition at line 127 of file wm_gesture.c.
References ABS, atan2f, wmGesture::customdata, EVT_GESTURE_E, EVT_GESTURE_N, EVT_GESTURE_NE, EVT_GESTURE_NW, EVT_GESTURE_S, EVT_GESTURE_SE, EVT_GESTURE_SW, EVT_GESTURE_W, M_PI, UserDef::tweak_threshold, wmGesture::type, U, simple_enum_gen::val, WM_GESTURE_TWEAK, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by tweak_gesture_modal().
Definition at line 62 of file wm_gesture.c.
References BLI_addtail(), circle_select_size, CTX_wm_region(), CTX_wm_window(), wmGesture::customdata, ELEM, ELEM5, wmGesture::event_type, wmWindow::gesture, MEM_callocN(), wmGesture::points, wmGesture::size, wmGesture::swinid, ARegion::swinid, wmGesture::type, WM_GESTURE_CIRCLE, WM_GESTURE_CROSS_RECT, WM_GESTURE_LASSO, WM_GESTURE_LINES, WM_GESTURE_RECT, WM_GESTURE_STRAIGHTLINE, WM_GESTURE_TWEAK, WM_LASSO_MIN_POINTS, wm_subwindow_getorigin(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by WM_border_select_invoke(), WM_gesture_circle_invoke(), WM_gesture_lasso_invoke(), WM_gesture_lines_invoke(), WM_gesture_straightline_invoke(), and wm_tweakevent_test().
void wm_gesture_tag_redraw | ( | bContext * | C | ) |
Definition at line 349 of file wm_gesture.c.
References CTX_wm_region(), CTX_wm_screen(), CTX_wm_window(), bScreen::do_draw_gesture, and wm_tag_redraw_overlay().
Referenced by WM_border_select_invoke(), WM_border_select_modal(), WM_gesture_circle_invoke(), WM_gesture_circle_modal(), WM_gesture_lasso_invoke(), WM_gesture_lasso_modal(), WM_gesture_lines_invoke(), WM_gesture_straightline_invoke(), and WM_gesture_straightline_modal().
void WM_gestures_remove | ( | bContext * | C | ) |
Definition at line 117 of file wm_gesture.c.
References CTX_wm_window(), ListBase::first, wmWindow::gesture, and WM_gesture_end().
Referenced by ui_but_start_drag().