mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:37:45 +00:00
PixelPaint: Update Image.{cpp, h} to use east const
This commit is contained in:
parent
76adac103e
commit
ea03b43fff
2 changed files with 18 additions and 18 deletions
|
@ -36,7 +36,7 @@ protected:
|
|||
|
||||
class Image : public RefCounted<Image> {
|
||||
public:
|
||||
static RefPtr<Image> create_with_size(const Gfx::IntSize&);
|
||||
static RefPtr<Image> create_with_size(Gfx::IntSize const&);
|
||||
static RefPtr<Image> create_from_file(String const& file_path);
|
||||
static RefPtr<Image> create_from_bitmap(RefPtr<Gfx::Bitmap> bitmap);
|
||||
|
||||
|
@ -49,12 +49,12 @@ public:
|
|||
|
||||
void add_layer(NonnullRefPtr<Layer>);
|
||||
RefPtr<Image> take_snapshot() const;
|
||||
void restore_snapshot(const Image&);
|
||||
void restore_snapshot(Image const&);
|
||||
|
||||
void paint_into(GUI::Painter&, const Gfx::IntRect& dest_rect);
|
||||
void save(const String& file_path) const;
|
||||
void export_bmp(const String& file_path);
|
||||
void export_png(const String& file_path);
|
||||
void paint_into(GUI::Painter&, Gfx::IntRect const& dest_rect);
|
||||
void save(String const& file_path) const;
|
||||
void export_bmp(String const& file_path);
|
||||
void export_png(String const& file_path);
|
||||
|
||||
void move_layer_to_front(Layer&);
|
||||
void move_layer_to_back(Layer&);
|
||||
|
@ -67,8 +67,8 @@ public:
|
|||
void add_client(ImageClient&);
|
||||
void remove_client(ImageClient&);
|
||||
|
||||
void layer_did_modify_bitmap(Badge<Layer>, const Layer&);
|
||||
void layer_did_modify_properties(Badge<Layer>, const Layer&);
|
||||
void layer_did_modify_bitmap(Badge<Layer>, Layer const&);
|
||||
void layer_did_modify_properties(Badge<Layer>, Layer const&);
|
||||
|
||||
size_t index_of(const Layer&) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue