GObject.TypeClass.ref
Description: Reference for GObject.TypeClass.ref

### Function

# GObject TypeClassref

deprecated: 2.84

#### Declaration [src]

    GObjectTypeClass*
    g_type_class_ref (
      GType type
    )

#### Description [src]

Increments the reference count of the class structure belonging to `type`.

This function will demand-create the class if it doesn’t exist already.

Deprecated since: 2.84

Use `g_type_class_get()` instead.

This function is not directly available to language bindings.

#### Parameters

`type`

  Type: `GType`

  Type ID of a classed type.

#### Return value

Type: `GTypeClass`

The `GTypeClass` structure for the given type ID.

The caller of the function takes ownership of the data, and is responsible for freeing it.