Import line: | Pango = imports.gi.Pango; |
GIR File: | Pango-1.0.gir |
C documentation: | Pango.Matrix |
Struct : | Matrix |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
x0 : Number
|
Pango.Matrix | |
xx : Number
|
Pango.Matrix | |
xy : Number
|
Pango.Matrix | |
y0 : Number
|
Pango.Matrix | |
yx : Number
|
Pango.Matrix | |
yy : Number
|
Pango.Matrix |
Method / Constructor | Defined By | |
---|---|---|
new Pango.Matrix
()
Create a new Pango.Matrix
Create a new Pango.Matrix
|
||
concat
(Matrix new_matrix)
:
none
Changes the transformation represented by matrix to be the transformation given by first applying transformation given by new_matrix then applying the original transformation.
Changes the transformation represented by matrix to be the transformation given by first applying transformation given by new_matrix then applying the original transformation.
|
Pango.Matrix | |
copy
()
:
Pango.Matrix
Copies a PangoMatrix.
Copies a PangoMatrix. be freed with pango_matrix_free(), or NULL if
|
Pango.Matrix | |
free
()
:
none
Free a PangoMatrix created with pango_matrix_copy().
Free a PangoMatrix created with pango_matrix_copy().
|
Pango.Matrix | |
get_font_scale_factor
()
:
Number
Returns the scale factor of a matrix on the height of the font.
Returns the scale factor of a matrix on the height of the font. That is, the scale factor in the direction perpendicular to the vector that the X coordinate is mapped to. or 1.0 if matrix is NULL.
|
Pango.Matrix | |
rotate
(Number degrees)
:
none
Changes the transformation represented by matrix to be the transformation given by first rotating by degrees degrees counter-clockwise then applying the original transformation.
Changes the transformation represented by matrix to be the transformation given by first rotating by degrees degrees counter-clockwise then applying the original transformation.
|
Pango.Matrix | |
Changes the transformation represented by matrix to be the transformation given by first scaling by sx in the X direction and sy in the Y direction then applying the original transformation.
|
Pango.Matrix | |
transform_distance
()
:
Object
Transforms the distance vector (dx,dy) by matrix.
Transforms the distance vector (dx,dy) by matrix. This is similar to pango_matrix_transform_point() except that the translation components of the transformation are ignored. The calculation of the returned vector is as follows:
|
Pango.Matrix | |
transform_pixel_rectangle
(Rectangle rect)
:
none
First transforms the rect using matrix, then calculates the bounding box of the transformed rectangle.
First transforms the rect using matrix, then calculates the bounding box of the transformed rectangle. The rectangle should be in device units (pixels). This function is useful for example when you want to draw a rotated should be and how much you should shift the layout when rendering. For better accuracy, you should use pango_matrix_transform_rectangle() on original rectangle in Pango units and convert to pixels afterward using pango_extents_to_pixels()'s first argument.
|
Pango.Matrix | |
transform_point
()
:
Object
|
Pango.Matrix | |
transform_rectangle
(Rectangle rect)
:
none
First transforms rect using matrix, then calculates the bounding box of the transformed rectangle.
First transforms rect using matrix, then calculates the bounding box of the transformed rectangle. The rectangle should be in Pango units. This function is useful for example when you want to draw a rotated should be and how much you should shift the layout when rendering. If you have a rectangle in device units (pixels), use pango_matrix_transform_pixel_rectangle(). If you have the rectangle in Pango units and want to convert to transformed pixel bounding box, it is more accurate to transform it first (using this function) and pass the result to pango_extents_to_pixels(), first argument, for an inclusive rounded rectangle. However, there are valid reasons that you may want to convert to pixels first and then transform, for example when the transformed coordinates may overflow in Pango units (large matrix translation for example).
|
Pango.Matrix | |
Changes the transformation represented by matrix to be the transformation given by first translating by (tx, ty) then applying the original transformation.
|
Pango.Matrix |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gdk
Method |
Gdk.draw_glyphs_transformed
(Drawable drawable, GC gc, Matrix matrix, Font font, Number x, Number y, GlyphString glyphs)
:
none
Renders a PangoGlyphString onto a drawable, possibly transforming the layed-out coordinates through a transformation matrix.
|
Pango
Method |
Finds the gravity that best matches the rotation component in a PangoMatrix.
|
Pango.Context
Method |
set_matrix
(Matrix matrix)
:
none
Sets the transformation matrix that will be applied when rendering with this context.
|
Pango.Context
Method |
get_matrix
()
:
Pango.Matrix
Gets the transformation matrix that will be applied when rendering with this context.
|
Pango.Renderer
Method |
set_matrix
(Matrix matrix)
:
none
Sets the transformation matrix that will be applied when rendering.
|
Pango.Renderer
Method |
get_matrix
()
:
Pango.Matrix
Gets the transformation matrix that will be applied when rendering.
|
PangoFT2
Method |
PangoFT2.render_transformed
(Bitmap bitmap, Matrix matrix, Font font, GlyphString glyphs, Number x, Number y)
:
none
|
PangoXft
Method |
PangoXft.render_transformed
(Draw draw, Color color, Matrix matrix, Font font, GlyphString glyphs, Number x, Number y)
:
none
Renders a PangoGlyphString onto a XftDraw, possibly transforming the layed-out coordinates through a transformation matrix.
|