pods::SDL::Rect(3pm)
πΈ NAME πΈ
Welcome to the pods::SDL::Rect(3pm) page β part of the User Contributed Perl Documentation, bestie. This oneβs about SDL::Rect β it defines a rectangular area. Periodt. π
π CATEGORY π
Core, Video, Structure β thatβs the category trio, no cap. Itβs giving core video structure energy. β¨
β¨ SYNOPSIS β¨
Okay so hereβs the whole vibe in code:
my $rect = SDL::Rect->new(0, 0, 50, 4);
$rect->x(1);
$rect->y(2);
$rect->w(3);
my $x = $rect->x; # 1
my $y = $rect->y; # 2
my $w = $rect->w; # 3
my $h = $rect->h; # 4
π¦ DESCRIPTION π¦
An SDL_Rect is a rectangular area of pixels β thatβs the definition, bestie. Itβs a rectangle. Thatβs the whole plot. π
π METHODS π
new β¨
my $rect = SDL::Rect->new( $x, $y, $w, $h );
The constructor spins up a new rectangle using the specified x, y, width and height values. Slay. π
x π
my $x = $rect->x;
$rect->x(128);
Pass in a value and this method sets the x component of the rectangle; pass nothing and it returns the x component of the rectangle. Getter/setter realness. β¨
y π
my $y = $rect->y;
$rect->y(128);
Pass in a value and this method sets the y component of the rectangle; pass nothing and it returns the y component of the rectangle. Same energy, different letter. π
w π
my $w = $rect->w;
$rect->w(128);
Pass in a value and this method sets the w component of the rectangle; pass nothing and it returns the w component of the rectangle. Width business, handled. π¦
h π
my $h = $rect->h;
$rect->h(128);
Pass in a value and this method sets the h component of the rectangle; pass nothing and it returns the h component of the rectangle. Height business, also handled. πΈ
π SEE ALSO π
SDL::Surface β thatβs the see-also, bestie. iykyk π«Ά
π AUTHORS π
See AUTHORS in SDL. Author credits live there, fr fr. π
Signed off with perl v5.42.0, dated 2024-05-01, on page pods::SDL::Rect(3pm). Bye bestie! π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms