{"action":"created","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/875","repository_url":"https://api.github.com/repos/ocornut/imgui","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/875/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/875/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/875/events","html_url":"https://github.com/ocornut/imgui/issues/875","id":183179721,"number":875,"title":"User pointer for callbacks?","user":{"login":"aaronhyperum","id":7323138,"avatar_url":"https://avatars.githubusercontent.com/u/7323138?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronhyperum","html_url":"https://github.com/aaronhyperum","followers_url":"https://api.github.com/users/aaronhyperum/followers","following_url":"https://api.github.com/users/aaronhyperum/following{/other_user}","gists_url":"https://api.github.com/users/aaronhyperum/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronhyperum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronhyperum/subscriptions","organizations_url":"https://api.github.com/users/aaronhyperum/orgs","repos_url":"https://api.github.com/users/aaronhyperum/repos","events_url":"https://api.github.com/users/aaronhyperum/events{/privacy}","received_events_url":"https://api.github.com/users/aaronhyperum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-15T01:05:02Z","updated_at":"2016-10-15T08:40:39Z","closed_at":null,"body":"As you are pursuing multi-context, it would be useful to be able to set a pointer to user data when setting up the callbacks, similar to how GLFW does it. For example, \r\n\r\n```\r\nio.SetClipboardTextFn = [](const char* text)\r\n    {\r\n        glfwSetClipboardString(g_Window, text);\r\n    };\r\n```\r\n\r\nThe window must be a global variable in this case, but if a context specific pointer was given back, then an instance-local window could be passed in. Is this a feature you would be interested in implementing?"},"comment":{"url":"https://api.github.com/repos/ocornut/imgui/issues/comments/253971212","html_url":"https://github.com/ocornut/imgui/issues/875#issuecomment-253971212","issue_url":"https://api.github.com/repos/ocornut/imgui/issues/875","id":253971212,"user":{"login":"ocornut","id":8225057,"avatar_url":"https://avatars.githubusercontent.com/u/8225057?v=3","gravatar_id":"","url":"https://api.github.com/users/ocornut","html_url":"https://github.com/ocornut","followers_url":"https://api.github.com/users/ocornut/followers","following_url":"https://api.github.com/users/ocornut/following{/other_user}","gists_url":"https://api.github.com/users/ocornut/gists{/gist_id}","starred_url":"https://api.github.com/users/ocornut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocornut/subscriptions","organizations_url":"https://api.github.com/users/ocornut/orgs","repos_url":"https://api.github.com/users/ocornut/repos","events_url":"https://api.github.com/users/ocornut/events{/privacy}","received_events_url":"https://api.github.com/users/ocornut/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T08:40:39Z","updated_at":"2016-10-15T08:40:39Z","body":"I agree it would be a useful change. It'll be a breaking change but not everybody override it and breakage will be trivial so I think I'll just go for it.\r\n"}}
{"actor":{"display_login":"ocornut"}}