improve text_editor

This commit is contained in:
Jinhao
2016-07-17 20:58:00 +08:00
parent 152da8e98f
commit 56697b331a
2 changed files with 279 additions and 314 deletions

View File

@@ -138,6 +138,7 @@ namespace nana{ namespace widgets
struct keywords;
class keyword_parser;
class helper_pencil;
public:
using char_type = wchar_t;
using size_type = textbase<char_type>::size_type;
@@ -269,10 +270,11 @@ namespace nana{ namespace widgets
skeletons::textbase<wchar_t>& textbase();
const skeletons::textbase<wchar_t>& textbase() const;
private:
void _m_pre_calc_lines(std::size_t line_off, std::size_t lines);
bool _m_accepts(char_type) const;
::nana::color _m_bgcolor() const;
bool _m_scroll_text(bool vertical);
void _m_on_scroll(const arg_mouse&);
void _m_scrollbar();
::nana::size _m_text_area() const;
void _m_get_scrollbar_size();