diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-12-23 20:14:10 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-12-23 20:14:10 -0500 |
commit | 1ba3daa04ac374504a5cdf62cb5fde44f12027bc (patch) | |
tree | 2c1c8e58cac1ccc07eb47ac1bcb7d5dcda113162 /src/components/channelscellrenderer.hpp | |
parent | e0e0a6c76708fdf12113bf1b5c4ee96eacc35cae (diff) | |
download | abaddon-portaudio-1ba3daa04ac374504a5cdf62cb5fde44f12027bc.tar.gz abaddon-portaudio-1ba3daa04ac374504a5cdf62cb5fde44f12027bc.zip |
basic folder support
Diffstat (limited to 'src/components/channelscellrenderer.hpp')
-rw-r--r-- | src/components/channelscellrenderer.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/channelscellrenderer.hpp b/src/components/channelscellrenderer.hpp index e2be9b2..00c3603 100644 --- a/src/components/channelscellrenderer.hpp +++ b/src/components/channelscellrenderer.hpp @@ -6,6 +6,7 @@ #include "discord/snowflake.hpp" enum class RenderType : uint8_t { + Folder, Guild, Category, TextChannel, @@ -40,6 +41,17 @@ protected: Gtk::CellRendererState flags) override; // guild functions + void get_preferred_width_vfunc_folder(Gtk::Widget &widget, int &minimum_width, int &natural_width) const; + void get_preferred_width_for_height_vfunc_folder(Gtk::Widget &widget, int height, int &minimum_width, int &natural_width) const; + void get_preferred_height_vfunc_folder(Gtk::Widget &widget, int &minimum_height, int &natural_height) const; + void get_preferred_height_for_width_vfunc_folder(Gtk::Widget &widget, int width, int &minimum_height, int &natural_height) const; + void render_vfunc_folder(const Cairo::RefPtr<Cairo::Context> &cr, + Gtk::Widget &widget, + const Gdk::Rectangle &background_area, + const Gdk::Rectangle &cell_area, + Gtk::CellRendererState flags); + + // guild functions void get_preferred_width_vfunc_guild(Gtk::Widget &widget, int &minimum_width, int &natural_width) const; void get_preferred_width_for_height_vfunc_guild(Gtk::Widget &widget, int height, int &minimum_width, int &natural_width) const; void get_preferred_height_vfunc_guild(Gtk::Widget &widget, int &minimum_height, int &natural_height) const; |