---
name: "tickit_renderbuffer_moverect"
section: "3"
platform: "linux"
package: "libtickit-dev"
version: "0.4.3-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tickit_renderbuffer_moverect"
---

# tickit\_renderbuffer\_moverect(3)

copy or move a rectangular region of a buffer

## NAME

tickit\_renderbuffer\_copyrect, tickit\_renderbuffer\_moverect - copy or move a rectangular region of a buffer

## SYNOPSIS

```
#include <tickit.h>

void tickit_renderbuffer_copyrect(TickitRenderBuffer *rb,
        const TickitRect *dest, const TickitRect *src);
void tickit_renderbuffer_moverect(TickitRenderBuffer *rb,
        const TickitRect *dest, const TickitRect *src);
```

Link with *-ltickit*.

## DESCRIPTION

**tickit\_renderbuffer\_copyrect**() copies the rectangular region in the buffer from the rectangle given by *src* into the location given by *dest*.

**tickit\_renderbuffer\_moverect**() moves content in the rectangular region in the buffer given by *src* into the location given by *dest*, resetting the region migrated out from back to the skip state.

In each case, the two regions may overlap. These functions will also copy cells in skip state; that is, cells set to skip in the source region are set to skip in the destination.

## RETURN VALUE

These functions return no value.

## SEE ALSO

[**tickit\_renderbuffer\_new**(3)](/tickit_renderbuffer_new/3.md), [**tickit\_renderbuffer\_flush\_to\_term**(3)](/tickit_renderbuffer_flush_to_term/3.md), [**tickit\_renderbuffer**(7)](/tickit_renderbuffer/7.md), [**tickit**(7)](/tickit/7.md)
