ChatHistory.h 387 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <Zeichnung.h>
  3. #include <Array.h>
  4. #include "ChatMessage.h"
  5. class ChatHistory : public Framework::ZeichnungHintergrund
  6. {
  7. private:
  8. Framework::RCArray<ChatMessage> messages;
  9. bool scrollToBottom;
  10. public:
  11. ChatHistory();
  12. void addMessage(ChatMessage* message);
  13. void render(Framework::Bild& rObj) override;
  14. bool tick(double tickVal) override;
  15. };