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

# tickit\_window\_get\_children(3)

obtain child windows from a window

## NAME

tickit\_window\_children, tickit\_window\_get\_children - obtain child windows from a window

## SYNOPSIS

```
#include <tickit.h>

size_t tickit_window_children(const TickitWindow *win);
size_t tickit_window_get_children(const TickitWindow *win,
    TickitWindow *children[], size_t n);
```

Link with *-ltickit*.

## DESCRIPTION

**tickit\_window\_children**() returns the number of immediate child windows the given window has.

**tickit\_window\_get\_children**() copies at most *n* child window pointers into the array given by **children**, and returns the number of pointers it copied (which may be fewer than the total stored, if the array was of insufficient size).

## RETURN VALUE

**tickit\_window\_children**() and **tickit\_window\_get\_children**() return integers giving the number of entries operated on.

## SEE ALSO

[**tickit\_window\_new**(3)](/tickit_window_new/3.md), [**tickit\_window\_parent**(3)](/tickit_window_parent/3.md), [**tickit\_window**(7)](/tickit_window/7.md), [**tickit**(7)](/tickit/7.md)
