func (c CairoContext) GetMatrix() (*CairoMatrix, error) { var m CairoMatrix C.cairo_get_matrix(c.nativePointer(), (*C.struct__cairo_matrix)(unsafe.Pointer(&m))) return &m, c.status() }
// void cairo_get_matrix (cairo_t *cr, cairo_matrix_t *matrix); func (self *Surface) GetMatrix(matrix Matrix) { C.cairo_get_matrix(self.context, matrix.cairo_matrix_t()) }
//Matrix returns the current transformation matrix. // //Originally cairo_get_matrix. func (c *Context) Matrix() Matrix { var m C.cairo_matrix_t C.cairo_get_matrix(c.c, &m) return Matrix{m} }