resvg_get_node_stroke_bbox method

bool resvg_get_node_stroke_bbox(
  1. Pointer<resvg_render_tree> tree,
  2. Pointer<Char> id,
  3. Pointer<resvg_rect> bbox
)

@brief Returns node's bounding box, including stroke, in canvas coordinates by ID.

@param tree Render tree. @param id Node's ID. Must not be NULL. @param bbox Node's bounding box. @return false if a node with such an ID does not exist @return false if ID isn't a UTF-8 string. @return false if ID is an empty string

Implementation

bool resvg_get_node_stroke_bbox(
  ffi.Pointer<resvg_render_tree> tree,
  ffi.Pointer<ffi.Char> id,
  ffi.Pointer<resvg_rect> bbox,
) {
  return _resvg_get_node_stroke_bbox(
    tree,
    id,
    bbox,
  );
}