From ded1979fa1b77ea6261df7a7f6f9177bde433f2d Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 29 Dec 2016 14:43:38 +0000 Subject: Treeview: Add API for attaching and detaching from corewindows. --- desktop/treeview.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'desktop/treeview.h') diff --git a/desktop/treeview.h b/desktop/treeview.h index abe0e568d..518f045aa 100644 --- a/desktop/treeview.h +++ b/desktop/treeview.h @@ -149,6 +149,28 @@ nserror treeview_create(treeview **tree, const struct core_window_callback_table *cw_t, struct core_window *cw, treeview_flags flags); +/** + * Attach a treeview to a corewindow. + * + * Treeview must be detached. + * + * \param tree Treeview object + * \param cw_t Callback table for core_window containing the treeview + * \param cw The core_window in which the treeview is shown + * \return NSERROR_OK on success, appropriate error otherwise + */ +nserror treeview_cw_attach(treeview *tree, + const struct core_window_callback_table *cw_t, + struct core_window *cw); + +/** + * Detach a treeview from a corewindow + * + * \param tree Treeview object + * \return NSERROR_OK on success, appropriate error otherwise + */ +nserror treeview_cw_detach(treeview *tree); + /** * Destroy a treeview object * -- cgit v1.2.3