mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:27:45 +00:00
Everywhere: Pass AK::StringView by value
This commit is contained in:
parent
ad5d217e76
commit
8b1108e485
392 changed files with 978 additions and 978 deletions
|
@ -16,13 +16,13 @@ namespace WindowServer {
|
|||
class MultiScaleBitmaps : public RefCounted<MultiScaleBitmaps> {
|
||||
public:
|
||||
static RefPtr<MultiScaleBitmaps> create_empty();
|
||||
static RefPtr<MultiScaleBitmaps> create(StringView const& filename, StringView const& default_filename = {});
|
||||
static RefPtr<MultiScaleBitmaps> create(StringView filename, StringView default_filename = {});
|
||||
|
||||
Gfx::Bitmap const& default_bitmap() const { return bitmap(1); }
|
||||
Gfx::Bitmap const& bitmap(int scale_factor) const;
|
||||
Gfx::Bitmap const* find_bitmap(int scale_factor) const;
|
||||
Gfx::BitmapFormat format() const { return m_format; }
|
||||
bool load(StringView const& filename, StringView const& default_filename = {});
|
||||
bool load(StringView filename, StringView default_filename = {});
|
||||
void add_bitmap(int scale_factor, NonnullRefPtr<Gfx::Bitmap>&&);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue