Graphi...riented(3pm)

πŸ“¦
version 0.67 Β· 2 versions
  • 0.67 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.67 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… Graphics::Primitive::Oriented β€” the vibe check on orientation

okay so bestie, welcome to Graphics::Primitive::Oriented (that's the Graphi...riented(3pm) page from your User Contributed Perl Documentation, mwah πŸŽ€). It's a role, not a whole module you run β€” it's the little accessory your components put on when they care about which way they're facing. πŸ‘‘


✨ NAME ✨

Graphics::Primitive::Oriented β€” it's giving role for components that care about orientation. That's it, that's the whole name, slay.


🌸 SYNOPSIS 🌸

so like, some components (or things that use components, iykyk) need a lil more info than just origin and width/height. The orientation role lets a component say whether it's vertically or horizontally oriented. Periodt. πŸ’–

package My::Component;

extends 'Graphics::Primitive::Component';

with 'Graphics::Primitive::Oriented';

1;

look at her go πŸ¦‹ literally three lines and she's oriented.


🧚 METHODS 🧚

  • is_vertical β€” returns true if the component is vertically oriented. standing up, main character energy, no cap. ⬆️
  • is_horizontal β€” returns true if the component is not vertically oriented. that's the whole bit. she's horizontal by definition of not being vertical, iconic. ➑️
  • orientation β€” the way a component is oriented, fr fr. Values allowed are 'horizontal' or 'vertical'. that's the menu, bestie, don't try to order anything else. πŸ’€

πŸ’œ AUTHOR πŸ’œ

Cory Watson, <gphat@cpan.org> β€” shoutout to the author, king behavior πŸ‘‘


🌈 SEE ALSO 🌈

  • perl(1) β€” go read your basics bestie, it's good for you πŸ“

Copyright 2008-2010 by Cory G Watson.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. so like, same terms as Perl, respect the license pls πŸ™ˆ


and that's the whole page, we ate and left no crumbs πŸ’…βœ¨

signing off from perl v5.34.0, dated 2022-06-14, on the Graphi...riented(3pm) page β€” love u, bye bestie πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from