add new overloading of scroll_into_view for treebox

This commit is contained in:
Jinhao
2018-09-09 05:52:59 +08:00
parent c1b88c430a
commit 074b96a05a
2 changed files with 112 additions and 72 deletions

View File

@@ -450,8 +450,18 @@ namespace nana
item_proxy selected() const; ///< returns the selected node
/// Scrolls a specified item into view
void scroll_into_view(item_proxy item, align_v);
/// Scrolls a specified item into view.
/**
* @param item An item to be requested.
* @param bearing The position where the item to be positioned in the view.
*/
void scroll_into_view(item_proxy item, align_v bearing);
/// Scrolls a specified item into view.
/**
* @param item An item to be requested.
*/
void scroll_into_view(item_proxy item);
private:
std::shared_ptr<scroll_operation_interface> _m_scroll_operation() override;