class Vips::TargetCustom
Overview
Target
you can connect handlers to implement behavior.
Direct Known Subclasses
Defined in:
vips/target.crConstructors
Instance Method Summary
-
#on_finish(&block : -> )
The block is executed at the end of write.
-
#on_write(&block : Bytes -> Int64)
The block is executed to write data to the target.
Instance methods inherited from class Vips::Target
blob : Bytes
blob
Class methods inherited from class Vips::Target
new_to_descriptor(descriptor : Int32)
new_to_descriptor,
new_to_file(filename : String)
new_to_file,
new_to_memory
new_to_memory
Instance methods inherited from class Vips::Connection
filename : String | Nil
filename,
nick : String | Nil
nick
Instance methods inherited from class Vips::VipsObject
get(name : String)
get,
get_blurb(name : String)
get_blurb,
get_description
get_description,
get_pspec(name : String) : LibVips::GParamSpec | Nil
get_pspec,
get_typeof(name : String)
get_typeof,
post_close(&block : -> )
post_close,
print_all
print_all,
set(gtype, name, value)set(options : String) set
Instance methods inherited from class Vips::GObject
get(name : String, gval : GValue)
get,
object_ref
object_ref,
ref_count
ref_count,
release_handle
release_handle,
set(name : String, gval : GValue)
set,
signal_connect(signal : String, callback : Proc, data : Pointer(Void) = Pointer(Void).null) : LibVips::Gulong
signal_connect,
signal_disconnect(handler_id : LibVips::Gulong)signal_disconnect(func : Proc, data : Pointer(Void) = Pointer(Void).null)
signal_disconnect(data : LibVips::Gpointer) signal_disconnect
Constructor Detail
Instance Method Detail
def on_finish(&block : -> )
#
The block is executed at the end of write. It should do any necessary finishing action, such as closing a file or flushing IO
def on_write(&block : Bytes -> Int64)
#
The block is executed to write data to the target. The interface is exactly as IO::write, ie. it should write the bytes and return the number of bytes written.