mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +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
|
@ -30,7 +30,7 @@
|
|||
|
||||
namespace PixelPaint {
|
||||
|
||||
RefPtr<Layer> Layer::create_with_size(const Gfx::Size& size, const String& name)
|
||||
RefPtr<Layer> Layer::create_with_size(const Gfx::IntSize& size, const String& name)
|
||||
{
|
||||
if (size.is_empty())
|
||||
return nullptr;
|
||||
|
@ -41,7 +41,7 @@ RefPtr<Layer> Layer::create_with_size(const Gfx::Size& size, const String& name)
|
|||
return adopt(*new Layer(size, name));
|
||||
}
|
||||
|
||||
Layer::Layer(const Gfx::Size& size, const String& name)
|
||||
Layer::Layer(const Gfx::IntSize& size, const String& name)
|
||||
: m_name(name)
|
||||
{
|
||||
m_bitmap = Gfx::Bitmap::create(Gfx::BitmapFormat::RGBA32, size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue