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

### Function

# GObject TypeClassref

#### Declaration

    GObjectTypeClass*
    g_type_class_ref (
      GType type
    )

#### Description

Increments the reference count of the class structure belonging to `type`. This function will demand-create the class if it doesn’t exist already.

#### Parameters

`type`

  Type: `GType`

  Type ID of a classed type.

#### Return value

Type: `GTypeClass`

The `GTypeClass` structure for the given type ID.

The data is owned by the called function.