Vips.Argument

Fields

Name

Type

Access

Description

pspec

GObject.ParamSpec

r/w

Methods

class

map (object, fn, a, b)

Details

class Vips.Argument

libvips has a simple mechanism for automating at least some aspects of [class`GObject`.Object] properties. You add a set of macros to your _class_init() which describe the arguments, and set the get and set functions to the libvips ones.

See extending for a complete example.

classmethod map(object, fn, a, b)
Parameters:
Returns:

NULL if fn returns NULL for all arguments, otherwise the first non-NULL value from fn.

Return type:

object or None

Loop over the [struct`Argument`] of an object. Stop when fn returns non-NULL and return that value.