Pango::Matrix(3)

πŸ’– NAME πŸ’–

Pango::Matrix β€” wrapper for PangoMatrix. That's the whole vibe. Welcome to Pango::Matrix(3), bestie, straight from the User Contributed Perl Documentation. πŸ’…


πŸ¦‹ HIERARCHY πŸ¦‹

Like, the family tree is right here:

Glib::Boxed
+----Pango::Matrix

✨ METHODS ✨

Okay so here's the full menu, no skips, no cap:

  • matrix = Pango::Matrix->new ($xx=1., $xy=0., $yx=0., $yy=1., $x0=0., $y0=0.) β€” constructor time, bestie. You get these six doubles:
    • $xx (double)
    • $xy (double)
    • $yx (double)
    • $yy (double)
    • $x0 (double)
    • $y0 (double)
  • $matrix->concat ($new_matrix) β€” hand it another matrix and it does its concat thing:
    • $new_matrix (Pango::Matrix)
  • $matrix->rotate ($degrees) β€” spin it by $degrees:
    • $degrees (double)
  • $matrix->scale ($scale_x, $scale_y) β€” scale-o'clock:
    • $scale_x (double)
    • $scale_y (double)
  • (dx, dy) = $matrix->transform_distance ($dx, $dy) β€” give it $dx and $dy, get (dx, dy) back:
    • $dx (double)
    • $dy (double)
    • Since: pango 1.16
  • array reference = $matrix->transform_pixel_rectangle ($rect) β€” array ref in, array ref out:
    • $rect (array reference)
    • Since: pango 1.16
  • (x, y) = $matrix->transform_point ($x, $y) β€” give it $x and $y, get (x, y) back:
    • $x (double)
    • $y (double)
    • Since: pango 1.16
  • array reference = $matrix->transform_rectangle ($rect) β€” another array ref in, array ref out moment:
    • $rect (array reference)
    • Since: pango 1.16
  • $matrix->translate ($tx, $ty) β€” translate by $tx and $ty:
    • $tx (double)
    • $ty (double)
  • double = $matrix->x0 ($new) β€” x0 getter/setter energy:
    • $new (double)
  • double = $matrix->xx ($new=0) β€” xx getter/setter, and yes $new defaults to 0:
    • $new (double)
  • double = $matrix->xy ($new) β€” xy getter/setter:
    • $new (double)
  • double = $matrix->y0 ($new) β€” y0 getter/setter:
    • $new (double)
  • double = $matrix->yx ($new) β€” yx getter/setter:
    • $new (double)
  • double = $matrix->yy ($new) β€” yy getter/setter:
    • $new (double)

πŸ” SEE ALSO πŸ”

Go look at Pango and Glib::Boxed, bestie. They're right there.


Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Pango for a full notice.

bye bestie 🫢 this iconic page is from perl v5.42.0, dated 2019-09-16, and it's Pango::Matrix(3) β€” periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from