summaryrefslogtreecommitdiff
path: root/LibGUI/GVariant.h
diff options
context:
space:
mode:
Diffstat (limited to 'LibGUI/GVariant.h')
-rw-r--r--LibGUI/GVariant.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/LibGUI/GVariant.h b/LibGUI/GVariant.h
index c682d9d656..1dd6faef12 100644
--- a/LibGUI/GVariant.h
+++ b/LibGUI/GVariant.h
@@ -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