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

# tickit\_rectset\_add(3)

add an area to a rectangle set

## NAME

tickit\_rectset\_add - add an area to a rectangle set

## SYNOPSIS

```
#include <tickit.h>

void tickit_rectset_add(TickitRectSet *trs, const TickitRect *rect);
```

Link with *-ltickit*.

## DESCRIPTION

**tickit\_rectset\_add**() ensures that the regions stored by the rectangle set includes the area given by *rect*. Since the rectangle set stores a set of non-overlapping regions, it may have to split the newly-added area into smaller pieces, to ensure the regions do not overlap. Since it merges neighbours where possible it can also result in fewer regions being stored.

## RETURN VALUE

**tickit\_rectset\_add**() returns no value.

## SEE ALSO

[**tickit\_rectset\_new**(3)](/tickit_rectset_new/3.md), [**tickit\_rectset**(7)](/tickit_rectset/7.md), [**tickit\_rect**(7)](/tickit_rect/7.md), [**tickit**(7)](/tickit/7.md)
