Vips.Object¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Class description |
||
r/w |
Class nickname |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
argument_table |
r |
||
close |
r |
||
constructed |
r |
||
description |
r |
||
local_memory |
r |
||
nickname |
r |
||
parent_instance |
r |
||
postclose |
r |
||
static_object |
r |
Class Details¶
- class Vips.Object(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- classmethod get_property(gobject, property_id, value, pspec)¶
- Parameters:
gobject (
GObject.Object
) –property_id (
int
) –value (
GObject.Value
) –pspec (
GObject.ParamSpec
) –
- classmethod install_argument(pspec, flags, priority, offset)¶
- Parameters:
pspec (
GObject.ParamSpec
) –flags (
Vips.ArgumentFlags
) –priority (
int
) –offset (
int
) –
- classmethod new_from_string(object_class, p)¶
- Parameters:
object_class (
Vips.ObjectClass
) –p (
str
) –
- Return type:
- classmethod print_all()¶
- classmethod print_summary_class(klass)¶
- Parameters:
klass (
Vips.ObjectClass
) –
- classmethod sanity_all()¶
- classmethod set_property(gobject, property_id, value, pspec)¶
- Parameters:
gobject (
GObject.Object
) –property_id (
int
) –value (
GObject.Value
) –pspec (
GObject.ParamSpec
) –
- argument_isset(name)¶
-
Convenience: has an argument been assigned. Useful for bindings.
- get_argument_flags(name)¶
- Parameters:
name (
str
) – arg to fetch- Returns:
The
Vips.ArgumentFlags
for this argument.- Return type:
Convenience: get the flags for an argument. Useful for bindings.
- get_argument_priority(name)¶
-
Convenience: get the priority for an argument. Useful for bindings.
- get_description()¶
- Returns:
the object description
- Return type:
Fetch the object description. Useful for language bindings.
self.description is only available after _build(), which can be too late. This function fetches from the instance, if possible, but falls back to the class description if we are too early.
- local_cb(gobject)¶
- Parameters:
gobject (
GObject.Object
) –
- preclose()¶
- print_dump()¶
- print_name()¶
- print_summary()¶
- rewind()¶
- set_from_string(string)¶
- Parameters:
string (
str
) – arguments as a string- Returns:
0 on success, -1 on error
- Return type:
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.
You’d typically use this between creating the object and building it.
See also: vips_object_set(),
Vips.Object.build
(), vips_cache_operation_buildp().
- to_string(buf)¶
- Parameters:
buf (
Vips.Buf
) – write string here
The inverse of
Vips.Object.new_from_string
(): turn self into eg. “VipsInterpolateSnohalo1(blur=.333333)”.
- unref_outputs()¶
Unref all assigned output objects. Useful for language bindings.
After an object is built, all output args are owned by the caller. If something goes wrong before then, we have to unref the outputs that have been made so far. This function can also be useful for callers when they’ve finished processing outputs themselves.
See also:
Vips.cache_operation_build
().
- do_close() virtual¶
- do_postclose() virtual¶
- do_preclose() virtual¶
- do_rewind() virtual¶
- do_to_string(buf) virtual¶
- Parameters:
buf (
Vips.Buf
) – write string here
The inverse of
Vips.Object.new_from_string
(): turn object into eg. “VipsInterpolateSnohalo1(blur=.333333)”.
Signal Details¶
- Vips.Object.signals.close(object)¶
- Signal Name:
close
- Flags:
- Parameters:
object (
Vips.Object
) – The object which received the signal
The
::close
signal is emitted once during object close. The object is dying and may not work.
- Vips.Object.signals.postbuild(object)¶
- Signal Name:
postbuild
- Flags:
- Parameters:
object (
Vips.Object
) – The object which received the signal- Return type:
The
::postbuild
signal is emitted once just after successful object construction. Return non-zero to cause object construction to fail.
- Vips.Object.signals.postclose(object)¶
- Signal Name:
postclose
- Flags:
- Parameters:
object (
Vips.Object
) – The object which received the signal
The
::postclose
signal is emitted once after object close. The object pointer is still valid, but nothing else.
- Vips.Object.signals.preclose(object)¶
- Signal Name:
preclose
- Flags:
- Parameters:
object (
Vips.Object
) – The object which received the signal
The
::preclose
signal is emitted once just before object close starts. The object is still alive.
Property Details¶
- Vips.Object.props.description¶
-
Class description