diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-05-21 02:06:20 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-05-21 02:06:20 -0400 |
commit | 057dd2a1f8de65e4885f48211e324e1b966f4e2f (patch) | |
tree | 3c6d44061589b636ac9624a988baae969a1c6b80 /src/components/channellist/classic/mentionoverlay.hpp | |
parent | a4856a5378507bc5d32c86d638a7175c29bf4301 (diff) | |
download | abaddon-portaudio-057dd2a1f8de65e4885f48211e324e1b966f4e2f.tar.gz abaddon-portaudio-057dd2a1f8de65e4885f48211e324e1b966f4e2f.zip |
add ugly little mention indicator to classic guild listing
Diffstat (limited to 'src/components/channellist/classic/mentionoverlay.hpp')
-rw-r--r-- | src/components/channellist/classic/mentionoverlay.hpp | 19 |
1 files changed, 19 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..24eb7e2 --- /dev/null +++ b/src/components/channellist/classic/mentionoverlay.hpp @@ -0,0 +1,19 @@ +#pragma once + +#include <gtkmm/drawingarea.h> +#include <pangomm/fontdescription.h> + +#include "discord/snowflake.hpp" + +class MentionOverlay : public Gtk::DrawingArea { +public: + MentionOverlay(Snowflake guild_id); + +private: + bool OnDraw(const Cairo::RefPtr<Cairo::Context> &cr); + + Snowflake m_guild_id; + + Pango::FontDescription m_font; + Glib::RefPtr<Pango::Layout> m_layout; +}; |