package ocgtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Gobject.SignalSource

Sourcetype handler_id = int

Signal handler identifier

Sourceval connect : 'a obj -> name:string -> callback:g_closure -> after:bool -> handler_id

Connect a closure to a signal

Sourceval connect_simple : 'a obj -> name:string -> callback:(unit -> unit) -> after:bool -> handler_id

Connect a simple callback with no arguments

Sourceval disconnect : 'a obj -> handler_id -> unit

Disconnect a signal handler

Sourceval handler_block : 'a obj -> handler_id -> unit

Temporarily block a signal handler

Sourceval handler_unblock : 'a obj -> handler_id -> unit

Unblock a signal handler

Sourceval handler_is_connected : 'a obj -> handler_id -> bool

Check if a handler is connected

Sourceval emit_by_name : 'a obj -> name:string -> unit

Emit a signal by name