summaryrefslogtreecommitdiff
path: root/components/statusindicator.hpp
diff options
context:
space:
mode:
authorDylam De La Torre <DyXel04@gmail.com>2021-11-23 05:21:56 +0100
committerGitHub <noreply@github.com>2021-11-23 04:21:56 +0000
commita51a54bc5979a2491f152abc47ad54e6b63f27c8 (patch)
treece67092b2f6df366033a65a6111e4650866766b2 /components/statusindicator.hpp
parentd88079000a79e6bcbe51c5a2868d57b303b5fcb6 (diff)
downloadabaddon-portaudio-a51a54bc5979a2491f152abc47ad54e6b63f27c8.tar.gz
abaddon-portaudio-a51a54bc5979a2491f152abc47ad54e6b63f27c8.zip
Restructure source and resource files (#46)
importantly, res is now res/res and css is now res/css
Diffstat (limited to 'components/statusindicator.hpp')
-rw-r--r--components/statusindicator.hpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/components/statusindicator.hpp b/components/statusindicator.hpp
deleted file mode 100644
index b2cf0bd..0000000
--- a/components/statusindicator.hpp
+++ /dev/null
@@ -1,30 +0,0 @@
-#pragma once
-#include <gtkmm.h>
-#include "discord/snowflake.hpp"
-#include "discord/activity.hpp"
-
-class StatusIndicator : public Gtk::Widget {
-public:
- StatusIndicator(Snowflake user_id);
- virtual ~StatusIndicator();
-
-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_height_for_width_vfunc(int width, int &minimum_height, int &natural_height) const override;
- void get_preferred_height_vfunc(int &minimum_height, int &natural_height) const override;
- void get_preferred_width_for_height_vfunc(int height, int &minimum_width, int &natural_width) 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;
-};