---
name: "drm_rect_translate"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_rect_translate"
---

# drm\_rect\_translate(9)

translate the rectangle

## NAME

drm\_rect\_translate - translate the rectangle

## SYNOPSIS

**void drm\_rect\_translate(struct drm\_rect \*** *r***, int** *dx***, int** *dy***);**

## ARGUMENTS

*r*

rectangle to be tranlated

*dx*

horizontal translation

*dy*

vertical translation

## DESCRIPTION

Move rectangle *r* by *dx* in the horizontal direction, and by *dy* in the vertical direction.

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
