1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

LibGUI: Support bitmaps in GTableView cells.

Use this to add an icon for each process in the ProcessManager.
Right now they all use a generic gear icon, but I'd like to have
per-process icons, obviously. :^)
This commit is contained in:
Andreas Kling 2019-02-28 20:16:10 +01:00
parent 3fe7ddadaf
commit b132150799
4 changed files with 30 additions and 13 deletions

View file

@ -23,6 +23,11 @@ public:
};
bool is_valid() const { return m_type != Type::Invalid; }
bool is_bool() const { return m_type == Type::Bool; }
bool is_int() const { return m_type == Type::Int; }
bool is_float() const { return m_type == Type::Float; }
bool is_string() const { return m_type == Type::String; }
bool is_bitmap() const { return m_type == Type::Bitmap; }
Type type() const { return m_type; }
bool as_bool() const