resvg_node_exists method

bool resvg_node_exists(
  1. Pointer<resvg_render_tree> tree,
  2. Pointer<Char> id
)

@brief Returns true if a renderable node with such an ID exists.

@param tree Render tree. @param id Node's ID. UTF-8 string. Must not be NULL. @return true if a node exists. @return false if a node doesn't exist or ID isn't a UTF-8 string. @return false if a node exists, but not renderable.

Implementation

bool resvg_node_exists(
  ffi.Pointer<resvg_render_tree> tree,
  ffi.Pointer<ffi.Char> id,
) {
  return _resvg_node_exists(
    tree,
    id,
  );
}