Chatterino
NotificationPopup.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "widgets/BaseWindow.hpp"
4 
5 namespace chatterino {
6 
7 class ChannelView;
8 
9 class Channel;
10 using ChannelPtr = std::shared_ptr<Channel>;
11 
12 struct Message;
13 using MessagePtr = std::shared_ptr<const Message>;
14 
16 {
17 public:
20 
21  void addMessage(MessagePtr msg);
22  void updatePosition();
23 
24 private:
25  ChannelView *channelView_;
26  ChannelPtr channel_;
27 };
28 
29 } // namespace chatterino
void addMessage(MessagePtr msg)
Definition: NotificationPopup.cpp:47
Definition: BaseWindow.hpp:20
Definition: Application.cpp:48
NotificationPopup()
Definition: NotificationPopup.cpp:15
Definition: NotificationPopup.hpp:18
Definition: NotificationPopup.hpp:18
Location
Definition: NotificationPopup.hpp:18
Definition: ChannelView.hpp:61
std::shared_ptr< const Message > MessagePtr
Definition: Channel.hpp:18
std::shared_ptr< Channel > ChannelPtr
Definition: Channel.hpp:125
Definition: NotificationPopup.hpp:18
Definition: NotificationPopup.hpp:15
Definition: NotificationPopup.hpp:18
void updatePosition()
Definition: NotificationPopup.cpp:31