mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:07:46 +00:00
PixelPaint: Rename Layer::create_foo() => Layer::try_create_foo()
This commit is contained in:
parent
a9e98bad8a
commit
9c5de113b1
4 changed files with 29 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -24,9 +24,9 @@ class Layer
|
|||
AK_MAKE_NONMOVABLE(Layer);
|
||||
|
||||
public:
|
||||
static RefPtr<Layer> create_with_size(Image&, Gfx::IntSize const&, String const& name);
|
||||
static RefPtr<Layer> create_with_bitmap(Image&, Gfx::Bitmap const&, String const& name);
|
||||
static RefPtr<Layer> create_snapshot(Image&, Layer const&);
|
||||
static RefPtr<Layer> try_create_with_size(Image&, Gfx::IntSize const&, String const& name);
|
||||
static RefPtr<Layer> try_create_with_bitmap(Image&, Gfx::Bitmap const&, String const& name);
|
||||
static RefPtr<Layer> try_create_snapshot(Image&, Layer const&);
|
||||
|
||||
~Layer() { }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue