diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-11-17 01:25:13 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-11-17 01:25:13 -0500 |
commit | d68afa0fd4faae8a1391fbdd1e19842ddddef50a (patch) | |
tree | 108ab996dafcdaed4e3cb318ecb0867bf324d8cd /src/components/statusindicator.hpp | |
parent | 5cca270eb1c627ae59cf294c9670d31b288b768c (diff) | |
parent | 3d2f5abce4c591e35d64d428cc1df06407128211 (diff) | |
download | abaddon-portaudio-d68afa0fd4faae8a1391fbdd1e19842ddddef50a.tar.gz abaddon-portaudio-d68afa0fd4faae8a1391fbdd1e19842ddddef50a.zip |
Merge branch 'master' into theming
Diffstat (limited to 'src/components/statusindicator.hpp')
-rw-r--r-- | src/components/statusindicator.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/components/statusindicator.hpp b/src/components/statusindicator.hpp deleted file mode 100644 index edd64ea..0000000 --- a/src/components/statusindicator.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once -#include "discord/snowflake.hpp" -#include "discord/activity.hpp" - -class StatusIndicator : public Gtk::Widget { -public: - StatusIndicator(Snowflake user_id); - ~StatusIndicator() override = default; - -protected: - Gtk::SizeRequestMode get_request_mode_vfunc() const override; - void get_preferred_width_vfunc(int &minimum_width, int &natural_width) const override; - void get_preferred_width_for_height_vfunc(int height, int &minimum_width, int &natural_width) const override; - void get_preferred_height_vfunc(int &minimum_height, int &natural_height) const override; - void get_preferred_height_for_width_vfunc(int width, int &minimum_height, int &natural_height) const override; - void on_size_allocate(Gtk::Allocation &allocation) override; - void on_map() override; - void on_unmap() override; - void on_realize() override; - void on_unrealize() override; - bool on_draw(const Cairo::RefPtr<Cairo::Context> &cr) override; - - Glib::RefPtr<Gdk::Window> m_window; - - void CheckStatus(); - - Snowflake m_id; - PresenceStatus m_status; -}; |