Method

Pango.Layout.get_cursor_pos

Declaration [src]

void
pango_layout_get_cursor_pos (
  PangoLayout* layout,
  int index_,
  PangoRectangle* strong_pos,
  PangoRectangle* weak_pos
)

Description [src]

Given an index within a layout, determines the positions that of the strong and weak cursors if the insertion point is at that index.

The position of each cursor is stored as a zero-width rectangle. The strong cursor location is the location where characters of the directionality equal to the base direction of the layout are inserted. The weak cursor location is the location where characters of the directionality opposite to the base direction of the layout are inserted.

Parameters

index_ int
 

the byte index of the cursor

strong_pos PangoRectangle
 

location to store the strong cursor position

 Direction: out
 The data is owned by the caller of the function
weak_pos PangoRectangle
 

location to store the weak cursor position

 Direction: out
 The data is owned by the caller of the function