---
name: "CL_GObject"
section: "3"
platform: "linux"
package: "clanlib0-common-dev"
version: "0.4.4-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/CL_GObject"
---

# CL\_GObject(3)

## NAME

CL\_GObject

## CLASS MEMBERS

- static void **activate\_signal**(

  ```
   int nargs,
  CL_GObject *sender,
  CL_GMember mem,
  ```

- static void **connect**(

  ```
   CL_GObject *sender,
  CL_GMember signal,
  CL_GObject *reciever,
  CL_GSlot slot)
  ```

- static void **disconnect**(

  ```
   CL_GObject *sender,
  CL_GMember signal,
  CL_GObject *reciever,
  CL_GSlot slot)
  ```

- static CL\_GObject \***get\_last\_sender**()

  - static int **get\_num\_signals**()

  - static int **get\_num\_slot**()

  - static int **get\_num\_connections**()

  - static void **debug\_signals**()

  ## MEMBERS WITH DESCRIPTIONS

- static void **activate\_signal**(

  ```
   int nargs,
  CL_GObject *sender,
  CL_GMember mem,
  ```

  ```
  Description:
  ```

  Calls all the slots that are connected to the signal

- static void **connect**(

  ```
   CL_GObject *sender,
  CL_GMember signal,
  CL_GObject *reciever,
  CL_GSlot slot)
  ```

  ```
  Parameters:
  sender - a pointer to the object that emits the signal
  signal - the signal
  reciever - a pointer to the object that has a slot
  slot - the slot
  ```

  ```
  Description:
  ```

  Connects an objects signal to another objects slot. When the signal is*emitted*, the slot function will be called.

- static void **disconnect**(

  ```
   CL_GObject *sender,
  CL_GMember signal,
  CL_GObject *reciever,
  CL_GSlot slot)
  ```

  ```
  Parameters:
  sender - a pointer to the object that emits the signal
  signal - the signal
  reciever - a pointer to the object that has a slot
  slot - the slot
  ```

  ```
  Description:
  ```

  Disconnects an existing connection between a signal and a slot

- static CL\_GObject \***get\_last\_sender**()

  ```
  Description:
  ```

  Returns the object that last sent the signal

  ```
  Return value:
  ```

  The object

- static int **get\_num\_signals**()

  ```
  Description:
  ```

  Returns the current total number of registered signals

  ```
  Return value:
  ```

  The number of registered signals

- static int **get\_num\_slot**()

  ```
  Description:
  ```

  Returns the current total number of registered slots

  ```
  Return value:
  ```

  The number of registered slots

- static int **get\_num\_connections**()

  ```
  Description:
  ```

  Returns the current total number of connections

  ```
  Return value:
  ```

  The number of slots

- static void **debug\_signals**()

  ```
  Description:
  ```

## SEE ALSO

All ClanLib API classes can be found in **clanlib (3)**.

## AUTHORS

Originally written by Magnus Norddahl \<*mbn@dark.x.dtu.dk*\> and Martin Starch \<*starch@dark.x.dtu.dk*\>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at **http://somewhere.in.the.world.org**).

See **clanlib (3)** to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.
