Class
VipsObject
Description
abstract class Vips.Object : GObject.Object {
parent_instance: GObject,
constructed: gboolean,
static_object: gboolean,
argument_table: VipsArgumentTable*,
nickname: char*,
description: char*,
preclose: gboolean,
close: gboolean,
postclose: gboolean,
local_memory: size_t
}
Constructors
vips_object_new
G_object_new() the object, set any arguments with set
, call
vips_object_build()
and return the complete object.
vips_object_new_from_string
Functions
vips_object_get_property
vips_object_map
Call a function for all alive objects.
Stop when fn
returns non-NULL
and return that value.
vips_object_print_all
vips_object_print_summary_class
vips_object_sanity_all
vips_object_set_property
vips_object_summary_class
Generate a human-readable summary for a class.
Instance methods
vips_object_argument_needsstring
vips_object_build
vips_object_dump
Dump everything that vips knows about an object to a string.
vips_object_get_args
Get all %GParamSpec names and VipsArgumentFlags
for an object.
vips_object_get_argument
Look up the three things you need to work with a vips argument.
vips_object_get_argument_to_string
vips_object_get_description
Fetch the object description. Useful for language bindings.
vips_object_local_array
Make an array of NULL VipsObject pointers. When parent
closes, every
non-NULL pointer in the array will be unreffed and the array will be
freed. Handy for creating a set of temporary images for a function.
vips_object_local_cb
vips_object_preclose
vips_object_print_dump
vips_object_print_name
vips_object_print_summary
vips_object_rewind
vips_object_sanity
vips_object_set
Set a list of vips object arguments. For example:
vips_object_set_argument_from_string
vips_object_set_from_string
Set object arguments from a string. The string can be something like “a=12”, or “a = 12, b = 13”, or “fred”. The string can optionally be enclosed in brackets.
vips_object_set_required
vips_object_set_static
vips_object_set_valist
See vips_object_set().
vips_object_summary
Generate a human-readable summary for an object.
vips_object_to_string
The inverse of vips_object_new_from_string(): turn object
into eg. “VipsInterpolateSnohalo1(blur=.333333)”.
vips_object_unref_outputs
Unref all assigned output objects. Useful for language bindings.
Properties
Vips.Object:description
Vips.Object:nickname
Signals
Vips.Object::close
The ::close signal is emitted once during object close. The object is dying and may not work.
Vips.Object::postbuild
The ::postbuild signal is emitted once just after successful object construction. Return non-zero to cause object construction to fail.
Vips.Object::postclose
The ::postclose signal is emitted once after object close. The object pointer is still valid, but nothing else.
Vips.Object::preclose
The ::preclose signal is emitted once just before object close starts. The oject is still alive.
Signals inherited from GObject (1)
GObject.Object::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct VipsObjectClass {
GObjectClass parent_class;
int (* build) (
VipsObject* object
);
int (* postbuild) (
VipsObject* object,
void* data
);
void (* summary_class) (
_VipsObjectClass* cls,
VipsBuf* buf
);
void (* summary) (
VipsObject* object,
VipsBuf* buf
);
void (* dump) (
VipsObject* object,
VipsBuf* buf
);
void (* sanity) (
VipsObject* object,
VipsBuf* buf
);
void (* rewind) (
VipsObject* object
);
void (* preclose) (
VipsObject* object
);
void (* close) (
VipsObject* object
);
void (* postclose) (
VipsObject* object
);
VipsObject* (* new_from_string) (
const char* string
);
void (* to_string) (
VipsObject* object,
VipsBuf* buf
);
gboolean output_needs_arg;
int (* output_to_arg) (
VipsObject* object,
const char* string
);
const char* nickname;
const char* description;
VipsArgumentTable* argument_table;
GSList* argument_table_traverse;
GType argument_table_traverse_gtype;
gboolean deprecated;
void (* _vips_reserved1) (
void
);
void (* _vips_reserved2) (
void
);
void (* _vips_reserved3) (
void
);
void (* _vips_reserved4) (
void
);
}
Class members
parent_class |
|
No description available. | |
build |
|
No description available. | |
postbuild |
|
No description available. | |
summary_class |
|
No description available. | |
summary |
|
No description available. | |
dump |
|
No description available. | |
sanity |
|
No description available. | |
rewind |
|
No description available. | |
preclose |
|
No description available. | |
close |
|
No description available. | |
postclose |
|
No description available. | |
new_from_string |
|
No description available. | |
to_string |
|
No description available. | |
output_needs_arg |
|
No description available. | |
output_to_arg |
|
No description available. | |
nickname |
|
No description available. | |
description |
|
No description available. | |
argument_table |
|
No description available. | |
argument_table_traverse |
|
No description available. | |
argument_table_traverse_gtype |
|
No description available. | |
deprecated |
|
No description available. | |
_vips_reserved1 |
|
No description available. | |
_vips_reserved2 |
|
No description available. | |
_vips_reserved3 |
|
No description available. | |
_vips_reserved4 |
|
No description available. |
Virtual methods
Vips.ObjectClass.build
Vips.ObjectClass.close
Vips.ObjectClass.dump
Dump everything that vips knows about an object to a string.
Vips.ObjectClass.output_to_arg
Vips.ObjectClass.postbuild
Vips.ObjectClass.postclose
Vips.ObjectClass.preclose
Vips.ObjectClass.rewind
Vips.ObjectClass.sanity
Vips.ObjectClass.summary
Generate a human-readable summary for an object.
Vips.ObjectClass.to_string
The inverse of vips_object_new_from_string(): turn object
into eg. “VipsInterpolateSnohalo1(blur=.333333)”.