RunView.h 729 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
  3. * All rights reserved. Distributed under the terms of the MIT license.
  4. */
  5. #ifndef _RUN_VIEW_H
  6. #define _RUN_VIEW_H
  7. #include <Url.h>
  8. #include <libinterface/UrlTextView.h>
  9. class BPopUpMenu;
  10. class RunView : public UrlTextView {
  11. public:
  12. RunView(const char* name);
  13. void Append(const char* text, rgb_color color, BFont font);
  14. void Append(const char* text, rgb_color color, uint16 fontFace);
  15. void Append(const char* text, rgb_color color);
  16. void Append(const char* text);
  17. void ScrollToBottom();
  18. private:
  19. // For safe-keeping
  20. text_run_array fDefaultRun;
  21. // Whether or not the run was changed from default
  22. bool fLastStyled;
  23. };
  24. #endif // _RUN_VIEW_H