1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:07:36 +00:00

PixelPaint: Port to Core::Stream :^)

This commit is contained in:
Karol Kosek 2022-12-17 17:51:26 +01:00 committed by Sam Atkins
parent 4f699d0f58
commit 301f9de915
11 changed files with 59 additions and 74 deletions

View file

@ -31,9 +31,10 @@ public:
Vector<Color> colors();
static Result<Vector<Color>, DeprecatedString> load_palette_file(Core::File&);
static Result<Vector<Color>, DeprecatedString> load_palette_path(DeprecatedString const&);
static Result<void, DeprecatedString> save_palette_file(Vector<Color>, Core::File&);
static ErrorOr<Vector<Color>> load_palette_file(NonnullOwnPtr<Core::Stream::File>);
static ErrorOr<Vector<Color>> load_palette_path(DeprecatedString const&);
static ErrorOr<void> save_palette_file(Vector<Color>, NonnullOwnPtr<Core::Stream::File>);
static Vector<Color> fallback_colors();
void set_image_editor(ImageEditor*);