mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +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
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