mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
PixelPaint: Remove try_
prefix from fallible Image methods
This commit is contained in:
parent
9c08bb9555
commit
39f1a6eb6f
Notes:
sideshowbarker
2024-07-17 08:59:18 +09:00
Author: https://github.com/linusg
Commit: 39f1a6eb6f
Pull-request: https://github.com/SerenityOS/serenity/pull/17222
6 changed files with 31 additions and 31 deletions
|
@ -45,15 +45,15 @@ protected:
|
|||
|
||||
class Image : public RefCounted<Image> {
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<Image>> try_create_with_size(Gfx::IntSize);
|
||||
static ErrorOr<NonnullRefPtr<Image>> try_create_from_pixel_paint_json(JsonObject const&);
|
||||
static ErrorOr<NonnullRefPtr<Image>> try_create_from_bitmap(NonnullRefPtr<Gfx::Bitmap> const&);
|
||||
static ErrorOr<NonnullRefPtr<Image>> create_with_size(Gfx::IntSize);
|
||||
static ErrorOr<NonnullRefPtr<Image>> create_from_pixel_paint_json(JsonObject const&);
|
||||
static ErrorOr<NonnullRefPtr<Image>> create_from_bitmap(NonnullRefPtr<Gfx::Bitmap> const&);
|
||||
|
||||
static ErrorOr<NonnullRefPtr<Gfx::Bitmap>> try_decode_bitmap(ReadonlyBytes);
|
||||
static ErrorOr<NonnullRefPtr<Gfx::Bitmap>> decode_bitmap(ReadonlyBytes);
|
||||
|
||||
// This generates a new Bitmap with the final image (all layers composed according to their attributes.)
|
||||
ErrorOr<NonnullRefPtr<Gfx::Bitmap>> try_compose_bitmap(Gfx::BitmapFormat format) const;
|
||||
RefPtr<Gfx::Bitmap> try_copy_bitmap(Selection const&) const;
|
||||
ErrorOr<NonnullRefPtr<Gfx::Bitmap>> compose_bitmap(Gfx::BitmapFormat format) const;
|
||||
RefPtr<Gfx::Bitmap> copy_bitmap(Selection const&) const;
|
||||
|
||||
Selection& selection() { return m_selection; }
|
||||
Selection const& selection() const { return m_selection; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue