Hoogle Search

Within LTS Haskell 24.58 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. matrixGetFontScaleFactor :: (HasCallStack, MonadIO m) => Maybe Matrix -> m Double

    gi-pango GI.Pango.Structs.Matrix

    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. If the scale in the X coordinate is needed as well, use matrixGetFontScaleFactors. Since: 1.12

  2. matrixGetFontScaleFactors :: (HasCallStack, MonadIO m) => Maybe Matrix -> m (Double, Double)

    gi-pango GI.Pango.Structs.Matrix

    Calculates the scale factor of a matrix on the width and height of the font. That is, xscale is the scale factor in the direction of the X coordinate, and yscale is the scale factor in the direction perpendicular to the vector that the X coordinate is mapped to. Note that output numbers will always be non-negative. Since: 1.38

  3. matrixGetSlantRatio :: (HasCallStack, MonadIO m) => Matrix -> m Double

    gi-pango GI.Pango.Structs.Matrix

    Gets the slant ratio of a matrix. For a simple shear matrix in the form: 1 λ 0 1 this is simply λ. Since: 1.50

  4. matrixRotate :: (HasCallStack, MonadIO m) => Matrix -> Double -> m ()

    gi-pango GI.Pango.Structs.Matrix

    Changes the transformation represented by matrix to be the transformation given by first rotating by degrees degrees counter-clockwise then applying the original transformation. Since: 1.6

  5. matrixScale :: (HasCallStack, MonadIO m) => Matrix -> Double -> Double -> m ()

    gi-pango GI.Pango.Structs.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. Since: 1.6

  6. matrixTransformDistance :: (HasCallStack, MonadIO m) => Maybe Matrix -> Double -> Double -> m (Double, Double)

    gi-pango GI.Pango.Structs.Matrix

    Transforms the distance vector (dx,dy) by matrix. This is similar to matrixTransformPoint, 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. Since: 1.16

  7. matrixTransformPixelRectangle :: (HasCallStack, MonadIO m) => Maybe Matrix -> Maybe Rectangle -> m ()

    gi-pango GI.Pango.Structs.Matrix

    First transforms the rect using matrix, then calculates the bounding box of the transformed rectangle. This function is useful for example when you want to draw a rotated pangoLayout to an image buffer, and want to know how large the image should be and how much you should shift the layout when rendering. For better accuracy, you should use matrixTransformRectangle on original rectangle in Pango units and convert to pixels afterward using [funcextentsToPixels]'s first argument. Since: 1.16

  8. matrixTransformPoint :: (HasCallStack, MonadIO m) => Maybe Matrix -> Double -> Double -> m (Double, Double)

    gi-pango GI.Pango.Structs.Matrix

    Transforms the point (x, y) by matrix. Since: 1.16

  9. matrixTranslate :: (HasCallStack, MonadIO m) => Matrix -> Double -> Double -> m ()

    gi-pango GI.Pango.Structs.Matrix

    Changes the transformation represented by matrix to be the transformation given by first translating by (tx, ty) then applying the original transformation. Since: 1.6

  10. newZeroMatrix :: MonadIO m => m Matrix

    gi-pango GI.Pango.Structs.Matrix

    Construct a Matrix struct initialized to zero.

Page 257 of many | Previous | Next