{"action":"created","issue":{"url":"https://api.github.com/repos/mogud/imd/issues/1","repository_url":"https://api.github.com/repos/mogud/imd","labels_url":"https://api.github.com/repos/mogud/imd/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mogud/imd/issues/1/comments","events_url":"https://api.github.com/repos/mogud/imd/issues/1/events","html_url":"https://github.com/mogud/imd/issues/1","id":162624682,"number":1,"title":"Feature Request: Build a class interface over imperative one","user":{"login":"trikko","id":647157,"avatar_url":"https://avatars.githubusercontent.com/u/647157?v=3","gravatar_id":"","url":"https://api.github.com/users/trikko","html_url":"https://github.com/trikko","followers_url":"https://api.github.com/users/trikko/followers","following_url":"https://api.github.com/users/trikko/following{/other_user}","gists_url":"https://api.github.com/users/trikko/gists{/gist_id}","starred_url":"https://api.github.com/users/trikko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trikko/subscriptions","organizations_url":"https://api.github.com/users/trikko/orgs","repos_url":"https://api.github.com/users/trikko/repos","events_url":"https://api.github.com/users/trikko/events{/privacy}","received_events_url":"https://api.github.com/users/trikko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-28T07:58:13Z","updated_at":"2016-06-28T10:01:01Z","closed_at":null,"body":"For example: \r\n```d\r\nimImage* imImageCreate(int width, int height, int color_space, int data_type);\r\nvoid imImageDestroy(imImage* image);\r\nimImage* imImageDuplicate(const(imImage) * image);\r\nint imFileImageSave(const(char) * file_name, const(char) * format, const(imImage) * image);\r\n```\r\nCreate an interface like ==>\r\n```d\r\nclass Image\r\n{\r\n   this(int width, int height, int color_space, int data_type) { img = imImageCreate(...); }\r\n   ~this() { imImageDestroy(img); }\r\n   Image dup() { return imImageDuplicate(img); }\r\n   int save(string filename, string format) { return imFileImageSave(filename, format, img); }\r\n   private imImage* img;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/mogud/imd/issues/comments/229006112","html_url":"https://github.com/mogud/imd/issues/1#issuecomment-229006112","issue_url":"https://api.github.com/repos/mogud/imd/issues/1","id":229006112,"user":{"login":"mogud","id":8814500,"avatar_url":"https://avatars.githubusercontent.com/u/8814500?v=3","gravatar_id":"","url":"https://api.github.com/users/mogud","html_url":"https://github.com/mogud","followers_url":"https://api.github.com/users/mogud/followers","following_url":"https://api.github.com/users/mogud/following{/other_user}","gists_url":"https://api.github.com/users/mogud/gists{/gist_id}","starred_url":"https://api.github.com/users/mogud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogud/subscriptions","organizations_url":"https://api.github.com/users/mogud/orgs","repos_url":"https://api.github.com/users/mogud/repos","events_url":"https://api.github.com/users/mogud/events{/privacy}","received_events_url":"https://api.github.com/users/mogud/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T10:01:01Z","updated_at":"2016-06-28T10:01:01Z","body":"In fact, the cpp header file(im_plus.h) has many class interfaces of cpp. But now I have not enough time to convert them to D. However after a few days, I'll do this continually."}}
{"actor":{"display_login":"mogud"}}