get_by_id


Description:

[ Version ( since = "3.0" ) ]
public static unowned Item? get_by_id (int32 item_id)

Returns a Item representing item_id.

Since Item is an abstract class, the real object type will actually be the proper subclass.

Note: in most use cases, you should not need to retrieve a Item by its ID, which is mostly internal data and not reusable across sessions. Use the appropriate functions for your use case instead.

Parameters:

item_id

The item id.

Returns:

a Item for item_id or null if item_id does not represent a valid item. The object belongs to libgimp and you must not modify or unref it.