Method

MatekbdKeyboardDrawingrender

Declaration [src]

gboolean
matekbd_keyboard_drawing_render (
  MatekbdKeyboardDrawing* kbdrawing,
  cairo_t* cr,
  PangoLayout* layout,
  double x,
  double y,
  double width,
  double height,
  gdouble dpi_x,
  gdouble dpi_y
)

Description [src]

Renders a keyboard layout to a cairo_t context. cr and layout can be got from e.g. a GtkWidget or a GtkPrintContext. cr and layout may be modified by the function but will not be unreffed.

Parameters

cr

Type: cairo_t

Cairo context to render to.

The data is owned by the caller of the method.
layout

Type: PangoLayout

Pango layout to use to render text.

The data is owned by the caller of the method.
x

Type: double

Left coordinate (pixels) of region to render in.

y

Type: double

Top coordinate (pixels) of region to render in.

width

Type: double

Width (pixels) of region to render in.

height

Type: double

Height (pixels) of region to render in.

dpi_x

Type: gdouble

No description available.

dpi_y

Type: gdouble

No description available.

Return value

Type: gboolean

TRUE on success, FALSE on failure.