mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 13:12:32 +00:00
Work on an input field.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@272 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#ifndef RTORRENT_DISPLAY_WINDOW_INPUT_H
|
||||
#define RTORRENT_DISPLAY_WINDOW_INPUT_H
|
||||
|
||||
#include "window.h"
|
||||
|
||||
namespace input {
|
||||
class TextInput;
|
||||
}
|
||||
|
||||
namespace display {
|
||||
|
||||
class WindowInput : public Window {
|
||||
public:
|
||||
WindowInput(input::TextInput* input);
|
||||
|
||||
input::TextInput* get_input() { return m_input; }
|
||||
|
||||
bool get_focus() { return m_focus; }
|
||||
void set_focus(bool f) { mark_dirty(); m_focus = f; }
|
||||
|
||||
virtual void redraw();
|
||||
|
||||
private:
|
||||
input::TextInput* m_input;
|
||||
bool m_focus;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user