{"id":17948609,"url":"https://github.com/skelebyte/minwinlib","last_synced_at":"2026-04-19T14:32:11.987Z","repository":{"id":259682193,"uuid":"878537521","full_name":"Skelebyte/MinWinLib","owner":"Skelebyte","description":"A simple window creation library written in C for Windows and Linux","archived":false,"fork":false,"pushed_at":"2025-04-20T14:41:02.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T06:06:12.370Z","etag":null,"topics":["c","mit-license","win32","window","windows","x11"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Skelebyte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2024-10-25T15:17:31.000Z","updated_at":"2025-04-20T14:41:05.000Z","dependencies_parsed_at":"2024-12-16T17:45:26.855Z","dependency_job_id":"883fd17c-fd94-49b0-9345-ddcae640c119","html_url":"https://github.com/Skelebyte/MinWinLib","commit_stats":null,"previous_names":["skelebyte/minwinlib"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Skelebyte/MinWinLib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skelebyte%2FMinWinLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skelebyte%2FMinWinLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skelebyte%2FMinWinLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skelebyte%2FMinWinLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Skelebyte","download_url":"https://codeload.github.com/Skelebyte/MinWinLib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skelebyte%2FMinWinLib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263083591,"owners_count":23411163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["c","mit-license","win32","window","windows","x11"],"created_at":"2024-10-29T09:07:43.236Z","updated_at":"2026-04-19T14:32:11.947Z","avatar_url":"https://github.com/Skelebyte.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MWL\nMinWinLib (MWL) is a simple, single-file library to create a window, supporting Windows (Win32) and Linux (X11).\n\n## Creating a window with MWL\nCreating a window is simple, just include `MinWinLib.c` and call `MWL_createWindow`.\n```c\n#include \u003cstdio.h\u003e\n#include \"path/to/MinWinLib.c\"\n\nint main() {\n    MWL_Window window;\n    MWL_createWindow(\u0026window, \"Hi, mum!\", 1000, 600, MWL_DEFAULT_FLAGS);\n    return 0;\n}\n```\nTo make sure the window doesn't close the moment you run the code you need to call `MWL_process` function and pass in a reference to a `MWL_Window`.\nThis must be done inside a while loop that checks to check events from the window.\n```c\nint main() {\n    printf(\"Creating window!\\n\");\n\n    MWL_Window window;\n    MWL_createWindow(\u0026window, \"Hi, mum!\", 1000, 600, MWL_DEFAULT_FLAGS);\n\n    // The loop will run only if the window is open. This is where your program's main code goes.\n    while(MWL_process(\u0026window) != MWL_QUIT) {\n        // Code goes here...\n    }\n\n    printf(\"Loop ended\\n\");\n    return 0;\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskelebyte%2Fminwinlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskelebyte%2Fminwinlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskelebyte%2Fminwinlib/lists"}