improve support of opengl for Linux

This commit is contained in:
Jinhao
2018-05-29 05:45:57 +08:00
parent 6a66b03663
commit d5f8f8b305
3 changed files with 38 additions and 6 deletions

View File

@@ -45,6 +45,15 @@ namespace nana
namespace API
{
#ifdef NANA_X11
//Some platform specific functions for X11
namespace x11
{
/// Returns the connection to the X server
const void* get_display();
}
#endif
namespace detail
{
::nana::widget_geometrics* make_scheme(::nana::detail::scheme_factory_interface&&);
@@ -110,6 +119,7 @@ namespace API
void draw_shortkey_underline(paint::graphics&, const std::string& text, wchar_t shortkey, std::size_t shortkey_position, const point& text_pos, const color&);
}//end namespace dev
/// Returns the widget pointer of the specified window.
/*
* @param window_handle A handle to a window owning the widget.