{"id":19717280,"url":"https://github.com/brightprogrammer/crosswindow","last_synced_at":"2026-02-15T10:36:20.384Z","repository":{"id":232651676,"uuid":"784051399","full_name":"brightprogrammer/CrossWindow","owner":"brightprogrammer","description":"Cross Platform Window Library","archived":false,"fork":false,"pushed_at":"2024-04-24T14:06:46.000Z","size":98,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-20T16:10:58.165Z","etag":null,"topics":["bsd-3-clause","c","cross-platform","crosswindow","graphics","lightweight","linux","vulkan","window","x11","xcb"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brightprogrammer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"brightprogrammer","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"brightprogrammer","custom":null}},"created_at":"2024-04-09T05:00:21.000Z","updated_at":"2024-10-29T18:37:53.000Z","dependencies_parsed_at":"2025-04-29T20:42:30.114Z","dependency_job_id":null,"html_url":"https://github.com/brightprogrammer/CrossWindow","commit_stats":null,"previous_names":["brightprogrammer/crosswindow"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brightprogrammer/CrossWindow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brightprogrammer%2FCrossWindow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brightprogrammer%2FCrossWindow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brightprogrammer%2FCrossWindow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brightprogrammer%2FCrossWindow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brightprogrammer","download_url":"https://codeload.github.com/brightprogrammer/CrossWindow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brightprogrammer%2FCrossWindow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29475755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T10:25:47.032Z","status":"ssl_error","status_checked_at":"2026-02-15T10:25:01.815Z","response_time":118,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bsd-3-clause","c","cross-platform","crosswindow","graphics","lightweight","linux","vulkan","window","x11","xcb"],"created_at":"2024-11-11T22:46:03.216Z","updated_at":"2026-02-15T10:36:20.370Z","avatar_url":"https://github.com/brightprogrammer.png","language":"C","funding_links":["https://github.com/sponsors/brightprogrammer","https://buymeacoffee.com/brightprogrammer","https://www.buymeacoffee.com/brightprogrammer"],"categories":[],"sub_categories":[],"readme":"# CrossWindow\n\n[![](https://img.shields.io/badge/Discord-7289DA?style=for-the-badge\u0026logo=discord\u0026logoColor=white)](https://discord.gg/https://discord.gg/J9b45jbAdH) \u003ca href=\"https://www.buymeacoffee.com/brightprogrammer\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"28\" width=\"105\"\u003e\u003c/a\u003e\n\nCrossWindow is (aims to be) a cross platform window library. I made this because I don't like\ncurrently existing solutions to create cross platform windows and I wanted something that\nresembles my coding principles.\n\n## Supported Platforms\n\nCrossWindow supports only Xcb for now. I'll first work towards adding support only for Linux.\n- [x] Xcb (linux) \n- [ ] Xlib (linux)\n- [ ] Wayland (linux)\n- [ ] WinNT (windows)\n- [ ] Android (android)\n- [ ] MacOS (mac)\n- [ ] iOS (mac)\n\nI intend to make this library dependency free. Make use of dependencies only if necessary, like\nmy life depends on it!\n\n## Example/Intro\n\nUsing CrossWindow is easy to use. You can either take a look into the Examples directory in Sources\nor take a quick reference below : \n\n```c\n#include \u003cCrossWindow/Window.h\u003e\nint main() {\n    const Uint32 width = 960;\n    const Uint32 height = 540;\n    const Uint32 posx = 10,\n    const Uint32 posy = 50;\n    XwWindow* win = xw_window_create(\"My Window\", width, height, posx, posy);\n\n    XwEvent e;\n    Bool is_running = True;\n    while(is_running) {\n        while(xw_event_poll(\u0026e)) {\n            is_running = e.type != XW_EVENT_TYPE_CLOSE_WINDOW;\n            /* handle other events here */\n        }\n\n        /* process changes made by all events here, like draw, clear, motions/animations etc... */\n    }\n\n    xw_window_destroy(win);\n}\n```\n\nThe code is well documented in my opinion so once can use it to read and understand what to do further\ntill I add more examples and documentation.\n\n## Build \n\nTo build and install CrossWindow as a library on your system, follow the following steps :\n- Create a build directory where you want to build the library. I usually name this as `Build` inside the project root itself.\n- Go inside `Build` directory and open a terminal, or you can follow any other method to go to that directory inside the terminal.\n- Run the following command :\n    - If you have Ninja installed on your system, then use it, it's better : `cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release`\n    - If you don't have Ninja installed, then we'll just use GNU Make : `cmake .. -DCMAKE_BUILD_TYPE=Release`\n- The last step will generate build files needed for building the project, and now you can run :\n    - `ninja` if you have Ninja installed\n    - `make -j${nproc}` if you have make installed. You can run just `make` as well. The only difference is number of threads provided for building the project.\n- The last step will build the project, and now you can install it using :\n    - `sudo ninja install` if you have Ninja \n    - `sudo make install` if you have GNU Make.\n\n## Contributing\n\nAny help is welcome. I don't have a windows system, so if anyone is willing to add support for Windows\nplatform, I'll be grateful. Make sure to follow similar coding style as explained in \n[Contribution Guide](CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrightprogrammer%2Fcrosswindow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrightprogrammer%2Fcrosswindow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrightprogrammer%2Fcrosswindow/lists"}