| Import line: | Pango = imports.gi.Pango; | 
| GIR File: | Pango-1.0.gir | 
| C documentation: | Pango.Matrix | 
| Struct : | Matrix | 
| Properties | Defined By | |
|---|---|---|
| 
				x0 : gdouble 
                   
                     
			 | Pango.Matrix | |
| 
				xx : gdouble 
                   
                     
			 | Pango.Matrix | |
| 
				xy : gdouble 
                   
                     
			 | Pango.Matrix | |
| 
				y0 : gdouble 
                   
                     
			 | Pango.Matrix | |
| 
				yx : gdouble 
                   
                     
			 | Pango.Matrix | |
| 
				yy : gdouble 
                   
                     
			 | 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
				
				 () 
			
				
					 : 
					gdouble
					
				
			
		 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
				
				 (gdouble 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. 
			
				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 | |
| 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: dx2 = dx1 * xx + dy1 * xy; dy2 = dx1 * yx + dy1 * yy; Affine transformations are position invariant, so the same vector always transforms to the same vector. If (x1,y1) transforms to (x2,y2) then (x1+dx1,y1+dy1) will transform to (x1+dx2,y1+dy2) for all values of x1 and x2. 
 
 | 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 | |
| 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. 
			
				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 | 
|---|---|
| Pango Method | Finds the gravity that best matches the rotation component in a PangoMatrix. | 
| Pango.Context Method | 
			get_matrix
				
				 () 
			
				
					 : 
					Pango.Matrix
					
				
			
		 Gets the transformation matrix that will be applied when rendering with this context. | 
| Pango.Context Method | 
			set_matrix
				
				 (Matrix matrix) 
			
				
					 : 
					none
					
				
			
		 Sets the transformation matrix that will be applied when rendering with this context. | 
| Pango.Renderer Method | 
			get_matrix
				
				 () 
			
				
					 : 
					Pango.Matrix
					
				
			
		 Gets the transformation matrix that will be applied when rendering. | 
| Pango.Renderer Method | 
			set_matrix
				
				 (Matrix matrix) 
			
				
					 : 
					none
					
				
			
		 Sets the transformation matrix that will be applied when rendering. | 
| PangoFT2 Method | 
			PangoFT2.render_transformed
				
				 (Bitmap bitmap, Matrix matrix, Font font, GlyphString glyphs, gint32 x, gint32 y) 
			
				
					 : 
					none
					
				
			
		 | 
| PangoXft Method | 
			PangoXft.render_transformed
				
				 (Draw draw, Color color, Matrix matrix, Font font, GlyphString glyphs, gint32 x, gint32 y) 
			
				
					 : 
					none
					
				
			
		 Renders a PangoGlyphString onto a XftDraw, possibly transforming the layed-out coordinates through a transformation matrix. |