RSVG Libary Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
enum RsvgHandleFlags; void rsvg_handle_set_base_gfile (RsvgHandle *handle
,GFile *base_file
); gboolean rsvg_handle_read_stream_sync (RsvgHandle *handle
,GInputStream *stream
,GCancellable *cancellable
,GError **error
); RsvgHandle * rsvg_handle_new_from_gfile_sync (GFile *file
,RsvgHandleFlags flags
,GCancellable *cancellable
,GError **error
); RsvgHandle * rsvg_handle_new_from_stream_sync (GInputStream *input_stream
,GFile *base_file
,RsvgHandleFlags flags
,GCancellable *cancellable
,GError **error
);
void rsvg_handle_set_base_gfile (RsvgHandle *handle
,GFile *base_file
);
Set the base URI for handle
from file
.
Note: This function may only be called before rsvg_handle_write()
or rsvg_handle_read_stream_sync()
has been called.
|
a RsvgHandle |
|
a GFile |
Since 2.32
gboolean rsvg_handle_read_stream_sync (RsvgHandle *handle
,GInputStream *stream
,GCancellable *cancellable
,GError **error
);
Reads stream
and writes the data from it to handle
.
If cancellable
is not NULL
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the
operation was cancelled, the error G_IO_ERROR_CANCELLED will be
returned.
|
a RsvgHandle |
|
a GInputStream |
|
a GCancellable, or NULL . [allow-none]
|
|
a location to store a GError, or NULL . [allow-none]
|
Returns : |
TRUE if reading stream succeeded, or FALSE otherwise
with error filled in |
Since 2.32
RsvgHandle * rsvg_handle_new_from_gfile_sync (GFile *file
,RsvgHandleFlags flags
,GCancellable *cancellable
,GError **error
);
Creates a new RsvgHandle for file
.
If cancellable
is not NULL
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the
operation was cancelled, the error G_IO_ERROR_CANCELLED will be
returned.
|
a GFile |
|
flags from RsvgHandleFlags |
|
a GCancellable, or NULL . [allow-none]
|
|
a location to store a GError, or NULL . [allow-none]
|
Returns : |
a new RsvgHandle on success, or NULL with error filled in |
Since 2.32
RsvgHandle * rsvg_handle_new_from_stream_sync (GInputStream *input_stream
,GFile *base_file
,RsvgHandleFlags flags
,GCancellable *cancellable
,GError **error
);
Creates a new RsvgHandle for stream
.
If cancellable
is not NULL
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the
operation was cancelled, the error G_IO_ERROR_CANCELLED will be
returned.
|
a GInputStream |
|
a GFile, or NULL . [allow-none]
|
|
flags from RsvgHandleFlags |
|
a GCancellable, or NULL . [allow-none]
|
|
a location to store a GError, or NULL . [allow-none]
|
Returns : |
a new RsvgHandle on success, or NULL with error filled in |
Since 2.32