Function gtk::render_arrow[][src]

pub fn render_arrow<P: IsA<StyleContext>>(
    context: &P,
    cr: &Context,
    angle: f64,
    x: f64,
    y: f64,
    size: f64
)
Expand description

Renders an arrow pointing to angle.

Typical arrow rendering at 0, 1⁄2 π;, π; and 3⁄2 π:

context

a StyleContext

cr

a cairo::Context

angle

arrow angle from 0 to 2 * G_PI, being 0 the arrow pointing to the north

x

X origin of the render area

y

Y origin of the render area

size

square side for render area