package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Text_child_anchor/index.html

Module Wrappers.Text_child_anchor

type t = [ `text_child_anchor | `object_ ] Gobject.obj
val new_ : unit -> t

Create a new TextChildAnchor

val new_with_replacement : string -> t

Create a new TextChildAnchor

val get_widgets : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj array * int

Gets a list of all widgets anchored at this child anchor.

The order in which the widgets are returned is not defined.

val get_deleted : t -> bool

Determines whether a child anchor has been deleted from the buffer.

Keep in mind that the child anchor will be unreferenced when removed from the buffer, so you need to hold your own reference (with g_object_ref()) if you plan to use this function — otherwise all deleted child anchors will also be finalized.