mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +00:00
AK: Add Bitmap::is_null()
This class has a null state but there was no API to check for it.
This commit is contained in:
parent
c1c37cc5bd
commit
ddaeb294dc
1 changed files with 2 additions and 0 deletions
|
@ -148,6 +148,8 @@ public:
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_null() const { return !m_data; }
|
||||||
|
|
||||||
u8* data() { return m_data; }
|
u8* data() { return m_data; }
|
||||||
const u8* data() const { return m_data; }
|
const u8* data() const { return m_data; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue