28 #ifndef LOG_VIEW_PANEL_INTERFACE_H_ 29 #define LOG_VIEW_PANEL_INTERFACE_H_ 37 #define KEY_ENTER_VAL 10 47 virtual void resize(
int height,
int width,
int y,
int x);
50 virtual bool handleMouse(
const MEVENT& event) {
return false; }
54 virtual void hide(
bool enable);
59 virtual int x()
const;
60 virtual int y()
const;
61 virtual int width()
const;
62 virtual int height()
const;
63 virtual bool hidden()
const;
65 virtual bool focus()
const;
69 virtual bool canFocus()
const {
return false; }
70 virtual void drawScrollBar(
size_t count,
int height,
int y,
int x);
73 virtual bool canInput()
const {
return false; }
85 virtual void follow(
bool enable);
88 virtual void move(
int step);
89 virtual void moveTo(
size_t index);
90 virtual void shift(
int cols);
119 #endif // LOG_VIEW_PANEL_INTERFACE_H_
virtual bool handleMouse(const MEVENT &event)
virtual void forceRefresh()
virtual bool handleInput(int key)
virtual int getContentHeight() const
virtual bool scrollbar() const
virtual void setCursor(int64_t cursor)
std::shared_ptr< PanelInterface > PanelInterfacePtr
virtual bool encloses(int y, int x)
virtual int width() const
virtual void resize(int height, int width, int y, int x)
virtual int inputOffset() const
virtual ~PanelInterface()
virtual int getContentWidth() const
virtual void moveTo(size_t index)
virtual bool handleKey(int key)
virtual bool canSelect() const
size_t last_content_size_
virtual bool hidden() const
virtual void hide(bool enable)
virtual void move(int step)
virtual bool canFocus() const
virtual bool setFocus(bool enable)
virtual bool canNavigate() const
virtual void shift(int cols)
virtual bool visible() const
virtual bool handleNavigation(int key)
virtual void activate(bool enable)
virtual size_t getContentSize() const
virtual int64_t getCursor() const
PanelInterface(int height, int width, int y, int x)
virtual int height() const
virtual void drawScrollBar(size_t count, int height, int y, int x)
virtual bool focus() const
virtual bool canInput() const
virtual void follow(bool enable)