Chat-O-Matic/libs/librunview/RunView.h

35 lines
729 B
C
Raw Normal View History

/*
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef _RUN_VIEW_H
#define _RUN_VIEW_H
2021-07-14 20:08:14 -05:00
#include <Url.h>
#include <libinterface/UrlTextView.h>
2021-07-14 22:10:23 -05:00
class BPopUpMenu;
class RunView : public UrlTextView {
public:
RunView(const char* name);
void Append(const char* text, rgb_color color, BFont font);
void Append(const char* text, rgb_color color, uint16 fontFace);
void Append(const char* text, rgb_color color);
2021-07-14 22:10:23 -05:00
void Append(const char* text);
2021-07-14 20:08:14 -05:00
void ScrollToBottom();
private:
// For safe-keeping
text_run_array fDefaultRun;
// Whether or not the run was changed from default
bool fLastStyled;
};
#endif // _RUN_VIEW_H