Function gtk::render_insertion_cursor[][src]

pub fn render_insertion_cursor<P: IsA<StyleContext>>(
    context: &P,
    cr: &Context,
    x: f64,
    y: f64,
    layout: &Layout,
    index: i32,
    direction: Direction
)
Expand description

Draws a text caret on cr at the specified index of layout.

context

a StyleContext

cr

a cairo::Context

x

X origin

y

Y origin

layout

the pango::Layout of the text

index

the index in the pango::Layout

direction

the pango::Direction of the text