fix bug that single-line text_editor still shows scrollbar
This commit is contained in:
@@ -40,6 +40,11 @@ namespace skeletons
|
||||
public:
|
||||
using graph_reference = paint::graphics&;
|
||||
|
||||
enum class scrolls
|
||||
{
|
||||
none, horz, vert, both
|
||||
};
|
||||
|
||||
struct events_type
|
||||
{
|
||||
::std::function<void(const point&)> hover_outside;
|
||||
@@ -51,6 +56,8 @@ namespace skeletons
|
||||
|
||||
events_type& events();
|
||||
|
||||
bool enable_scrolls(scrolls which);
|
||||
|
||||
void step(unsigned step_value, bool horz);
|
||||
bool scroll(bool forwards, bool horz);
|
||||
bool turn_page(bool forwards, bool horz);
|
||||
|
||||
Reference in New Issue
Block a user