Blender V4.3
view3d_navigate_view_pan.cc File Reference
#include "MEM_guardedalloc.h"
#include "WM_api.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "view3d_intern.hh"
#include "view3d_navigate.hh"

Go to the source code of this file.

Variables

const ViewOpsType ViewOpsType_pan
 

View Pan Operator

Move (pan) in incremental steps. For interactive pan see VIEW3D_OT_move.

enum  { V3D_VIEW_PANLEFT = 1 , V3D_VIEW_PANRIGHT , V3D_VIEW_PANDOWN , V3D_VIEW_PANUP }
 
static const EnumPropertyItem prop_view_pan_items []
 
static int viewpan_invoke_impl (bContext *, ViewOpsData *vod, const wmEvent *, PointerRNA *ptr)
 
static int viewpan_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void VIEW3D_OT_view_pan (wmOperatorType *ot)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
V3D_VIEW_PANLEFT 
V3D_VIEW_PANRIGHT 
V3D_VIEW_PANDOWN 
V3D_VIEW_PANUP 

Definition at line 26 of file view3d_navigate_view_pan.cc.

Function Documentation

◆ VIEW3D_OT_view_pan()

◆ viewpan_invoke()

static int viewpan_invoke ( bContext * C,
wmOperator * op,
const wmEvent * event )
static

Definition at line 67 of file view3d_navigate_view_pan.cc.

References view3d_navigate_invoke_impl(), and ViewOpsType_pan.

Referenced by VIEW3D_OT_view_pan().

◆ viewpan_invoke_impl()

Variable Documentation

◆ prop_view_pan_items

const EnumPropertyItem prop_view_pan_items[]
static
Initial value:
= {
{V3D_VIEW_PANLEFT, "PANLEFT", 0, "Pan Left", "Pan the view to the left"},
{V3D_VIEW_PANRIGHT, "PANRIGHT", 0, "Pan Right", "Pan the view to the right"},
{V3D_VIEW_PANUP, "PANUP", 0, "Pan Up", "Pan the view up"},
{V3D_VIEW_PANDOWN, "PANDOWN", 0, "Pan Down", "Pan the view down"},
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 33 of file view3d_navigate_view_pan.cc.

Referenced by VIEW3D_OT_view_pan().

◆ ViewOpsType_pan

const ViewOpsType ViewOpsType_pan
Initial value:
= {
"VIEW3D_OT_view_pan",
nullptr,
}
bool view3d_location_poll(bContext *C)
@ VIEWOPS_FLAG_DEPTH_NAVIGATE
@ VIEWOPS_FLAG_INIT_ZFAC
static int viewpan_invoke_impl(bContext *, ViewOpsData *vod, const wmEvent *, PointerRNA *ptr)

Definition at line 93 of file view3d_navigate_view_pan.cc.

Referenced by view3d_navigation_type_from_idname(), VIEW3D_OT_view_pan(), and viewpan_invoke().