summaryrefslogtreecommitdiff
path: root/src/components/channellist/classic/mentionoverlay.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2024-06-22 04:25:56 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2024-06-22 04:25:56 -0400
commite65174f5aab55fe3917dd52f97b1b00a07d30d38 (patch)
treefed590caf0440fd47b72a51e21e692fe703860bd /src/components/channellist/classic/mentionoverlay.hpp
parent3dc8fa8e65bdd1bd45dfa0171a06dfbb448baf0d (diff)
parent7af15b326df5a638b24c5e637d5f37396276f906 (diff)
downloadabaddon-portaudio-e65174f5aab55fe3917dd52f97b1b00a07d30d38.tar.gz
abaddon-portaudio-e65174f5aab55fe3917dd52f97b1b00a07d30d38.zip
Merge branch 'master' into stages
Diffstat (limited to 'src/components/channellist/classic/mentionoverlay.hpp')
-rw-r--r--src/components/channellist/classic/mentionoverlay.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/channellist/classic/mentionoverlay.hpp b/src/components/channellist/classic/mentionoverlay.hpp
new file mode 100644
index 0000000..7c168c2
--- /dev/null
+++ b/src/components/channellist/classic/mentionoverlay.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <set>
+
+#include <gtkmm/drawingarea.h>
+#include <pangomm/fontdescription.h>
+
+#include "discord/snowflake.hpp"
+#include "discord/usersettings.hpp"
+
+class MentionOverlay : public Gtk::DrawingArea {
+public:
+ MentionOverlay(Snowflake guild_id);
+ MentionOverlay(const UserSettingsGuildFoldersEntry &folder);
+
+private:
+ void Init();
+
+ bool OnDraw(const Cairo::RefPtr<Cairo::Context> &cr);
+
+ std::set<Snowflake> m_guild_ids;
+
+ Pango::FontDescription m_font;
+ Glib::RefPtr<Pango::Layout> m_layout;
+};