mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize
This fits nicer with FloatRect,FloatPoint,FloatSize and gives a much better visual clue about what type of metric is being used.
This commit is contained in:
parent
656b01eb0f
commit
116cf92156
Notes:
sideshowbarker
2024-07-19 05:43:51 +09:00
Author: https://github.com/awesomekling
Commit: 116cf92156
212 changed files with 1144 additions and 1144 deletions
|
@ -45,22 +45,22 @@ enum class StandardCursor {
|
|||
|
||||
class Cursor : public RefCounted<Cursor> {
|
||||
public:
|
||||
static NonnullRefPtr<Cursor> create(NonnullRefPtr<Gfx::Bitmap>&&, const Gfx::Point& hotspot);
|
||||
static NonnullRefPtr<Cursor> create(NonnullRefPtr<Gfx::Bitmap>&&, const Gfx::IntPoint& hotspot);
|
||||
static NonnullRefPtr<Cursor> create(NonnullRefPtr<Gfx::Bitmap>&&);
|
||||
static RefPtr<Cursor> create(StandardCursor);
|
||||
~Cursor();
|
||||
|
||||
Gfx::Point hotspot() const { return m_hotspot; }
|
||||
Gfx::IntPoint hotspot() const { return m_hotspot; }
|
||||
const Gfx::Bitmap& bitmap() const { return *m_bitmap; }
|
||||
|
||||
Gfx::Rect rect() const { return m_bitmap->rect(); }
|
||||
Gfx::Size size() const { return m_bitmap->size(); }
|
||||
Gfx::IntRect rect() const { return m_bitmap->rect(); }
|
||||
Gfx::IntSize size() const { return m_bitmap->size(); }
|
||||
|
||||
private:
|
||||
Cursor(NonnullRefPtr<Gfx::Bitmap>&&, const Gfx::Point&);
|
||||
Cursor(NonnullRefPtr<Gfx::Bitmap>&&, const Gfx::IntPoint&);
|
||||
|
||||
RefPtr<Gfx::Bitmap> m_bitmap;
|
||||
Gfx::Point m_hotspot;
|
||||
Gfx::IntPoint m_hotspot;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue