Method

GtkTextViewadd_child_in_window

Declaration [src]

void
gtk_text_view_add_child_in_window (
  GtkTextView* text_view,
  GtkWidget* child,
  GtkTextWindowType which_window,
  gint xpos,
  gint ypos
)

Description [src]

Adds a child at fixed coordinates in one of the text widget’s windows.

The window must have nonzero size (see gtk_text_view_set_border_window_size()). Note that the child coordinates are given relative to scrolling. When placing a child in #GTK_TEXT_WINDOW_WIDGET, scrolling is irrelevant, the child floats above all scrollable areas. But when placing a child in one of the scrollable windows (border windows or text window) it will move with the scrolling as needed.

Parameters

child

Type: GtkWidget

A GtkWidget.

The data is owned by the caller of the function.
which_window

Type: GtkTextWindowType

Which window the child should appear in.

xpos

Type: gint

X position of child in window coordinates.

ypos

Type: gint

Y position of child in window coordinates.