mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:07:45 +00:00
Meta+Userland: Pass Gfx::IntPoint by value
This is just two ints or 8 bytes or the size of the reference on x86_64 or AArch64.
This commit is contained in:
parent
bbc149ebb9
commit
7be0b27dd3
161 changed files with 442 additions and 441 deletions
|
@ -13,17 +13,17 @@ namespace Gfx {
|
|||
|
||||
class CursorParams {
|
||||
public:
|
||||
static CursorParams parse_from_filename(StringView, Gfx::IntPoint const&);
|
||||
static CursorParams parse_from_filename(StringView, Gfx::IntPoint);
|
||||
|
||||
CursorParams() = default;
|
||||
|
||||
CursorParams(Gfx::IntPoint const& hotspot)
|
||||
CursorParams(Gfx::IntPoint hotspot)
|
||||
: m_hotspot(hotspot)
|
||||
{
|
||||
}
|
||||
CursorParams constrained(Gfx::Bitmap const&) const;
|
||||
|
||||
Gfx::IntPoint const& hotspot() const { return m_hotspot; }
|
||||
Gfx::IntPoint hotspot() const { return m_hotspot; }
|
||||
unsigned frames() const { return m_frames; }
|
||||
unsigned frame_ms() const { return m_frame_ms; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue