From ac9cb8e5898804d0d8537031443268f48ff9b483 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Mon, 22 Apr 2019 01:07:15 +0800 Subject: [PATCH] add a member type item_interface to float_listbox::item_renderer --- include/nana/gui/widgets/float_listbox.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/nana/gui/widgets/float_listbox.hpp b/include/nana/gui/widgets/float_listbox.hpp index 97670410..18079130 100644 --- a/include/nana/gui/widgets/float_listbox.hpp +++ b/include/nana/gui/widgets/float_listbox.hpp @@ -1,7 +1,7 @@ /** * A float_listbox Implementation * Nana C++ Library(http://www.nanapro.org) - * Copyright(C) 2003-2015 Jinhao(cnjinhao@hotmail.com) + * Copyright(C) 2003-2019 Jinhao(cnjinhao@hotmail.com) * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at @@ -46,8 +46,10 @@ namespace nana class item_renderer { public: - typedef widget& widget_reference; - typedef paint::graphics& graph_reference; + using widget_reference = widget&; + using graph_reference = paint::graphics&; + using item_interface = float_listbox::item_interface; + enum state_t{StateNone, StateHighlighted}; virtual ~item_renderer() = default;