summaryrefslogtreecommitdiff
path: root/components/channels.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-07-27 22:54:17 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-07-27 22:54:17 -0400
commit9d2d13a3898f05f9e8189f99087198726d476e1b (patch)
treea5e159e426f30920b136ba5137d76366dffe516b /components/channels.hpp
parent1936f9ab8ab8687e3200a0ea31937339f9264c9e (diff)
downloadabaddon-portaudio-9d2d13a3898f05f9e8189f99087198726d476e1b.tar.gz
abaddon-portaudio-9d2d13a3898f05f9e8189f99087198726d476e1b.zip
very rudimentary thread support
Diffstat (limited to 'components/channels.hpp')
-rw-r--r--components/channels.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/channels.hpp b/components/channels.hpp
index 69f1f77..3b81cab 100644
--- a/components/channels.hpp
+++ b/components/channels.hpp
@@ -16,6 +16,7 @@ enum class RenderType : uint8_t {
Guild,
Category,
TextChannel,
+ Thread,
DMHeader,
DM,
@@ -77,6 +78,17 @@ protected:
const Gdk::Rectangle &cell_area,
Gtk::CellRendererState flags);
+ // thread
+ void get_preferred_width_vfunc_thread(Gtk::Widget &widget, int &minimum_width, int &natural_width) const;
+ void get_preferred_width_for_height_vfunc_thread(Gtk::Widget &widget, int height, int &minimum_width, int &natural_width) const;
+ void get_preferred_height_vfunc_thread(Gtk::Widget &widget, int &minimum_height, int &natural_height) const;
+ void get_preferred_height_for_width_vfunc_thread(Gtk::Widget &widget, int width, int &minimum_height, int &natural_height) const;
+ void render_vfunc_thread(const Cairo::RefPtr<Cairo::Context> &cr,
+ Gtk::Widget &widget,
+ const Gdk::Rectangle &background_area,
+ const Gdk::Rectangle &cell_area,
+ Gtk::CellRendererState flags);
+
// dm header
void get_preferred_width_vfunc_dmheader(Gtk::Widget &widget, int &minimum_width, int &natural_width) const;
void get_preferred_width_for_height_vfunc_dmheader(Gtk::Widget &widget, int height, int &minimum_width, int &natural_width) const;