diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-06-22 04:25:56 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-06-22 04:25:56 -0400 |
commit | e65174f5aab55fe3917dd52f97b1b00a07d30d38 (patch) | |
tree | fed590caf0440fd47b72a51e21e692fe703860bd /src/components/channellist/classic/mentionoverlay.hpp | |
parent | 3dc8fa8e65bdd1bd45dfa0171a06dfbb448baf0d (diff) | |
parent | 7af15b326df5a638b24c5e637d5f37396276f906 (diff) | |
download | abaddon-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.hpp | 25 |
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; +}; |