Blender V2.61 - r43446
Classes | Typedefs | Enumerations | Functions

view2d_ops.c File Reference

#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_userdef_types.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_screen.h"
#include "UI_view2d.h"
#include "UI_interface.h"
#include "PIL_time.h"

Go to the source code of this file.

Classes

struct  v2dViewPanData
struct  v2dViewZoomData
struct  v2dScrollerMove
struct  View2DScrollers

Typedefs

typedef struct v2dViewPanData v2dViewPanData
typedef struct v2dViewZoomData v2dViewZoomData
typedef struct v2dScrollerMove v2dScrollerMove

Enumerations

enum  {
  SCROLLHANDLE_MIN = -1, SCROLLHANDLE_BAR, SCROLLHANDLE_MAX, SCROLLHANDLE_MIN_OUTSIDE,
  SCROLLHANDLE_MAX_OUTSIDE
}

Functions

static int view2d_poll (bContext *C)
static int view_pan_init (bContext *C, wmOperator *op)
static void view_pan_apply (wmOperator *op)
static void view_pan_exit (wmOperator *op)
static int view_pan_exec (bContext *C, wmOperator *op)
static int view_pan_invoke (bContext *C, wmOperator *op, wmEvent *event)
static int view_pan_modal (bContext *C, wmOperator *op, wmEvent *event)
static int view_pan_cancel (bContext *UNUSED(C), wmOperator *op)
static void VIEW2D_OT_pan (wmOperatorType *ot)
static int view_scrollright_exec (bContext *C, wmOperator *op)
static void VIEW2D_OT_scroll_right (wmOperatorType *ot)
static int view_scrollleft_exec (bContext *C, wmOperator *op)
static void VIEW2D_OT_scroll_left (wmOperatorType *ot)
static int view_scrolldown_exec (bContext *C, wmOperator *op)
static void VIEW2D_OT_scroll_down (wmOperatorType *ot)
static int view_scrollup_exec (bContext *C, wmOperator *op)
static void VIEW2D_OT_scroll_up (wmOperatorType *ot)
static int view_zoomdrag_init (bContext *C, wmOperator *op)
static int view_zoom_poll (bContext *C)
static void view_zoomstep_apply (bContext *C, wmOperator *op)
static void view_zoomstep_exit (wmOperator *op)
static int view_zoomin_exec (bContext *C, wmOperator *op)
static int view_zoomin_invoke (bContext *C, wmOperator *op, wmEvent *event)
static void VIEW2D_OT_zoom_in (wmOperatorType *ot)
static int view_zoomout_exec (bContext *C, wmOperator *op)
static int view_zoomout_invoke (bContext *C, wmOperator *op, wmEvent *event)
static void VIEW2D_OT_zoom_out (wmOperatorType *ot)
static void view_zoomdrag_apply (bContext *C, wmOperator *op)
static void view_zoomdrag_exit (bContext *C, wmOperator *op)
static int view_zoomdrag_cancel (bContext *C, wmOperator *op)
static int view_zoomdrag_exec (bContext *C, wmOperator *op)
static int view_zoomdrag_invoke (bContext *C, wmOperator *op, wmEvent *event)
static int view_zoomdrag_modal (bContext *C, wmOperator *op, wmEvent *event)
static void VIEW2D_OT_zoom (wmOperatorType *ot)
static int view_borderzoom_exec (bContext *C, wmOperator *op)
static void VIEW2D_OT_zoom_border (wmOperatorType *ot)
static short mouse_in_scroller_handle (int mouse, int sc_min, int sc_max, int sh_min, int sh_max)
static void scroller_activate_init (bContext *C, wmOperator *op, wmEvent *event, short in_scroller)
static void scroller_activate_exit (bContext *C, wmOperator *op)
static int scroller_activate_cancel (bContext *C, wmOperator *op)
static void scroller_activate_apply (bContext *C, wmOperator *op)
static int scroller_activate_modal (bContext *C, wmOperator *op, wmEvent *event)
static int scroller_activate_invoke (bContext *C, wmOperator *op, wmEvent *event)
static void VIEW2D_OT_scroller_activate (wmOperatorType *ot)
static int reset_exec (bContext *C, wmOperator *UNUSED(op))
static void VIEW2D_OT_reset (wmOperatorType *ot)
void UI_view2d_operatortypes (void)
void UI_view2d_keymap (wmKeyConfig *keyconf)

Detailed Description

Definition in file view2d_ops.c.


Typedef Documentation


Enumeration Type Documentation

anonymous enum
Enumerator:
SCROLLHANDLE_MIN 
SCROLLHANDLE_BAR 
SCROLLHANDLE_MAX 
SCROLLHANDLE_MIN_OUTSIDE 
SCROLLHANDLE_MAX_OUTSIDE 

Definition at line 1228 of file view2d_ops.c.


Function Documentation

static short mouse_in_scroller_handle ( int  mouse,
int  sc_min,
int  sc_max,
int  sh_min,
int  sh_max 
) [static]
static int reset_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static void scroller_activate_apply ( bContext C,
wmOperator op 
) [static]
static int scroller_activate_cancel ( bContext C,
wmOperator op 
) [static]

Definition at line 1368 of file view2d_ops.c.

References OPERATOR_CANCELLED, and scroller_activate_exit().

Referenced by VIEW2D_OT_scroller_activate().

static void scroller_activate_exit ( bContext C,
wmOperator op 
) [static]
static void scroller_activate_init ( bContext C,
wmOperator op,
wmEvent event,
short  in_scroller 
) [static]
static int scroller_activate_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int scroller_activate_modal ( bContext C,
wmOperator op,
wmEvent event 
) [static]
void UI_view2d_keymap ( wmKeyConfig keyconf)
void UI_view2d_operatortypes ( void  )
static void VIEW2D_OT_pan ( wmOperatorType ot) [static]
static void VIEW2D_OT_reset ( wmOperatorType ot) [static]
static void VIEW2D_OT_scroll_down ( wmOperatorType ot) [static]
static void VIEW2D_OT_scroll_left ( wmOperatorType ot) [static]
static void VIEW2D_OT_scroll_right ( wmOperatorType ot) [static]
static void VIEW2D_OT_scroll_up ( wmOperatorType ot) [static]
static void VIEW2D_OT_scroller_activate ( wmOperatorType ot) [static]
static void VIEW2D_OT_zoom ( wmOperatorType ot) [static]
static void VIEW2D_OT_zoom_border ( wmOperatorType ot) [static]
static void VIEW2D_OT_zoom_in ( wmOperatorType ot) [static]
static void VIEW2D_OT_zoom_out ( wmOperatorType ot) [static]
static int view2d_poll ( bContext C) [static]
static int view_borderzoom_exec ( bContext C,
wmOperator op 
) [static]
static void view_pan_apply ( wmOperator op) [static]
static int view_pan_cancel ( bContext UNUSEDC,
wmOperator op 
) [static]

Definition at line 284 of file view2d_ops.c.

References OPERATOR_CANCELLED, and view_pan_exit().

Referenced by VIEW2D_OT_pan().

static int view_pan_exec ( bContext C,
wmOperator op 
) [static]
static void view_pan_exit ( wmOperator op) [static]
static int view_pan_init ( bContext C,
wmOperator op 
) [static]
static int view_pan_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int view_pan_modal ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int view_scrolldown_exec ( bContext C,
wmOperator op 
) [static]
static int view_scrollleft_exec ( bContext C,
wmOperator op 
) [static]
static int view_scrollright_exec ( bContext C,
wmOperator op 
) [static]
static int view_scrollup_exec ( bContext C,
wmOperator op 
) [static]
static int view_zoom_poll ( bContext C) [static]
static void view_zoomdrag_apply ( bContext C,
wmOperator op 
) [static]
static int view_zoomdrag_cancel ( bContext C,
wmOperator op 
) [static]

Definition at line 877 of file view2d_ops.c.

References OPERATOR_CANCELLED, and view_zoomdrag_exit().

Referenced by VIEW2D_OT_zoom().

static int view_zoomdrag_exec ( bContext C,
wmOperator op 
) [static]
static void view_zoomdrag_exit ( bContext C,
wmOperator op 
) [static]
static int view_zoomdrag_init ( bContext C,
wmOperator op 
) [static]
static int view_zoomdrag_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int view_zoomdrag_modal ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int view_zoomin_exec ( bContext C,
wmOperator op 
) [static]
static int view_zoomin_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int view_zoomout_exec ( bContext C,
wmOperator op 
) [static]
static int view_zoomout_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static void view_zoomstep_apply ( bContext C,
wmOperator op 
) [static]
static void view_zoomstep_exit ( wmOperator op) [static]

Definition at line 662 of file view2d_ops.c.

References wmOperator::customdata, MEM_freeN(), and NULL.

Referenced by view_zoomin_exec(), and view_zoomout_exec().