Define widget_traits for combox/textbox/listbox
This commit is contained in:
parent
bf35932bfb
commit
5b025ccd20
@ -230,5 +230,15 @@ namespace nana
|
|||||||
void _m_caption(nana::string&&) override;
|
void _m_caption(nana::string&&) override;
|
||||||
nana::any * _m_anyobj(std::size_t pos, bool alloc_if_empty) const override;
|
nana::any * _m_anyobj(std::size_t pos, bool alloc_if_empty) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
namespace dev
|
||||||
|
{
|
||||||
|
template<>
|
||||||
|
struct widget_traits<combox>
|
||||||
|
{
|
||||||
|
using event_type = drawerbase::combox::combox_events;
|
||||||
|
using scheme_type = ::nana::widgets::skeletons::text_editor_scheme;
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -556,5 +556,15 @@ By \a clicking on a header the list get \a reordered, first up, and then down al
|
|||||||
drawerbase::listbox::category_t* _m_at_key(std::shared_ptr<nana::detail::key_interface>);
|
drawerbase::listbox::category_t* _m_at_key(std::shared_ptr<nana::detail::key_interface>);
|
||||||
void _m_ease_key(nana::detail::key_interface*);
|
void _m_ease_key(nana::detail::key_interface*);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
namespace dev
|
||||||
|
{
|
||||||
|
template<>
|
||||||
|
struct widget_traits<listbox>
|
||||||
|
{
|
||||||
|
using event_type = drawerbase::listbox::listbox_events;
|
||||||
|
using scheme_type = drawerbase::listbox::scheme;
|
||||||
|
};
|
||||||
|
}
|
||||||
}//end namespace nana
|
}//end namespace nana
|
||||||
#endif
|
#endif
|
||||||
|
@ -193,5 +193,16 @@ namespace nana
|
|||||||
void _m_caption(::nana::string&&) override;
|
void _m_caption(::nana::string&&) override;
|
||||||
void _m_typeface(const paint::font&) override;
|
void _m_typeface(const paint::font&) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
namespace dev
|
||||||
|
{
|
||||||
|
/// Traits for widget classes
|
||||||
|
template<>
|
||||||
|
struct widget_traits<textbox>
|
||||||
|
{
|
||||||
|
using event_type = drawerbase::textbox::textbox_events;
|
||||||
|
using scheme_type = ::nana::widgets::skeletons::text_editor_scheme;
|
||||||
|
};
|
||||||
|
}
|
||||||
}//end namespace nana
|
}//end namespace nana
|
||||||
#endif
|
#endif
|
||||||
|
@ -158,7 +158,6 @@ namespace API
|
|||||||
iwd->expr_colors = wdg_colors;
|
iwd->expr_colors = wdg_colors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
widget_colors* get_scheme(window wd)
|
widget_colors* get_scheme(window wd)
|
||||||
{
|
{
|
||||||
auto iwd = reinterpret_cast<restrict::core_window_t*>(wd);
|
auto iwd = reinterpret_cast<restrict::core_window_t*>(wd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user