// GENERATED — DO NOT EDIT

///|
#borrow(text, attr_list, attrs)
extern "c" fn moonbit_pango_attr_break(
  text : Bytes,
  length : Int,
  attr_list : AttrList,
  offset : Int,
  attrs : Ref[FixedArray[LogAttr]],
) = "moonbit_pango_attr_break"

///|
/// [Upstream documentation](https://gnome.pages.gitlab.gnome.org/pango/Pango/func.attr_break.html).
pub fn attr_break(
  text : String,
  length : Int,
  attr_list : AttrList,
  offset : Int,
  attrs : Array[LogAttr],
) -> Unit {
  let attrs_ref : Ref[FixedArray[LogAttr]] = Ref(FixedArray::from_array(attrs))
  moonbit_pango_attr_break(
    @encoding/utf8.encode(text),
    length,
    attr_list,
    offset,
    attrs_ref,
  )
}