tickit_term_bind_event(3)

tickit_term_bind_event3

Add or remove event handlers

Usage

#include <tickit.h>

typedef int TickitTermEventFn(TickitTerm *tt, TickitEventFlags flags,
    void *info, void *user);

int tickit_term_bind_event(TickitTerm *tt, TickitTermEvent ev,
    TickitBindFlags flags,
    TickitTermEventFn *fn, void *user);
void tickit_term_unbind_event_id(TickitTerm *tt, int id);

Link with -ltickit.

Overview

tickit_term_bind_event() adds a new event handler to the list of handlers stored by the terminal, and returns an integer to identify this handler. This handler will be invoked for occurrences of the event given by the ev argument. When invoked, func will be passed the terminal instance, a flags bitmask, a pointer to an event information structure whose type depends on the event, and the user data pointer it was installed with.

tickit_term_unbind_event_id() removes an event handler previously added, by the identifier returned when it was added, invoking it with the TICKIT_EV_UNBIND flag if it was installed with TICKIT_BIND_UNBIND.

Return value

tickit_term_bind_event() returns an identifier integer. tickit_term_unbind_event_id() returns no value.

Releases

4 releases since Debian 10 (Buster); the text changed 1 time.

  1. 10
  2. 11–13

From libtickit-dev 0.4.3-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.