mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +00:00
Meta+Userland: Pass Gfx::IntSize by value
Just two ints like Gfx::IntPoint.
This commit is contained in:
parent
e011eafd37
commit
27fae78335
63 changed files with 142 additions and 142 deletions
|
@ -46,7 +46,7 @@ protected:
|
|||
|
||||
class Image : public RefCounted<Image> {
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<Image>> try_create_with_size(Gfx::IntSize const&);
|
||||
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>);
|
||||
|
||||
|
@ -63,7 +63,7 @@ public:
|
|||
Layer const& layer(size_t index) const { return m_layers.at(index); }
|
||||
Layer& layer(size_t index) { return m_layers.at(index); }
|
||||
|
||||
Gfx::IntSize const& size() const { return m_size; }
|
||||
Gfx::IntSize size() const { return m_size; }
|
||||
Gfx::IntRect rect() const { return { {}, m_size }; }
|
||||
|
||||
void add_layer(NonnullRefPtr<Layer>);
|
||||
|
@ -100,14 +100,14 @@ public:
|
|||
void flip(Gfx::Orientation orientation);
|
||||
void rotate(Gfx::RotationDirection direction);
|
||||
void crop(Gfx::IntRect const& rect);
|
||||
void resize(Gfx::IntSize const& new_size, Gfx::Painter::ScalingMode scaling_mode);
|
||||
void resize(Gfx::IntSize new_size, Gfx::Painter::ScalingMode scaling_mode);
|
||||
|
||||
Optional<Gfx::IntRect> nonempty_content_bounding_rect() const;
|
||||
|
||||
Color color_at(Gfx::IntPoint point) const;
|
||||
|
||||
private:
|
||||
explicit Image(Gfx::IntSize const&);
|
||||
explicit Image(Gfx::IntSize);
|
||||
|
||||
void did_change(Gfx::IntRect const& modified_rect = {});
|
||||
void did_change_rect(Gfx::IntRect const& modified_rect = {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue