Package bpy :: Package ops :: Module view2d
[hide private]
[frames] | no frames]

Module view2d

Functions [hide private]
 
pan(deltax=0, deltay=0)
Pan the view.
 
reset()
Reset the view.
 
scroll_down(deltax=0, deltay=0)
Scroll the view down.
 
scroll_left(deltax=0, deltay=0)
Scroll the view left.
 
scroll_right(deltax=0, deltay=0)
Scroll the view right.
 
scroll_up(deltax=0, deltay=0)
Scroll the view up.
 
scroller_activate()
Scroll view by mouse click and drag.
 
zoom(deltax=0.0, deltay=0.0)
Zoom in/out the view.
 
zoom_border(event_type=0, xmin=0, xmax=0, ymin=0, ymax=0)
Zoom in the view to the nearest item contained in the border.
 
zoom_in(zoomfacx=0.0, zoomfacy=0.0)
Zoom in the view.
 
zoom_out(zoomfacx=0.0, zoomfacy=0.0)
Zoom out the view.
Function Details [hide private]

pan(deltax=0, deltay=0)

 

Pan the view.

Parameters:
  • deltax (int) - in (-inf, inf)
  • deltay (int) - in (-inf, inf)

scroll_down(deltax=0, deltay=0)

 

Scroll the view down.

Parameters:
  • deltax (int) - in (-inf, inf)
  • deltay (int) - in (-inf, inf)

scroll_left(deltax=0, deltay=0)

 

Scroll the view left.

Parameters:
  • deltax (int) - in (-inf, inf)
  • deltay (int) - in (-inf, inf)

scroll_right(deltax=0, deltay=0)

 

Scroll the view right.

Parameters:
  • deltax (int) - in (-inf, inf)
  • deltay (int) - in (-inf, inf)

scroll_up(deltax=0, deltay=0)

 

Scroll the view up.

Parameters:
  • deltax (int) - in (-inf, inf)
  • deltay (int) - in (-inf, inf)

zoom(deltax=0.0, deltay=0.0)

 

Zoom in/out the view.

Parameters:
  • deltax (float) - in (-inf, inf)
  • deltay (float) - in (-inf, inf)

zoom_border(event_type=0, xmin=0, xmax=0, ymin=0, ymax=0)

 

Zoom in the view to the nearest item contained in the border.

Parameters:
  • event_type (int) - in (-inf, inf)
  • xmin (int) - in (-inf, inf)
  • xmax (int) - in (-inf, inf)
  • ymin (int) - in (-inf, inf)
  • ymax (int) - in (-inf, inf)

zoom_in(zoomfacx=0.0, zoomfacy=0.0)

 

Zoom in the view.

Parameters:
  • zoomfacx (float) - in (-inf, inf)
  • zoomfacy (float) - in (-inf, inf)

zoom_out(zoomfacx=0.0, zoomfacy=0.0)

 

Zoom out the view.

Parameters:
  • zoomfacx (float) - in (-inf, inf)
  • zoomfacy (float) - in (-inf, inf)