Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_view2d.h
| Show First 20 Lines • Show All 309 Lines • ▼ Show 20 Lines | typedef struct View2DEdgePanData { | ||||
| struct bScreen *screen; | struct bScreen *screen; | ||||
| /** Area where view pan was initiated. */ | /** Area where view pan was initiated. */ | ||||
| struct ScrArea *area; | struct ScrArea *area; | ||||
| /** Region where view pan was initiated. */ | /** Region where view pan was initiated. */ | ||||
| struct ARegion *region; | struct ARegion *region; | ||||
| /** View2d we're operating in. */ | /** View2d we're operating in. */ | ||||
| struct View2D *v2d; | struct View2D *v2d; | ||||
| /** Panning should only start once being in the inside rect once (e.g. adding nodes can happen | |||||
| * outside). */ | |||||
| bool enabled; | |||||
| /** Inside distance in UI units from the edge of the region within which to start panning. */ | /** Inside distance in UI units from the edge of the region within which to start panning. */ | ||||
| float inside_pad; | float inside_pad; | ||||
| /** Outside distance in UI units from the edge of the region at which to stop panning. */ | /** Outside distance in UI units from the edge of the region at which to stop panning. */ | ||||
| float outside_pad; | float outside_pad; | ||||
| /** | /** | ||||
| * Width of the zone in UI units where speed increases with distance from the edge. | * Width of the zone in UI units where speed increases with distance from the edge. | ||||
| * At the end of this zone max speed is reached. | * At the end of this zone max speed is reached. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines | |||||