Class PanelInterface
Defined in File panel_interface.h
Inheritance Relationships
Derived Types
public log_view::ExcludePanel
(Class ExcludePanel)public log_view::FilterPanel
(Class FilterPanel)public log_view::HelpPanel
(Class HelpPanel)public log_view::LevelPanel
(Class LevelPanel)public log_view::LogPanel
(Class LogPanel)public log_view::NodePanel
(Class NodePanel)public log_view::SearchPanel
(Class SearchPanel)public log_view::StatusPanel
(Class StatusPanel)
Class Documentation
-
class PanelInterface
Subclassed by log_view::ExcludePanel, log_view::FilterPanel, log_view::HelpPanel, log_view::LevelPanel, log_view::LogPanel, log_view::NodePanel, log_view::SearchPanel, log_view::StatusPanel
Public Functions
-
PanelInterface(int height, int width, int y, int x)
-
virtual ~PanelInterface()
-
virtual void refresh() = 0
-
virtual void forceRefresh()
-
virtual void resize(int height, int width, int y, int x)
-
virtual bool handleInput(int key)
-
inline virtual bool handleMouse(const MEVENT &event)
-
inline virtual bool handleKey(int key)
-
virtual bool encloses(int y, int x)
-
virtual void hide(bool enable)
-
virtual bool setFocus(bool enable)
-
virtual void toTop()
-
virtual bool setCursor()
-
virtual int x() const
-
virtual int y() const
-
virtual int width() const
-
virtual int height() const
-
virtual bool visible() const
-
virtual bool focus() const
-
virtual bool scrollbar() const
Protected Functions
-
inline virtual bool canFocus() const
-
virtual void drawScrollBar(size_t count, int height, int y, int x)
-
inline virtual bool canInput() const
-
inline virtual void activate(bool enable)
-
inline virtual int inputOffset() const
-
inline virtual bool canSelect() const
-
inline virtual size_t getContentSize() const
-
inline virtual int getContentHeight() const
-
inline virtual int getContentWidth() const
-
inline virtual void setCursor(int64_t cursor)
-
inline virtual int64_t getCursor() const
-
virtual void follow(bool enable)
-
virtual void pageUp()
-
virtual void pageDown()
-
virtual void move(int step)
-
virtual void moveTo(size_t index)
-
virtual void shift(int cols)
-
inline virtual void select()
-
inline virtual bool following()
Protected Attributes
-
WINDOW *window_ = nullptr
-
PANEL *panel_ = nullptr
-
int x_
-
int y_
-
int width_
-
int height_
-
bool cleared_ = false
-
bool focus_ = false
-
std::string input_text_
-
int input_loc_ = -1
-
bool follow_ = true
-
size_t last_content_size_ = 0
-
int64_t last_cursor_ = 0
-
size_t max_length_ = 0
-
int shift_ = 0
-
PanelInterface(int height, int width, int y, int x)